@rspack-canary/browser 1.6.7-canary-4c2435c7-20251212073856 → 1.6.7-canary-c976e7be-20251215094853
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +32 -8
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -58190,7 +58190,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
58190
58190
|
if ("object" == typeof rspackFuture) {
|
|
58191
58191
|
D(rspackFuture, "bundlerInfo", {});
|
|
58192
58192
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
58193
|
-
D(rspackFuture.bundlerInfo, "version", "1.6.7-canary-
|
|
58193
|
+
D(rspackFuture.bundlerInfo, "version", "1.6.7-canary-c976e7be-20251215094853");
|
|
58194
58194
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
58195
58195
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
58196
58196
|
}
|
|
@@ -62336,7 +62336,7 @@ class MultiStats {
|
|
|
62336
62336
|
return obj;
|
|
62337
62337
|
});
|
|
62338
62338
|
if (childOptions.version) {
|
|
62339
|
-
obj.rspackVersion = "1.6.7-canary-
|
|
62339
|
+
obj.rspackVersion = "1.6.7-canary-c976e7be-20251215094853";
|
|
62340
62340
|
obj.version = "5.75.0";
|
|
62341
62341
|
}
|
|
62342
62342
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -63641,7 +63641,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
63641
63641
|
},
|
|
63642
63642
|
version: (object)=>{
|
|
63643
63643
|
object.version = "5.75.0";
|
|
63644
|
-
object.rspackVersion = "1.6.7-canary-
|
|
63644
|
+
object.rspackVersion = "1.6.7-canary-c976e7be-20251215094853";
|
|
63645
63645
|
},
|
|
63646
63646
|
env: (object, _compilation, _context, { _env })=>{
|
|
63647
63647
|
object.env = _env;
|
|
@@ -66681,13 +66681,19 @@ const filterPlugin = (plugin, excludedPlugins = [])=>{
|
|
|
66681
66681
|
"ModuleFederationPlugin",
|
|
66682
66682
|
"SharedUsedExportsOptimizerPlugin",
|
|
66683
66683
|
"HtmlWebpackPlugin",
|
|
66684
|
+
"HtmlRspackPlugin",
|
|
66685
|
+
"RsbuildHtmlPlugin",
|
|
66684
66686
|
...excludedPlugins
|
|
66685
66687
|
].includes(pluginName);
|
|
66686
66688
|
};
|
|
66687
66689
|
class VirtualEntryPlugin {
|
|
66688
66690
|
createEntry() {
|
|
66689
|
-
const { sharedOptions } = this;
|
|
66690
|
-
const entryContent = sharedOptions.reduce((acc, cur, index)
|
|
66691
|
+
const { sharedOptions, collectShared } = this;
|
|
66692
|
+
const entryContent = sharedOptions.reduce((acc, cur, index)=>{
|
|
66693
|
+
const importLine = `import shared_${index} from '${cur[0]}';\n`;
|
|
66694
|
+
const logLine = collectShared ? `console.log(shared_${index});\n` : "";
|
|
66695
|
+
return acc + importLine + logLine;
|
|
66696
|
+
}, "");
|
|
66691
66697
|
return entryContent;
|
|
66692
66698
|
}
|
|
66693
66699
|
static entry() {
|
|
@@ -66715,9 +66721,11 @@ class VirtualEntryPlugin {
|
|
|
66715
66721
|
});
|
|
66716
66722
|
});
|
|
66717
66723
|
}
|
|
66718
|
-
constructor(sharedOptions){
|
|
66724
|
+
constructor(sharedOptions, collectShared){
|
|
66719
66725
|
IndependentSharedPlugin_define_property(this, "sharedOptions", void 0);
|
|
66726
|
+
IndependentSharedPlugin_define_property(this, "collectShared", false);
|
|
66720
66727
|
this.sharedOptions = sharedOptions;
|
|
66728
|
+
this.collectShared = collectShared;
|
|
66721
66729
|
}
|
|
66722
66730
|
}
|
|
66723
66731
|
const resolveOutputDir = (outputDir, shareName)=>shareName ? (0, path_browserify.join)(outputDir, encodeName(shareName)) : outputDir;
|
|
@@ -66834,10 +66842,26 @@ class IndependentSharedPlugin {
|
|
|
66834
66842
|
enhanced: true
|
|
66835
66843
|
}));
|
|
66836
66844
|
if (treeshake) finalPlugins.push(new SharedUsedExportsOptimizerPlugin(sharedOptions, this.injectUsedExports));
|
|
66837
|
-
finalPlugins.push(new VirtualEntryPlugin(sharedOptions));
|
|
66845
|
+
finalPlugins.push(new VirtualEntryPlugin(sharedOptions, !extraOptions));
|
|
66838
66846
|
const fullOutputDir = (0, path_browserify.resolve)(parentCompiler.outputPath, outputDirWithShareName);
|
|
66839
66847
|
const compilerConfig = {
|
|
66840
66848
|
...parentConfig,
|
|
66849
|
+
module: {
|
|
66850
|
+
...parentConfig.module,
|
|
66851
|
+
rules: [
|
|
66852
|
+
{
|
|
66853
|
+
test: /virtual-entry\.js$/,
|
|
66854
|
+
type: "javascript/auto",
|
|
66855
|
+
resolve: {
|
|
66856
|
+
fullySpecified: false
|
|
66857
|
+
},
|
|
66858
|
+
use: {
|
|
66859
|
+
loader: "builtin:swc-loader"
|
|
66860
|
+
}
|
|
66861
|
+
},
|
|
66862
|
+
...parentConfig.module?.rules || []
|
|
66863
|
+
]
|
|
66864
|
+
},
|
|
66841
66865
|
mode: parentConfig.mode || "development",
|
|
66842
66866
|
entry: VirtualEntryPlugin.entry,
|
|
66843
66867
|
output: {
|
|
@@ -67310,7 +67334,7 @@ function transformSync(source, options) {
|
|
|
67310
67334
|
const _options = JSON.stringify(options || {});
|
|
67311
67335
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
67312
67336
|
}
|
|
67313
|
-
const exports_rspackVersion = "1.6.7-canary-
|
|
67337
|
+
const exports_rspackVersion = "1.6.7-canary-c976e7be-20251215094853";
|
|
67314
67338
|
const exports_version = "5.75.0";
|
|
67315
67339
|
const exports_WebpackError = Error;
|
|
67316
67340
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.6.7-canary-
|
|
3
|
+
"version": "1.6.7-canary-c976e7be-20251215094853",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|