You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a crateDirectory located elsewhere in your filesystem, the plugin will still create an empty ./<outDir> folder locally to the main build process root.
The issue with this workaround for me at least is that the pkg directory isnt empty. it contains a single empty index.js. when forcing it to use the same pkg directory as where the rust code really is supposed to compile to it overwrites the ledgitamate index.js file with an empty one. and now it cant be imported.
If you have a
crateDirectory
located elsewhere in your filesystem, the plugin will still create an empty./<outDir>
folder locally to the main build process root.Example:
This would create an empty
pkg
subfolder in./pkg
, and not in./myRustPlugin/pkg
as expected (and according towasm-pack build
).Note that currently it is possible to workaround this issue by enforcing a full qualified path
outDir
to the destinationpkg
location, like so:But if you simply use
outDir: "build"
or leaveoutDir
to the"pkg"
default, the problem arises.The problem appears to be here:
wasm-pack-plugin/plugin.js
Line 98 in a0b20c0
The text was updated successfully, but these errors were encountered: