@ohos-ports/rspack-core 2.2.9-beta.0 → 2.3.4-beta.0

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.
Files changed (68) hide show
  1. package/README.md +7 -7
  2. package/compiled/http-proxy-middleware/index.d.ts +12 -10
  3. package/compiled/http-proxy-middleware/package.json +1 -1
  4. package/compiled/tinypool/dist/index.js +5 -3
  5. package/compiled/watchpack/index.js +459 -60
  6. package/compiled/watchpack/package.json +1 -1
  7. package/compiled/watchpack/types/DirectoryWatcher.d.ts +24 -0
  8. package/compiled/watchpack/types/index.d.ts +1 -1
  9. package/compiled/watchpack/types/watchEventSource.d.ts +9 -0
  10. package/compiled/webpack-sources/index.d.ts +2 -0
  11. package/compiled/webpack-sources/index.js +207 -94
  12. package/compiled/webpack-sources/package.json +1 -1
  13. package/compiled/webpack-sources/types/RawSource.d.ts +0 -10
  14. package/compiled/webpack-sources/types/helpers/sourceMap.d.ts +47 -0
  15. package/compiled/webpack-sources/types/index.d.ts +1 -0
  16. package/dist/BuildInfo.d.ts +7 -0
  17. package/dist/Compilation.d.ts +3 -1
  18. package/dist/Compiler.d.ts +5 -6
  19. package/dist/ConcatenatedModule.d.ts +5 -1
  20. package/dist/ContextModule.d.ts +3 -1
  21. package/dist/ExternalModule.d.ts +7 -6
  22. package/dist/FileSystemInfo.d.ts +1 -0
  23. package/dist/Module.d.ts +12 -8
  24. package/dist/ModuleGraphConnection.d.ts +9 -3
  25. package/dist/NativeWatchFileSystem.d.ts +19 -7
  26. package/dist/NormalModule.d.ts +14 -6
  27. package/dist/RuntimeGlobals.d.ts +2 -1
  28. package/dist/RuntimeTemplate.d.ts +2 -0
  29. package/dist/Stats.d.ts +1 -1
  30. package/dist/builtin-loader/lightningcss/index.d.ts +5 -1
  31. package/dist/builtin-plugin/CompactHashedChunkIdsPlugin.d.ts +1 -0
  32. package/dist/builtin-plugin/CompactHashedModuleIdsPlugin.d.ts +1 -0
  33. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +5 -0
  34. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +3 -2
  35. package/dist/builtin-plugin/ImportedByDeferModulesPlugin.d.ts +9 -0
  36. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +1 -0
  37. package/dist/builtin-plugin/index.d.ts +1 -0
  38. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +2 -2
  39. package/dist/config/adapterRuleUse.d.ts +1 -0
  40. package/dist/config/normalization.d.ts +2 -2
  41. package/dist/config/target.d.ts +6 -0
  42. package/dist/config/types.d.ts +69 -36
  43. package/dist/cssExtractHmr.js +1 -1
  44. package/dist/cssExtractLoader.js +1 -1
  45. package/dist/exports.d.ts +5 -4
  46. package/dist/index.js +1577 -1151
  47. package/dist/loader-runner/codeFilter.d.ts +9 -0
  48. package/dist/loader-runner/dependencies.d.ts +1 -1
  49. package/dist/loader-runner/index.d.ts +2 -1
  50. package/dist/loader-runner/service.d.ts +0 -4
  51. package/dist/loader-runner/worker.d.ts +4 -1
  52. package/dist/node/NodeWatchFileSystem.d.ts +7 -4
  53. package/dist/sharing/IndependentSharedPlugin.d.ts +1 -2
  54. package/dist/sharing/utils.d.ts +1 -1
  55. package/dist/sources.d.ts +3 -0
  56. package/dist/stats/statsFactoryUtils.d.ts +7 -0
  57. package/dist/util/bindingHelpers.d.ts +2 -0
  58. package/dist/util/createModule.d.ts +3 -0
  59. package/dist/util/fs.d.ts +13 -7
  60. package/dist/util/resolveLayerExternals.d.ts +1 -0
  61. package/dist/util/source.d.ts +12 -3
  62. package/dist/util/symbols.d.ts +10 -0
  63. package/dist/util/watchTimeInfo.d.ts +5 -1
  64. package/dist/worker.js +327 -326
  65. package/hot/lazy-compilation-node.js +1 -1
  66. package/hot/lazy-compilation-web.js +1 -1
  67. package/package.json +4 -4
  68. package/dist/loader-runner/cache.d.ts +0 -27
