wasm-pack-plugin icon indicating copy to clipboard operation
wasm-pack-plugin copied to clipboard

Request: ability to automatically watch local crates

Open rbalicki2 opened this issue 4 years ago • 2 comments

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!

rbalicki2 avatar Aug 11 '19 15:08 rbalicki2

I am curious, what is your workaround for this?

kuon avatar Sep 07 '19 07:09 kuon

@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")
  ],
}),

FruitieX avatar Nov 10 '21 12:11 FruitieX