From 8f2ecb3bae59d4bbaa9090487a6213c3c41394fb Mon Sep 17 00:00:00 2001 From: ahabhgk Date: Mon, 8 Jul 2024 19:49:13 +0800 Subject: [PATCH] fix --- Cargo.lock | 1 - crates/rspack_plugin_javascript/Cargo.toml | 1 - packages/rspack/src/Compiler.ts | 1 + tests/plugin-test/copy-plugin/build/main.js | 2 +- 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0ab7da2ba332..7f5e6779bb43 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3584,7 +3584,6 @@ dependencies = [ "async-trait", "bitflags 2.5.0", "dashmap 5.5.3", - "derivative", "glob-match", "indexmap 2.2.6", "indoc", diff --git a/crates/rspack_plugin_javascript/Cargo.toml b/crates/rspack_plugin_javascript/Cargo.toml index 5608bcfc4215..6b1ccaa0352c 100644 --- a/crates/rspack_plugin_javascript/Cargo.toml +++ b/crates/rspack_plugin_javascript/Cargo.toml @@ -10,7 +10,6 @@ anymap = { workspace = true } async-trait = { workspace = true } bitflags = { workspace = true } dashmap = { workspace = true } -derivative = { workspace = true } glob-match = "0.2.1" indexmap = { workspace = true } indoc = { workspace = true } diff --git a/packages/rspack/src/Compiler.ts b/packages/rspack/src/Compiler.ts index 03fdc84efa9a..682b834313fe 100644 --- a/packages/rspack/src/Compiler.ts +++ b/packages/rspack/src/Compiler.ts @@ -79,6 +79,7 @@ class Compiler { #compilationParams?: CompilationParams; #builtinPlugins: binding.BuiltinPlugin[]; + #moduleExecutionResultsMap: Map; #nonSkippableRegisters: binding.RegisterJsTapKind[]; diff --git a/tests/plugin-test/copy-plugin/build/main.js b/tests/plugin-test/copy-plugin/build/main.js index 3104eb78b91c..b93be575ad44 100644 --- a/tests/plugin-test/copy-plugin/build/main.js +++ b/tests/plugin-test/copy-plugin/build/main.js @@ -1 +1 @@ -(()=>{"use strict";var r={},t={};function e(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return r[i](n,n.exports,e),n.exports}e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(r){if("object"==typeof window)return window}}(),e.rv=function(){return"1.0.0-alpha.1"},(()=>{e.g.importScripts&&(r=e.g.location+"");var r,t=e.g.document;if(!r&&t&&(t.currentScript&&(r=t.currentScript.src),!r)){var i=t.getElementsByTagName("script");if(i.length){for(var o=i.length-1;o>-1&&(!r||!/^http(s?):/.test(r));)r=i[o--].src}}if(!r)throw Error("Automatic publicPath is not supported in this browser");r=r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=r})(),e.ruid="bundler=rspack@1.0.0-alpha.1";e.p})(); \ No newline at end of file +(()=>{"use strict";var r={},t={};function e(i){var o=t[i];if(void 0!==o)return o.exports;var n=t[i]={exports:{}};return r[i](n,n.exports,e),n.exports}e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(r){if("object"==typeof window)return window}}(),e.rv=function(){return"1.0.0-alpha.2"},(()=>{e.g.importScripts&&(r=e.g.location+"");var r,t=e.g.document;if(!r&&t&&(t.currentScript&&(r=t.currentScript.src),!r)){var i=t.getElementsByTagName("script");if(i.length){for(var o=i.length-1;o>-1&&(!r||!/^http(s?):/.test(r));)r=i[o--].src}}if(!r)throw Error("Automatic publicPath is not supported in this browser");r=r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=r})(),e.ruid="bundler=rspack@1.0.0-alpha.2";e.p})(); \ No newline at end of file