@@ -299,8 +299,14 @@ export type Environment = {
299
299
  optionalChaining?: boolean;
300
300
  /** The environment supports logical assignment ('a ||= b'). */
301
301
  logicalAssignment?: boolean;
302
+ /** The environment supports spread and rest in array/object literals and calls ('{ ...obj }'). */
303
+ spread?: boolean;
304
+ /** The environment supports 'Symbol' (and well-known symbols like 'Symbol.toStringTag'). */
305
+ symbol?: boolean;
302
306
  /** The environment supports template literals. */
303
307
  templateLiteral?: boolean;
308
+ /** The environment supports top-level await ('await x' at the top level of a module). */
309
+ topLevelAwait?: boolean;
304
310
  };
305
311
  export type Output = {
306
312
  /**
@@ -640,6 +646,7 @@ export type RuleSetLogicalConditions = {
640
646
  };
641
647
  export type RuleSetLoader = string;
642
648
  export type RuleSetLoaderOptions = string | Record<string, any>;
649
+ export type RuleSetLoaderCodeFilter = string | RegExp;
643
650
  export type RuleSetLoaderWithOptions = {
644
651
  /**
645
652
  * Stable identifier used to reference object-form loader options.
@@ -665,6 +672,11 @@ export type RuleSetLoaderWithOptions = {
665
672
  * @experimental
666
673
  */
667
674
  cache?: boolean;
675
+ /**
676
+ * Filters the current input before calling the normal loader handler.
677
+ * The loader pitch function is not filtered.
678
+ */
679
+ codeFilter?: RuleSetLoaderCodeFilter;
668
680
  options?: RuleSetLoaderOptions;
669
681
  };
670
682
  export type RuleSetUseItem = RuleSetLoader | RuleSetLoaderWithOptions | Falsy;
@@ -693,6 +705,13 @@ export type RuleSetRuleUseAndLoader = {
693
705
  };
694
706
  /** Rule defines the conditions for matching a module and the behavior of handling those modules. */
