@rspack-canary/core 1.6.6-canary-310775e8-20251127083855 → 1.6.6-canary-e2b38893-20251127173453

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.
@@ -256,8 +256,6 @@ export type DevtoolModuleFilenameTemplate = string | ((context: ModuleFilenameTe
256
256
  export type DevtoolFallbackModuleFilenameTemplate = DevtoolModuleFilenameTemplate;
257
257
  /** Tell Rspack what kind of ES-features may be used in the generated runtime-code. */
258
258
  export type Environment = {
259
- /** The environment supports { fn() {} } */
260
- methodShorthand?: boolean;
261
259
  /** The environment supports arrow functions ('() => { ... }'). */
262
260
  arrowFunction?: boolean;
263
261
  /** The environment supports async function and await ('async function () { await ... }'). */
@@ -278,6 +276,8 @@ export type Environment = {
278
276
  forOf?: boolean;
279
277
  /** The environment supports 'globalThis'. */
280
278
  globalThis?: boolean;
279
+ /** The environment supports { fn() {} } */
280
+ methodShorthand?: boolean;
281
281
  /** The environment supports ECMAScript Module syntax to import ECMAScript modules (import ... from '...'). */
282
282
  module?: boolean;
283
283
  /**
package/dist/index.js CHANGED
@@ -5785,7 +5785,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
5785
5785
  }, applyExperimentsDefaults = (experiments, { development })=>{
5786
5786
  F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "topLevelAwait", !0), D(experiments, "deferImport", !1), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !1), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !0);
5787
5787
  }, applybundlerInfoDefaults = (rspackFuture, library)=>{
5788
- "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.6-canary-310775e8-20251127083855"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
5788
+ "object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.6.6-canary-e2b38893-20251127173453"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
5789
5789
  }, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module1, { cache, asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst, deferImport })=>{
5790
5790
  if (assertNotNill(module1.parser), assertNotNill(module1.generator), cache ? D(module1, "unsafeCache", /[\\/]node_modules[\\/]/) : D(module1, "unsafeCache", !1), F(module1.parser, "asset", ()=>({})), assertNotNill(module1.parser.asset), F(module1.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module1.parser.asset.dataUrlCondition && D(module1.parser.asset.dataUrlCondition, "maxSize", 8096), F(module1.parser, "javascript", ()=>({})), assertNotNill(module1.parser.javascript), ((parserOptions, { usedExports, inlineConst, deferImport })=>{
5791
5791
  D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
@@ -7438,7 +7438,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
7438
7438
  });
7439
7439
  }
7440
7440
  }
7441
- let CORE_VERSION = "1.6.6-canary-310775e8-20251127083855", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
7441
+ let CORE_VERSION = "1.6.6-canary-e2b38893-20251127173453", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
7442
7442
 
7443
7443
  Help:
7444
7444
  Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
@@ -8739,7 +8739,7 @@ Help:
8739
8739
  obj.children = this.stats.map((stat, idx)=>{
8740
8740
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
8741
8741
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
8742
- }), childOptions.version && (obj.rspackVersion = "1.6.6-canary-310775e8-20251127083855", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8742
+ }), childOptions.version && (obj.rspackVersion = "1.6.6-canary-e2b38893-20251127173453", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
8743
8743
  let mapError = (j, obj)=>({
8744
8744
  ...obj,
8745
8745
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -9638,7 +9638,7 @@ Help:
9638
9638
  object.hash = context.getStatsCompilation(compilation).hash;
9639
9639
  },
9640
9640
  version: (object)=>{
9641
- object.version = "5.75.0", object.rspackVersion = "1.6.6-canary-310775e8-20251127083855";
9641
+ object.version = "5.75.0", object.rspackVersion = "1.6.6-canary-e2b38893-20251127173453";
9642
9642
  },
9643
9643
  env: (object, _compilation, _context, { _env })=>{
9644
9644
  object.env = _env;
@@ -11857,7 +11857,7 @@ Help:
11857
11857
  let _options = JSON.stringify(options || {});
11858
11858
  return binding_default().transform(source, _options);
11859
11859
  }
11860
- let exports_rspackVersion = "1.6.6-canary-310775e8-20251127083855", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
11860
+ let exports_rspackVersion = "1.6.6-canary-e2b38893-20251127173453", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
11861
11861
  getNormalizedRspackOptions: getNormalizedRspackOptions,
11862
11862
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
11863
11863
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/core",
3
- "version": "1.6.6-canary-310775e8-20251127083855",
3
+ "version": "1.6.6-canary-e2b38893-20251127173453",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "The fast Rust-based web bundler with webpack-compatible API",
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "@module-federation/runtime-tools": "0.21.6",
60
60
  "@rspack/lite-tapable": "1.1.0",
61
- "@rspack/binding": "npm:@rspack-canary/binding@1.6.6-canary-310775e8-20251127083855"
61
+ "@rspack/binding": "npm:@rspack-canary/binding@1.6.6-canary-e2b38893-20251127173453"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@swc/helpers": ">=0.5.1"