wasm-pack-plugin
wasm-pack-plugin copied to clipboard
Request: ability to automatically watch local crates
Hello! I'd love to have the ability to automatically watch local dependencies, i.e. those that are specified in my Cargo toml as:
foo={ path="../another-crate" }
Currently, I watch these using the watchOptions
plugin. Ideally, this would be able to follow the Cargo toml's dependencies recursively.
Thank you for the wonderful plugin!
I am curious, what is your workaround for this?
@kuon this seems to work (from the README):
new WasmPackPlugin({
crateDirectory: path.resolve(__dirname, "wasm"),
extraArgs: "--target web",
watchDirectories: [
path.resolve(__dirname, "wasm-shared/src")
],
}),