695
707
  export type RuleSetRule = RuleSetRuleUseAndLoader & {
708
+ /**
709
+ * Create a resource for matching subsequent rules from a path template.
710
+ * `[resource-path]` expands to the current matching path, including its extension.
711
+ * Query and fragment are preserved. The original resource is used by loaders.
712
+ * @experimental
713
+ */
714
+ as?: string;
696
715
  /** Matches all modules that match this resource, and will match against Resource. */
697
716
  test?: RuleSetCondition;
698
717
  /** Excludes all modules that match this condition and will match against the absolute path of the resource */
@@ -1001,6 +1020,11 @@ export type JavascriptParserOptions = {
1001
1020
  * @default true
1002
1021
  * */
1003
1022
  url?: 'relative' | 'new-url-relative' | boolean;
1023
+ /**
1024
+ * Enable parsing of dynamic requests in new URL().
1025
+ * @default true
1026
+ */
1027
+ dynamicUrl?: boolean;
1004
1028
  /**
1005
1029
  * Enable warnings for full dynamic dependencies
1006
1030
  * @default true
@@ -1210,6 +1234,14 @@ export type CssGeneratorOptions = {
1210
1234
  * If false, generate stylesheets and embed them in the template.
1211
1235
  */
1212
1236
  exportsOnly?: CssGeneratorExportsOnly;
1237
+ /**
1238
+ * Resolve asset URLs in injected styles against the runtime public path
1239
+ * (`import.meta.rspackPublicPath`) instead of the build-time `output.publicPath`.
1240
+ * Only applies when `parser.exportType` is "style". Assets with their own
1241
+ * `generator.publicPath` keep that value.
1242
+ * @default false
1243
+ */
1244
+ runtimePublicPath?: boolean;
1213
1245
  /** This configuration is available for improved ESM-CJS interoperability purposes. */
1214
1246
  esModule?: CssGeneratorEsModule;
1215
1247
  };
@@ -1225,6 +1257,14 @@ export type CssModuleGeneratorOptions = {
1225
1257
  * If false, generate stylesheets and embed them in the template.
1226
1258
  */
1227
1259
  exportsOnly?: CssGeneratorExportsOnly;
1260
+ /**
1261
+ * Resolve asset URLs in injected styles against the runtime public path
1262
+ * (`import.meta.rspackPublicPath`) instead of the build-time `output.publicPath`.
1263
+ * Only applies when `parser.exportType` is "style". Assets with their own
1264
+ * `generator.publicPath` keep that value.
1265
+ * @default false
1266
+ */
1267
+ runtimePublicPath?: boolean;
1228
1268
  /**
1229
1269
  * Digest types used for the hash.
1230
1270
  */
@@ -1296,7 +1336,7 @@ export type ModuleOptions = {
1296
1336
  /** Keep module mechanism of the matched modules as-is, such as module.exports, require, import. */
1297
1337
  noParse?: NoParseOption;
1298
1338
  };
1299
- type AllowTarget = 'web' | 'webworker' | 'es3' | 'es5' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'es2024' | 'es2025' | 'node' | 'async-node' | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | 'electron-main' | `electron${number}-main` | `electron${number}.${number}-main` | 'electron-renderer' | `electron${number}-renderer` | `electron${number}.${number}-renderer` | 'electron-preload' | `electron${number}-preload` | `electron${number}.${number}-preload` | 'nwjs' | `nwjs${number}` | `nwjs${number}.${number}` | 'node-webkit' | `node-webkit${number}` | `node-webkit${number}.${number}` | 'browserslist' | `browserslist:${string}`;
1339
+ type AllowTarget = 'web' | 'webworker' | 'es3' | 'es5' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'es2024' | 'es2025' | 'es2026' | 'node' | 'async-node' | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | 'electron-main' | `electron${number}-main` | `electron${number}.${number}-main` | 'electron-renderer' | `electron${number}-renderer` | `electron${number}.${number}-renderer` | 'electron-preload' | `electron${number}-preload` | `electron${number}.${number}-preload` | 'nwjs' | `nwjs${number}` | `nwjs${number}.${number}` | 'node-webkit' | `node-webkit${number}` | `node-webkit${number}.${number}` | 'browserslist' | `browserslist:${string}`;
1300
1340
  /** Used to configure the target environment of Rspack output and the ECMAScript version of Rspack runtime code. */
1301
1341
  export type Target = false | AllowTarget | AllowTarget[];
1302
1342
  /**
@@ -1305,6 +1345,8 @@ export type Target = false | AllowTarget | AllowTarget[];
1305
1345
  * @default 'var'
1306
1346
  */
1307
1347
  export type ExternalsType = 'var' | 'module' | 'assign' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system' | 'promise' | 'import' | 'module-import' | 'modern-module' | 'script' | 'node-commonjs' | 'commonjs-import' | 'asset' | 'asset-url' | 'css-import';
1348
+ /** How an external's exports interoperate with ES module imports. */
1349
+ export type ExternalItemInterop = 'default' | 'esModule';
1308
1350
  /**
1309
1351
  * External item object when both library.type and externalsType is 'umd'
1310
1352
  */
@@ -1313,11 +1355,16 @@ export type ExternalItemUmdValue = {
1313
1355
  commonjs: string | string[];
1314
1356
  commonjs2: string | string[];
1315
1357
  amd: string | string[];
1358
+ /** Overrides default-export interop independently of the importing module. */
1359
+ interop?: ExternalItemInterop;
1316
1360
  };
1317
1361
  /**
1318
1362
  * External item object when not umd
1319
1363
  */
1320
- export type ExternalItemObjectValue = Record<string, string | string[]>;
1364
+ export type ExternalItemObjectValue = Record<string, string | string[]> & {
1365
+ /** Overrides default-export interop independently of the importing module. */
1366
+ interop?: ExternalItemInterop;
1367
+ };
1321
1368
  /**
1322
1369
  * The dependency used for the external.
1323
1370
  */
@@ -1332,6 +1379,10 @@ export type ExternalItemValue = string | boolean | string[] | ExternalItemUmdVal
1332
1379
  export type ExternalItemObjectUnknown = {
1333
1380
  [x: string]: ExternalItemValue;
1334
1381
  };
1382
+ export type ExternalItemObjectKnown = {
1383
+ /** Specify externals depending on the importing module's layer. */
1384
+ byLayer?: Record<string, ExternalItem> | ((layer: string | null) => ExternalItem | undefined);
1385
+ };
1335
1386
  /**
1336
1387
  * Data object passed as argument when a function is set for 'externals'.
1337
1388
  */
@@ -1362,7 +1413,7 @@ export type ExternalItemFunctionData = {
1362
1413
  * }
1363
1414
  * ```
1364
1415
  * */
1365
- export type ExternalItem = string | RegExp | ExternalItemObjectUnknown | ((data: ExternalItemFunctionData, callback: (err?: Error | null, result?: ExternalItemValue, type?: ExternalsType) => void) => ExternalItemValue | void | Promise<ExternalItemValue | void>);
1416
+ export type ExternalItem = string | RegExp | ExternalItemObjectKnown | ExternalItemObjectUnknown | ((data: ExternalItemFunctionData, callback: (err?: Error | null, result?: ExternalItemValue, type?: ExternalsType) => void) => ExternalItemValue | void | Promise<ExternalItemValue | void>);
1366
1417
  /**
1367
1418
  * Prevent bundling of certain imported packages and instead retrieve these external dependencies at runtime.
1368
1419
  *
@@ -1611,34 +1662,6 @@ export type MemoryCacheOptions = {
1611
1662
  */
1612
1663
  type: 'memory';
1613
1664
  };
1614
- /** Filesystem cache options. Requires `experiments.newCache` to be enabled. */
1615
- export type FileSystemCacheOptions = {
1616
- type: 'filesystem';
1617
- /** Name for the cache. Different names create coexisting caches. */
1618
- name?: string;
1619
- /** Build dependencies grouped by category. Changes invalidate the cache. */
1620
- buildDependencies?: Record<string, string[]>;
1621
- /** Base directory for the cache. Defaults to `node_modules/.cache/rspack`. */
1622
- cacheDirectory?: string;
1623
- /** Cache location. Defaults to `<cacheDirectory>/<name>`. */
1624
- cacheLocation?: string;
1625
- /** Cache version. Changing this value invalidates the cache. Defaults to `""`. */
1626
- version?: string;
1627
- /** Read existing cache data without writing to disk. Defaults to `false`. */
1628
- readonly?: boolean;
1629
- /**
1630
- * Generations to retain unused entries in memory. Use 0 to disable the memory
1631
- * cache or Infinity to retain entries forever. Defaults to 5 in development,
1632
- * Infinity otherwise.
1633
- */
1634
- maxMemoryGenerations?: number;
1635
- /** Idle time before writing to disk, in milliseconds. Defaults to 60000. */
1636
- idleTimeout?: number;
1637
- /** Idle time before the initial write, in milliseconds. Defaults to 5000. */
1638
- idleTimeoutForInitialStore?: number;
1639
- /** Idle time after large changes, in milliseconds. Defaults to 1000. */
1640
- idleTimeoutAfterLargeChanges?: number;
1641
- };
1642
1665
  /**
1643
1666
  * Options for caching snapshots and intermediate products during the build process.
1644
1667
  * @description Controls whether caching is enabled or disabled.
@@ -1650,7 +1673,7 @@ export type FileSystemCacheOptions = {
1650
1673
  * // Disable caching
1651
1674
  * cache: false
1652
1675
  */
1653
- export type CacheOptions = boolean | MemoryCacheOptions | PersistentCacheOptions | FileSystemCacheOptions;
1676
+ export type CacheOptions = boolean | MemoryCacheOptions | PersistentCacheOptions;
1654
1677
  export type StatsPresets = 'normal' | 'none' | 'verbose' | 'errors-only' | 'errors-warnings' | 'minimal' | 'detailed' | 'summary';
1655
1678
  type AssetFilterItemTypes = RegExp | string | ((name: string, asset: any) => boolean);
1656
1679
  type AssetFilterTypes = boolean | AssetFilterItemTypes | AssetFilterItemTypes[];
@@ -1697,6 +1720,10 @@ export type StatsOptions = {
1697
1720
  * @default true
1698
1721
  */
1699
1722
  assets?: boolean;
1723
+ /**
1724
+ * Includes cache hit, miss, reuse, and store counts by cache name.
1725
+ */
1726
+ cacheInfo?: boolean;
1700
1727
  /**
1701
1728
  * Enables or disables the display of chunk stats.
1702
1729
  * @default true
@@ -2118,6 +2145,11 @@ type SharedOptimizationSplitChunksCacheGroup = {
2118
2145
  */
2119
2146
  minSize?: OptimizationSplitChunksSizes;
2120
2147
  minSizeReduction?: OptimizationSplitChunksSizes;
2148
+ /**
2149
+ * Minimum size of the chunk remaining after splitting from a single chunk.
2150
+ * Defaults to 0 in development mode and minSize otherwise.
2151
+ */
2152
+ minRemainingSize?: OptimizationSplitChunksSizes;
2121
2153
  /**
2122
2154
  * Size threshold at which splitting is enforced and other restrictions
2123
2155
  * (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.
@@ -2222,8 +2254,9 @@ export type Optimization = {
2222
2254
  moduleIds?: false | 'named' | 'natural' | 'deterministic' | 'compact-hashed' | CompatHashedIds | 'hashed';
2223
2255
  /**
2224
2256
  * Which algorithm to use when choosing chunk ids.
2225
- * Setting to `false` disables the built-in algorithm, allowing a custom plugin
2226
- * to provide chunk ids instead.
2257
+ * Setting this to `false` disables automatic chunk ID assignment. Add a chunk ID
2258
+ * plugin from `rspack.ids`, such as `new rspack.ids.CompactHashedChunkIdsPlugin()`,
2259
+ * to `plugins`. Custom JavaScript plugins cannot currently assign chunk IDs.
2227
2260
  */
2228
2261
  chunkIds?: false | 'natural' | 'named' | 'deterministic' | 'compact-hashed' | CompatHashedIds | 'size' | 'total-size';
2229
2262
  /**
@@ -2475,7 +2508,7 @@ export type NewCache = {
2475
2508
  loader?: boolean;
2476
2509
  /** Enable the asset minimization cache. @default true */
2477
2510
  minimize?: boolean;
2478
- /** Enable the module and loader resolution cache. @default true */
2511
+ /** Enable the module and loader resolution cache. @default false */
2479
2512
  resolver?: boolean;
2480
2513
  };
2481
2514
  export type NewCachePresets = boolean;
@@ -2576,7 +2609,7 @@ export type WatchOptions = {
2576
2609
  * A function receives each entry and must return `true` to ignore it; unlike
2577
2610
  * the other forms, its path keeps the platform separators.
2578
2611
  */
2579
- ignored?: string | RegExp | string[] | ((entry: string) => boolean);
2612
+ ignored?: string | RegExp | (string | RegExp)[] | ((entry: string) => boolean);
2580
2613
  /**
2581
2614
  * Turn on polling by passing true, or specifying a poll interval in milliseconds.
2582
2615
  * @default false
@@ -15,7 +15,7 @@ function normalizeUrl(url) {
15
15
  return accumulator;
16
16
  }, []).join('/');
17
17
  }
18
- let srcByModuleId = Object.create(null), noDocument = "u" < typeof document, { forEach: forEach } = Array.prototype;
18
+ let srcByModuleId = Object.create(null), noDocument = "u" < typeof document, { forEach } = Array.prototype;
19
19
  function noop() {}
20
20
  function updateCss(el, url) {
21
21
  let normalizedUrl;
@@ -57,7 +57,7 @@ let pitch = function(request) {
57
57
  let locals, namedExport, esModule = void 0 === options.esModule || options.esModule, dependencies = [];
58
58
  try {
59
59
  let exports = originalExports.__esModule ? originalExports.default : originalExports;
60
- if (namedExport = originalExports.__esModule && (!originalExports.default || !('locals' in originalExports.default))) for (let key of Object.keys(originalExports))'default' !== key && (locals || (locals = {}), locals[key] = originalExports[key]);
60
+ if (namedExport = originalExports.__esModule && (!originalExports.default || !('locals' in originalExports.default))) for (let key of Object.keys(originalExports))'default' !== key && ((locals ??= {})[key] = originalExports[key]);
61
61
  else locals = exports?.locals;
62
62
  if (Array.isArray(exports) && emit) {
63
63
  let identifierCountMap = new Map();
package/dist/exports.d.ts CHANGED
@@ -23,7 +23,7 @@ export type { NormalModuleFactory } from './NormalModuleFactory.js';
23
23
  export { type RspackError, type RspackSeverity, ValidationError, } from './RspackError.js';
24
24
  export { RuntimeGlobals } from './RuntimeGlobals.js';
25
25
  export { RuntimeModule } from './RuntimeModule.js';
26
- export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule, } from './Stats.js';
26
+ export type { StatsAsset, StatsCacheInfo, StatsChunk, StatsCompilation, StatsError, StatsModule, } from './Stats.js';
27
27
  export { Stats } from './Stats.js';
28
28
  export { StatsErrorCode } from './stats/statsFactoryUtils.js';
29
29
  export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
@@ -34,7 +34,7 @@ export type { ConcatenationArg } from './RuntimeTemplate.js';
34
34
  export { ModuleFilenameHelpers };
35
35
  export declare const WebpackError: ErrorConstructor;
36
36
  export type { Watching } from './Watching.js';
37
- import * as sources from '../compiled/webpack-sources/index.js';
37
+ import * as sources from './sources.js';
38
38
  export { sources };
39
39
  import { applyRspackOptionsDefaults, getNormalizedRspackOptions } from './config/index.js';
40
40
  type Config = {
@@ -83,7 +83,7 @@ interface Electron {
83
83
  ElectronTargetPlugin: typeof ElectronTargetPlugin;
84
84
  }
85
85
  export declare const electron: Electron;
86
- import { CompactHashedChunkIdsPlugin, CompactHashedModuleIdsPlugin, DeterministicModuleIdsPlugin, HashedModuleIdsPlugin, SyncModuleIdsPlugin } from './builtin-plugin/index.js';
86
+ import { CompactHashedChunkIdsPlugin, CompactHashedModuleIdsPlugin, DeterministicChunkIdsPlugin, DeterministicModuleIdsPlugin, HashedModuleIdsPlugin, SyncModuleIdsPlugin } from './builtin-plugin/index.js';
87
87
  interface Ids {
88
88
  CompactHashedChunkIdsPlugin: typeof CompactHashedChunkIdsPlugin;
89
89
  CompactHashedModuleIdsPlugin: typeof CompactHashedModuleIdsPlugin;
@@ -91,6 +91,7 @@ interface Ids {
91
91
  CompatHashedChunkIdsPlugin: typeof CompactHashedChunkIdsPlugin;
92
92
  /** @deprecated Use `CompactHashedModuleIdsPlugin` instead. */
93
93
  CompatHashedModuleIdsPlugin: typeof CompactHashedModuleIdsPlugin;
94
+ DeterministicChunkIdsPlugin: typeof DeterministicChunkIdsPlugin;
94
95
  DeterministicModuleIdsPlugin: typeof DeterministicModuleIdsPlugin;
95
96
  HashedModuleIdsPlugin: typeof HashedModuleIdsPlugin;
96
97
  }
@@ -154,7 +155,7 @@ export declare const sharing: {
154
155
  };
155
156
  export type { FeatureOptions as LightningcssFeatureOptions, LoaderOptions as LightningcssLoaderOptions, } from './builtin-loader/lightningcss/index.js';
156
157
  export type { SwcLoaderEnvConfig, SwcLoaderEsParserConfig, SwcLoaderJscConfig, SwcLoaderModuleConfig, SwcLoaderOptions, SwcLoaderParserConfig, SwcLoaderTransformConfig, SwcLoaderTsParserConfig, } from './builtin-loader/swc/index.js';
157
- export type { CircularCheckRspackPluginOptions, CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions, } from './builtin-plugin/index.js';
158
+ export type { CircularCheckRspackPluginOptions, CircularDependencyRspackPluginOptions, CopyRspackPluginOptions, CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions, EvalDevToolModulePluginOptions, EvalSourceMapDevToolPluginOptions, HtmlRspackPluginOptions, LightningCssMinimizerRspackPluginOptions, RsdoctorPluginData, RsdoctorPluginHooks, SourceMapDevToolPluginOptions, SubresourceIntegrityPluginOptions, SwcJsMinimizerRspackPluginOptions, } from './builtin-plugin/index.js';
158
159
  export { CircularCheckRspackPlugin, CircularDependencyRspackPlugin, ContextReplacementPlugin, CopyRspackPlugin, CssExtractRspackPlugin, EvalDevToolModulePlugin, EvalSourceMapDevToolPlugin, HtmlRspackPlugin, LightningCssMinimizerRspackPlugin, NormalModuleReplacementPlugin, SourceMapDevToolPlugin, SwcJsMinimizerRspackPlugin, } from './builtin-plugin/index.js';
159
160
  import { EnforceExtension, ResolverFactory, async as resolveAsync, sync as resolveSync } from '@rspack/binding';
160
161
  import { createNativePlugin } from './builtin-plugin/index.js';