diff --git a/rewriter/rust-toolchain.toml b/rewriter/rust-toolchain.toml new file mode 100644 index 0000000..d1e334d --- /dev/null +++ b/rewriter/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "nightly" +targets = [ "wasm32-unknown-unknown" ] \ No newline at end of file diff --git a/rspack.config.js b/rspack.config.js index 844b8ba..48da9ad 100644 --- a/rspack.config.js +++ b/rspack.config.js @@ -60,7 +60,6 @@ export default defineConfig({ path: join(__dirname, "dist"), libraryTarget: "es2022", iife: true, - clean: true, }, plugins: [ new rspack.ProvidePlugin({ @@ -105,12 +104,14 @@ export default defineConfig({ }); }, }, - // new RsdoctorRspackPlugin({ - // supports: { - // parseBundle: true, - // banner: true, - // }, - // }), + process.env.DEBUG === "true" + ? new RsdoctorRspackPlugin({ + supports: { + parseBundle: true, + banner: true, + }, + }) + : null, ], target: "webworker", });