@rsbuild/core 1.0.1-rc.4 → 1.0.1

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.
@@ -12,7 +12,7 @@
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports["default"] = loader;
14
14
  var _postcss = _interopRequireDefault(__nccwpck_require__(9961));
15
- var _package = _interopRequireDefault(__nccwpck_require__(2321));
15
+ var _package = _interopRequireDefault(__nccwpck_require__(6441));
16
16
  var _semver = __nccwpck_require__(938);
17
17
  var _options = _interopRequireDefault(__nccwpck_require__(9965));
18
18
  var _plugins = __nccwpck_require__(7723);
@@ -21,7 +21,7 @@
21
21
  return obj && obj.__esModule ? obj : { default: obj };
22
22
  }
23
23
  async function loader(content, map, meta) {
24
- const rawOptions = this.getOptions(_options.default);
24
+ const rawOptions = this.getOptions();
25
25
  const callback = this.async();
26
26
  if (
27
27
  this._compiler &&
@@ -131,7 +131,7 @@
131
131
  }),
132
132
  );
133
133
  }
134
- if (meta) {
134
+ if (meta && !rawOptions._skipReuseAST) {
135
135
  const { ast } = meta;
136
136
  if (
137
137
  ast &&
@@ -279,7 +279,7 @@
279
279
  "use strict";
280
280
  Object.defineProperty(exports, "__esModule", { value: true });
281
281
  exports["default"] = void 0;
282
- var _icssUtils = __nccwpck_require__(9598);
282
+ var _icssUtils = __nccwpck_require__(7718);
283
283
  var _utils = __nccwpck_require__(9049);
284
284
  const plugin = (options = {}) => ({
285
285
  postcssPlugin: "postcss-icss-parser",
@@ -1074,16 +1074,16 @@
1074
1074
  var _url = __nccwpck_require__(7310);
1075
1075
  var _path = _interopRequireDefault(__nccwpck_require__(1017));
1076
1076
  var _postcssModulesValues = _interopRequireDefault(
1077
- __nccwpck_require__(9874),
1077
+ __nccwpck_require__(9508),
1078
1078
  );
1079
1079
  var _postcssModulesLocalByDefault = _interopRequireDefault(
1080
- __nccwpck_require__(1292),
1080
+ __nccwpck_require__(9081),
1081
1081
  );
1082
1082
  var _postcssModulesExtractImports = _interopRequireDefault(
1083
- __nccwpck_require__(57),
1083
+ __nccwpck_require__(5222),
1084
1084
  );
1085
1085
  var _postcssModulesScope = _interopRequireDefault(
1086
- __nccwpck_require__(7066),
1086
+ __nccwpck_require__(9852),
1087
1087
  );
1088
1088
  function _interopRequireDefault(obj) {
1089
1089
  return obj && obj.__esModule ? obj : { default: obj };
@@ -2276,7 +2276,7 @@
2276
2276
  cssesc.version = "3.0.0";
2277
2277
  module.exports = cssesc;
2278
2278
  },
2279
- 8935: (module) => {
2279
+ 2148: (module) => {
2280
2280
  const createImports = (imports, postcss, mode = "rule") =>
2281
2281
  Object.keys(imports).map((path) => {
2282
2282
  const aliases = imports[path];
@@ -2328,7 +2328,7 @@
2328
2328
  ];
2329
2329
  module.exports = createICSSRules;
2330
2330
  },
2331
- 7495: (module) => {
2331
+ 8170: (module) => {
2332
2332
  const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
2333
2333
  const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
2334
2334
  const getDeclsObject = (rule) => {
@@ -2386,11 +2386,11 @@
2386
2386
  };
2387
2387
  module.exports = extractICSS;
2388
2388
  },
2389
- 9598: (module, __unused_webpack_exports, __nccwpck_require__) => {
2390
- const replaceValueSymbols = __nccwpck_require__(4120);
2391
- const replaceSymbols = __nccwpck_require__(312);
2392
- const extractICSS = __nccwpck_require__(7495);
2393
- const createICSSRules = __nccwpck_require__(8935);
2389
+ 7718: (module, __unused_webpack_exports, __nccwpck_require__) => {
2390
+ const replaceValueSymbols = __nccwpck_require__(4444);
2391
+ const replaceSymbols = __nccwpck_require__(1389);
2392
+ const extractICSS = __nccwpck_require__(8170);
2393
+ const createICSSRules = __nccwpck_require__(2148);
2394
2394
  module.exports = {
2395
2395
  replaceValueSymbols,
2396
2396
  replaceSymbols,
@@ -2398,8 +2398,8 @@
2398
2398
  createICSSRules,
2399
2399
  };
2400
2400
  },
2401
- 312: (module, __unused_webpack_exports, __nccwpck_require__) => {
2402
- const replaceValueSymbols = __nccwpck_require__(4120);
2401
+ 1389: (module, __unused_webpack_exports, __nccwpck_require__) => {
2402
+ const replaceValueSymbols = __nccwpck_require__(4444);
2403
2403
  const replaceSymbols = (css, replacements) => {
2404
2404
  css.walk((node) => {
2405
2405
  if (node.type === "decl" && node.value) {
@@ -2422,7 +2422,7 @@
2422
2422
  };
2423
2423
  module.exports = replaceSymbols;
2424
2424
  },
2425
- 4120: (module) => {
2425
+ 4444: (module) => {
2426
2426
  const matchValueName = /[$]?[\w-]+/g;
2427
2427
  const replaceValueSymbols = (value, replacements) => {
2428
2428
  let matches;
@@ -2440,8 +2440,8 @@
2440
2440
  };
2441
2441
  module.exports = replaceValueSymbols;
2442
2442
  },
2443
- 57: (module, __unused_webpack_exports, __nccwpck_require__) => {
2444
- const topologicalSort = __nccwpck_require__(7225);
2443
+ 5222: (module, __unused_webpack_exports, __nccwpck_require__) => {
2444
+ const topologicalSort = __nccwpck_require__(8251);
2445
2445
  const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
2446
2446
  const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
2447
2447
  const VISITED_MARKER = 1;
@@ -2587,7 +2587,7 @@
2587
2587
  };
2588
2588
  module.exports.postcss = true;
2589
2589
  },
2590
- 7225: (module) => {
2590
+ 8251: (module) => {
2591
2591
  const PERMANENT_MARKER = 2;
2592
2592
  const TEMPORARY_MARKER = 1;
2593
2593
  function createError(node, graph) {
@@ -2636,11 +2636,11 @@
2636
2636
  }
2637
2637
  module.exports = topologicalSort;
2638
2638
  },
2639
- 1292: (module, __unused_webpack_exports, __nccwpck_require__) => {
2639
+ 9081: (module, __unused_webpack_exports, __nccwpck_require__) => {
2640
2640
  "use strict";
2641
2641
  const selectorParser = __nccwpck_require__(3008);
2642
2642
  const valueParser = __nccwpck_require__(7555);
2643
- const { extractICSS } = __nccwpck_require__(9598);
2643
+ const { extractICSS } = __nccwpck_require__(7718);
2644
2644
  const isSpacing = (node) =>
2645
2645
  node.type === "combinator" && node.value === " ";
2646
2646
  function normalizeNodeArray(nodes) {
@@ -3151,7 +3151,7 @@
3151
3151
  };
3152
3152
  module.exports.postcss = true;
3153
3153
  },
3154
- 7066: (module, __unused_webpack_exports, __nccwpck_require__) => {
3154
+ 9852: (module, __unused_webpack_exports, __nccwpck_require__) => {
3155
3155
  "use strict";
3156
3156
  const selectorParser = __nccwpck_require__(3008);
3157
3157
  const hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -3458,9 +3458,9 @@
3458
3458
  };
3459
3459
  module.exports = plugin;
3460
3460
  },
3461
- 9874: (module, __unused_webpack_exports, __nccwpck_require__) => {
3461
+ 9508: (module, __unused_webpack_exports, __nccwpck_require__) => {
3462
3462
  "use strict";
3463
- const ICSSUtils = __nccwpck_require__(9598);
3463
+ const ICSSUtils = __nccwpck_require__(7718);
3464
3464
  const matchImports =
3465
3465
  /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
3466
3466
  const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
@@ -7970,10 +7970,10 @@
7970
7970
  '{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
7971
7971
  );
7972
7972
  },
7973
- 2321: (module) => {
7973
+ 6441: (module) => {
7974
7974
  "use strict";
7975
7975
  module.exports = JSON.parse(
7976
- '{"name":"postcss","version":"8.4.43","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.0.1","source-map-js":"^1.2.0"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
7976
+ '{"name":"postcss","version":"8.4.45","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.0.1","source-map-js":"^1.2.0"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
7977
7977
  );
7978
7978
  },
7979
7979
  };
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 335: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 922: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(221);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(595);
6
6
  const compilerMap = new WeakMap();
7
7
  class CachedChildCompilation {
8
8
  constructor(compiler) {
@@ -304,7 +304,7 @@
304
304
  }
305
305
  module.exports = { CachedChildCompilation };
306
306
  },
307
- 221: (module) => {
307
+ 595: (module) => {
308
308
  "use strict";
309
309
  class HtmlWebpackChildCompiler {
310
310
  constructor(templates) {
@@ -375,10 +375,18 @@
375
375
  childCompiler.options.module.parser = {
376
376
  ...childCompiler.options.module.parser,
377
377
  };
378
- childCompiler.options.module.parser.javascript = {
379
- ...childCompiler.options.module.parser.javascript,
380
- url: "relative",
381
- };
378
+ const javascriptModules = [
379
+ "javascript",
380
+ "javascript/auto",
381
+ "javascript/dynamic",
382
+ "javascript/esm",
383
+ ];
384
+ for (const moduleType of javascriptModules) {
385
+ childCompiler.options.module.parser[moduleType] = {
386
+ ...childCompiler.options.module.parser[moduleType],
387
+ url: "relative",
388
+ };
389
+ }
382
390
  this.compilationStartedTimestamp = Date.now();
383
391
  this.compilationPromise = new Promise((resolve, reject) => {
384
392
  const extractedAssets = [];
@@ -465,7 +473,7 @@
465
473
  }
466
474
  module.exports = { HtmlWebpackChildCompiler };
467
475
  },
468
- 810: (module) => {
476
+ 109: (module) => {
469
477
  "use strict";
470
478
  module.exports = {};
471
479
  module.exports.none = (chunks) => chunks;
@@ -484,7 +492,7 @@
484
492
  };
485
493
  module.exports.auto = module.exports.none;
486
494
  },
487
- 640: (module) => {
495
+ 693: (module) => {
488
496
  "use strict";
489
497
  module.exports = function (err) {
490
498
  return {
@@ -505,7 +513,7 @@
505
513
  };
506
514
  };
507
515
  },
508
- 349: (module, __unused_webpack_exports, __nccwpck_require__) => {
516
+ 129: (module, __unused_webpack_exports, __nccwpck_require__) => {
509
517
  "use strict";
510
518
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(348);
511
519
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -531,7 +539,7 @@
531
539
  }
532
540
  module.exports = { getHtmlRspackPluginHooks };
533
541
  },
534
- 533: (module) => {
542
+ 162: (module) => {
535
543
  const voidTags = [
536
544
  "area",
537
545
  "base",
@@ -599,19 +607,19 @@
599
607
  htmlTagObjectToString,
600
608
  };
601
609
  },
602
- 870: (module, __unused_webpack_exports, __nccwpck_require__) => {
610
+ 138: (module, __unused_webpack_exports, __nccwpck_require__) => {
603
611
  "use strict";
604
612
  const promisify = __nccwpck_require__(837).promisify;
605
613
  const vm = __nccwpck_require__(144);
606
614
  const fs = __nccwpck_require__(147);
607
615
  const path = __nccwpck_require__(17);
608
- const { CachedChildCompilation } = __nccwpck_require__(335);
616
+ const { CachedChildCompilation } = __nccwpck_require__(922);
609
617
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
610
- __nccwpck_require__(533);
611
- const prettyError = __nccwpck_require__(640);
612
- const chunkSorter = __nccwpck_require__(810);
618
+ __nccwpck_require__(162);
619
+ const prettyError = __nccwpck_require__(693);
620
+ const chunkSorter = __nccwpck_require__(109);
613
621
  const getHtmlRspackPluginHooks =
614
- __nccwpck_require__(349).getHtmlRspackPluginHooks;
622
+ __nccwpck_require__(129).getHtmlRspackPluginHooks;
615
623
  class HtmlRspackPlugin {
616
624
  constructor(userOptions = {}) {
617
625
  this.version = HtmlRspackPlugin.version;
@@ -1569,6 +1577,6 @@
1569
1577
  }
1570
1578
  if (typeof __nccwpck_require__ !== "undefined")
1571
1579
  __nccwpck_require__.ab = __dirname + "/";
1572
- var __webpack_exports__ = __nccwpck_require__(870);
1580
+ var __webpack_exports__ = __nccwpck_require__(138);
1573
1581
  module.exports = __webpack_exports__;
1574
1582
  })();
@@ -1 +1 @@
1
- {"name":"html-rspack-plugin","author":"Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)","version":"6.0.0","funding":{"type":"opencollective","url":"https://opencollective.com/html-webpack-plugin"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"html-rspack-plugin","author":"Jan Nicklas <j.nicklas@me.com> (https://github.com/jantimon)","version":"6.0.1","funding":{"type":"opencollective","url":"https://opencollective.com/html-webpack-plugin"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -1,9 +1,9 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 972: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 616: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  const url = __nccwpck_require__(310);
5
5
  const path = __nccwpck_require__(17);
6
- const launch = __nccwpck_require__(940);
6
+ const launch = __nccwpck_require__(453);
7
7
  module.exports = (specifiedEditor, srcRoot, onErrorCallback) => {
8
8
  if (typeof specifiedEditor === "function") {
9
9
  onErrorCallback = specifiedEditor;
@@ -32,7 +32,7 @@
32
32
  };
33
33
  };
34
34
  },
35
- 426: (module) => {
35
+ 812: (module) => {
36
36
  module.exports = {
37
37
  atom: "atom",
38
38
  Brackets: "brackets",
@@ -42,18 +42,25 @@
42
42
  codium: "codium",
43
43
  emacs: "emacs",
44
44
  gvim: "gvim",
45
+ idea: "idea",
45
46
  "idea.sh": "idea",
47
+ phpstorm: "phpstorm",
46
48
  "phpstorm.sh": "phpstorm",
49
+ pycharm: "pycharm",
47
50
  "pycharm.sh": "pycharm",
51
+ rubymine: "rubymine",
48
52
  "rubymine.sh": "rubymine",
49
53
  sublime_text: "subl",
50
54
  vim: "vim",
55
+ webstorm: "webstorm",
51
56
  "webstorm.sh": "webstorm",
57
+ goland: "goland",
52
58
  "goland.sh": "goland",
59
+ rider: "rider",
53
60
  "rider.sh": "rider",
54
61
  };
55
62
  },
56
- 721: (module) => {
63
+ 829: (module) => {
57
64
  module.exports = {
58
65
  "/Applications/Atom.app/Contents/MacOS/Atom": "atom",
59
66
  "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta":
@@ -100,7 +107,7 @@
100
107
  "/Applications/Zed.app/Contents/MacOS/zed": "zed",
101
108
  };
102
109
  },
103
- 511: (module) => {
110
+ 902: (module) => {
104
111
  module.exports = [
105
112
  "Brackets.exe",
106
113
  "Code.exe",
@@ -127,7 +134,7 @@
127
134
  "rider64.exe",
128
135
  ];
129
136
  },
130
- 93: (module, __unused_webpack_exports, __nccwpck_require__) => {
137
+ 542: (module, __unused_webpack_exports, __nccwpck_require__) => {
131
138
  const path = __nccwpck_require__(17);
132
139
  module.exports = function getArgumentsForPosition(
133
140
  editor,
@@ -198,13 +205,13 @@
198
205
  return [fileName];
199
206
  };
200
207
  },
201
- 826: (module, __unused_webpack_exports, __nccwpck_require__) => {
208
+ 250: (module, __unused_webpack_exports, __nccwpck_require__) => {
202
209
  const path = __nccwpck_require__(17);
203
210
  const shellQuote = __nccwpck_require__(522);
204
211
  const childProcess = __nccwpck_require__(81);
205
- const COMMON_EDITORS_MACOS = __nccwpck_require__(721);
206
- const COMMON_EDITORS_LINUX = __nccwpck_require__(426);
207
- const COMMON_EDITORS_WIN = __nccwpck_require__(511);
212
+ const COMMON_EDITORS_MACOS = __nccwpck_require__(829);
213
+ const COMMON_EDITORS_LINUX = __nccwpck_require__(812);
214
+ const COMMON_EDITORS_WIN = __nccwpck_require__(902);
208
215
  module.exports = function guessEditor(specifiedEditor) {
209
216
  if (specifiedEditor) {
210
217
  return shellQuote.parse(specifiedEditor);
@@ -281,14 +288,14 @@
281
288
  return [null];
282
289
  };
283
290
  },
284
- 940: (module, __unused_webpack_exports, __nccwpck_require__) => {
291
+ 453: (module, __unused_webpack_exports, __nccwpck_require__) => {
285
292
  const fs = __nccwpck_require__(147);
286
293
  const os = __nccwpck_require__(37);
287
294
  const path = __nccwpck_require__(17);
288
295
  const colors = __nccwpck_require__(272);
289
296
  const childProcess = __nccwpck_require__(81);
290
- const guessEditor = __nccwpck_require__(826);
291
- const getArgumentsForPosition = __nccwpck_require__(93);
297
+ const guessEditor = __nccwpck_require__(250);
298
+ const getArgumentsForPosition = __nccwpck_require__(542);
292
299
  function wrapErrorCallback(cb) {
293
300
  return (fileName, errorMessage) => {
294
301
  console.log();
@@ -353,28 +360,6 @@
353
360
  ) {
354
361
  fileName = path.relative("", fileName);
355
362
  }
356
- const WINDOWS_CMD_SAFE_FILE_NAME_PATTERN =
357
- /^([A-Za-z]:[/\\])?[\p{L}0-9/.\-\\_+ ]+$/u;
358
- if (
359
- process.platform === "win32" &&
360
- !WINDOWS_CMD_SAFE_FILE_NAME_PATTERN.test(fileName.trim())
361
- ) {
362
- console.log();
363
- console.log(
364
- colors.red(
365
- "Could not open " + path.basename(fileName) + " in the editor.",
366
- ),
367
- );
368
- console.log();
369
- console.log(
370
- "When running on Windows, file names are checked against a safe file name " +
371
- "pattern to protect against remote code execution attacks. File names " +
372
- "may consist only of alphanumeric characters (all languages), periods, " +
373
- "dashes, slashes, and underscores.",
374
- );
375
- console.log();
376
- return;
377
- }
378
363
  if (lineNumber) {
379
364
  const extraArgs = getArgumentsForPosition(
380
365
  editor,
@@ -390,11 +375,24 @@
390
375
  _childProcess.kill("SIGKILL");
391
376
  }
392
377
  if (process.platform === "win32") {
393
- _childProcess = childProcess.spawn(
394
- "cmd.exe",
395
- ["/C", editor].concat(args),
396
- { stdio: "inherit" },
397
- );
378
+ function escapeCmdArgs(cmdArgs) {
379
+ return cmdArgs.replace(/([&|<>,;=^])/g, "^$1");
380
+ }
381
+ function doubleQuoteIfNeeded(str) {
382
+ if (str.includes("^")) {
383
+ return `^"${str}^"`;
384
+ } else if (str.includes(" ")) {
385
+ return `"${str}"`;
386
+ }
387
+ return str;
388
+ }
389
+ const launchCommand = [editor, ...args.map(escapeCmdArgs)]
390
+ .map(doubleQuoteIfNeeded)
391
+ .join(" ");
392
+ _childProcess = childProcess.exec(launchCommand, {
393
+ stdio: "inherit",
394
+ shell: true,
395
+ });
398
396
  } else {
399
397
  _childProcess = childProcess.spawn(editor, args, {
400
398
  stdio: "inherit",
@@ -691,6 +689,6 @@
691
689
  }
692
690
  if (typeof __nccwpck_require__ !== "undefined")
693
691
  __nccwpck_require__.ab = __dirname + "/";
694
- var __webpack_exports__ = __nccwpck_require__(972);
692
+ var __webpack_exports__ = __nccwpck_require__(616);
695
693
  module.exports = __webpack_exports__;
696
694
  })();
@@ -1 +1 @@
1
- {"name":"launch-editor-middleware","author":"Evan You","version":"2.8.1","license":"MIT","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"launch-editor-middleware","author":"Evan You","version":"2.9.1","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -81,9 +81,9 @@
81
81
  module.exports = createColors();
82
82
  module.exports.createColors = createColors;
83
83
  },
84
- 2: (module, __unused_webpack_exports, __nccwpck_require__) => {
84
+ 528: (module, __unused_webpack_exports, __nccwpck_require__) => {
85
85
  "use strict";
86
- let Container = __nccwpck_require__(607);
86
+ let Container = __nccwpck_require__(322);
87
87
  class AtRule extends Container {
88
88
  constructor(defaults) {
89
89
  super(defaults);
@@ -102,9 +102,9 @@
102
102
  AtRule.default = AtRule;
103
103
  Container.registerAtRule(AtRule);
104
104
  },
105
- 638: (module, __unused_webpack_exports, __nccwpck_require__) => {
105
+ 767: (module, __unused_webpack_exports, __nccwpck_require__) => {
106
106
  "use strict";
107
- let Node = __nccwpck_require__(808);
107
+ let Node = __nccwpck_require__(233);
108
108
  class Comment extends Node {
109
109
  constructor(defaults) {
110
110
  super(defaults);
@@ -114,12 +114,12 @@
114
114
  module.exports = Comment;
115
115
  Comment.default = Comment;
116
116
  },
117
- 607: (module, __unused_webpack_exports, __nccwpck_require__) => {
117
+ 322: (module, __unused_webpack_exports, __nccwpck_require__) => {
118
118
  "use strict";
119
- let Comment = __nccwpck_require__(638);
120
- let Declaration = __nccwpck_require__(193);
121
- let Node = __nccwpck_require__(808);
122
- let { isClean, my } = __nccwpck_require__(963);
119
+ let Comment = __nccwpck_require__(767);
120
+ let Declaration = __nccwpck_require__(730);
121
+ let Node = __nccwpck_require__(233);
122
+ let { isClean, my } = __nccwpck_require__(199);
123
123
  let AtRule, parse, Root, Rule;
124
124
  function cleanSource(nodes) {
125
125
  return nodes.map((i) => {
@@ -300,7 +300,7 @@
300
300
  throw new Error("Unknown node type in node creation");
301
301
  }
302
302
  let processed = nodes.map((i) => {
303
- if (!i[my] || !i.markClean) Container.rebuild(i);
303
+ if (!i[my]) Container.rebuild(i);
304
304
  i = i.proxyOf;
305
305
  if (i.parent) i.parent.removeChild(i);
306
306
  if (i[isClean]) markTreeDirty(i);
@@ -497,10 +497,10 @@
497
497
  }
498
498
  };
499
499
  },
500
- 804: (module, __unused_webpack_exports, __nccwpck_require__) => {
500
+ 638: (module, __unused_webpack_exports, __nccwpck_require__) => {
501
501
  "use strict";
502
502
  let pico = __nccwpck_require__(78);
503
- let terminalHighlight = __nccwpck_require__(205);
503
+ let terminalHighlight = __nccwpck_require__(783);
504
504
  class CssSyntaxError extends Error {
505
505
  constructor(message, line, column, source, file, plugin) {
506
506
  super(message);
@@ -613,9 +613,9 @@
613
613
  module.exports = CssSyntaxError;
614
614
  CssSyntaxError.default = CssSyntaxError;
615
615
  },
616
- 193: (module, __unused_webpack_exports, __nccwpck_require__) => {
616
+ 730: (module, __unused_webpack_exports, __nccwpck_require__) => {
617
617
  "use strict";
618
- let Node = __nccwpck_require__(808);
618
+ let Node = __nccwpck_require__(233);
619
619
  class Declaration extends Node {
620
620
  constructor(defaults) {
621
621
  if (
@@ -635,9 +635,9 @@
635
635
  module.exports = Declaration;
636
636
  Declaration.default = Declaration;
637
637
  },
638
- 434: (module, __unused_webpack_exports, __nccwpck_require__) => {
638
+ 399: (module, __unused_webpack_exports, __nccwpck_require__) => {
639
639
  "use strict";
640
- let Container = __nccwpck_require__(607);
640
+ let Container = __nccwpck_require__(322);
641
641
  let LazyResult, Processor;
642
642
  class Document extends Container {
643
643
  constructor(defaults) {
@@ -660,15 +660,15 @@
660
660
  module.exports = Document;
661
661
  Document.default = Document;
662
662
  },
663
- 653: (module, __unused_webpack_exports, __nccwpck_require__) => {
663
+ 140: (module, __unused_webpack_exports, __nccwpck_require__) => {
664
664
  "use strict";
665
- let AtRule = __nccwpck_require__(2);
666
- let Comment = __nccwpck_require__(638);
667
- let Declaration = __nccwpck_require__(193);
668
- let Input = __nccwpck_require__(778);
669
- let PreviousMap = __nccwpck_require__(126);
670
- let Root = __nccwpck_require__(628);
671
- let Rule = __nccwpck_require__(547);
665
+ let AtRule = __nccwpck_require__(528);
666
+ let Comment = __nccwpck_require__(767);
667
+ let Declaration = __nccwpck_require__(730);
668
+ let Input = __nccwpck_require__(564);
669
+ let PreviousMap = __nccwpck_require__(726);
670
+ let Root = __nccwpck_require__(894);
671
+ let Rule = __nccwpck_require__(270);
672
672
  function fromJSON(json, inputs) {
673
673
  if (Array.isArray(json)) return json.map((n) => fromJSON(n));
674
674
  let { inputs: ownInputs, ...defaults } = json;
@@ -712,15 +712,15 @@
712
712
  module.exports = fromJSON;
713
713
  fromJSON.default = fromJSON;
714
714
  },
715
- 778: (module, __unused_webpack_exports, __nccwpck_require__) => {
715
+ 564: (module, __unused_webpack_exports, __nccwpck_require__) => {
716
716
  "use strict";
717
717
  let { nanoid } = __nccwpck_require__(542);
718
718
  let { isAbsolute, resolve } = __nccwpck_require__(17);
719
719
  let { SourceMapConsumer, SourceMapGenerator } = __nccwpck_require__(47);
720
720
  let { fileURLToPath, pathToFileURL } = __nccwpck_require__(310);
721
- let CssSyntaxError = __nccwpck_require__(804);
722
- let PreviousMap = __nccwpck_require__(126);
723
- let terminalHighlight = __nccwpck_require__(205);
721
+ let CssSyntaxError = __nccwpck_require__(638);
722
+ let PreviousMap = __nccwpck_require__(726);
723
+ let terminalHighlight = __nccwpck_require__(783);
724
724
  let fromOffsetCache = Symbol("fromOffsetCache");
725
725
  let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
726
726
  let pathAvailable = Boolean(resolve && isAbsolute);
@@ -935,17 +935,17 @@
935
935
  terminalHighlight.registerInput(Input);
936
936
  }
937
937
  },
938
- 388: (module, __unused_webpack_exports, __nccwpck_require__) => {
938
+ 699: (module, __unused_webpack_exports, __nccwpck_require__) => {
939
939
  "use strict";
940
- let Container = __nccwpck_require__(607);
941
- let Document = __nccwpck_require__(434);
942
- let MapGenerator = __nccwpck_require__(175);
943
- let parse = __nccwpck_require__(439);
944
- let Result = __nccwpck_require__(387);
945
- let Root = __nccwpck_require__(628);
946
- let stringify = __nccwpck_require__(237);
947
- let { isClean, my } = __nccwpck_require__(963);
948
- let warnOnce = __nccwpck_require__(821);
940
+ let Container = __nccwpck_require__(322);
941
+ let Document = __nccwpck_require__(399);
942
+ let MapGenerator = __nccwpck_require__(712);
943
+ let parse = __nccwpck_require__(282);
944
+ let Result = __nccwpck_require__(337);
945
+ let Root = __nccwpck_require__(894);
946
+ let stringify = __nccwpck_require__(463);
947
+ let { isClean, my } = __nccwpck_require__(199);
948
+ let warnOnce = __nccwpck_require__(963);
949
949
  const TYPE_TO_CLASS_NAME = {
950
950
  atrule: "AtRule",
951
951
  comment: "Comment",
@@ -1175,7 +1175,7 @@
1175
1175
  if (this.hasListener) {
1176
1176
  let root = this.result.root;
1177
1177
  while (!root[isClean]) {
1178
- root.markClean();
1178
+ root[isClean] = true;
1179
1179
  let stack = [toStack(root)];
1180
1180
  while (stack.length > 0) {
1181
1181
  let promise = this.visitTick(stack);
@@ -1264,7 +1264,7 @@
1264
1264
  if (this.hasListener) {
1265
1265
  let root = this.result.root;
1266
1266
  while (!root[isClean]) {
1267
- root.markClean();
1267
+ root[isClean] = true;
1268
1268
  this.walkSync(root);
1269
1269
  }
1270
1270
  if (this.listeners.OnceExit) {
@@ -1346,7 +1346,7 @@
1346
1346
  while ((child = node.nodes[node.indexes[iterator]])) {
1347
1347
  node.indexes[iterator] += 1;
1348
1348
  if (!child[isClean]) {
1349
- child.markClean();
1349
+ child[isClean] = true;
1350
1350
  stack.push(toStack(child));
1351
1351
  return;
1352
1352
  }
@@ -1360,7 +1360,7 @@
1360
1360
  visit.eventIndex += 1;
1361
1361
  if (event === CHILDREN) {
1362
1362
  if (node.nodes && node.nodes.length) {
1363
- node.markClean();
1363
+ node[isClean] = true;
1364
1364
  visit.iterator = node.getIterator();
1365
1365
  }
1366
1366
  return;
@@ -1372,7 +1372,7 @@
1372
1372
  stack.pop();
1373
1373
  }
1374
1374
  walkSync(node) {
1375
- node.markClean();
1375
+ node[isClean] = true;
1376
1376
  let events = getEvents(node);
1377
1377
  for (let event of events) {
1378
1378
  if (event === CHILDREN) {
@@ -1425,7 +1425,7 @@
1425
1425
  Root.registerLazyResult(LazyResult);
1426
1426
  Document.registerLazyResult(LazyResult);
1427
1427
  },
1428
- 789: (module) => {
1428
+ 110: (module) => {
1429
1429
  "use strict";
1430
1430
  let list = {
1431
1431
  comma(string) {
@@ -1477,12 +1477,12 @@
1477
1477
  module.exports = list;
1478
1478
  list.default = list;
1479
1479
  },
1480
- 175: (module, __unused_webpack_exports, __nccwpck_require__) => {
1480
+ 712: (module, __unused_webpack_exports, __nccwpck_require__) => {
1481
1481
  "use strict";
1482
1482
  let { dirname, relative, resolve, sep } = __nccwpck_require__(17);
1483
1483
  let { SourceMapConsumer, SourceMapGenerator } = __nccwpck_require__(47);
1484
1484
  let { pathToFileURL } = __nccwpck_require__(310);
1485
- let Input = __nccwpck_require__(778);
1485
+ let Input = __nccwpck_require__(564);
1486
1486
  let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
1487
1487
  let pathAvailable = Boolean(dirname && resolve && relative && sep);
1488
1488
  class MapGenerator {
@@ -1799,13 +1799,13 @@
1799
1799
  }
1800
1800
  module.exports = MapGenerator;
1801
1801
  },
1802
- 588: (module, __unused_webpack_exports, __nccwpck_require__) => {
1802
+ 748: (module, __unused_webpack_exports, __nccwpck_require__) => {
1803
1803
  "use strict";
1804
- let MapGenerator = __nccwpck_require__(175);
1805
- let parse = __nccwpck_require__(439);
1806
- const Result = __nccwpck_require__(387);
1807
- let stringify = __nccwpck_require__(237);
1808
- let warnOnce = __nccwpck_require__(821);
1804
+ let MapGenerator = __nccwpck_require__(712);
1805
+ let parse = __nccwpck_require__(282);
1806
+ const Result = __nccwpck_require__(337);
1807
+ let stringify = __nccwpck_require__(463);
1808
+ let warnOnce = __nccwpck_require__(963);
1809
1809
  class NoWorkResult {
1810
1810
  constructor(processor, css, opts) {
1811
1811
  css = css.toString();
@@ -1913,12 +1913,12 @@
1913
1913
  module.exports = NoWorkResult;
1914
1914
  NoWorkResult.default = NoWorkResult;
1915
1915
  },
1916
- 808: (module, __unused_webpack_exports, __nccwpck_require__) => {
1916
+ 233: (module, __unused_webpack_exports, __nccwpck_require__) => {
1917
1917
  "use strict";
1918
- let CssSyntaxError = __nccwpck_require__(804);
1919
- let Stringifier = __nccwpck_require__(289);
1920
- let stringify = __nccwpck_require__(237);
1921
- let { isClean, my } = __nccwpck_require__(963);
1918
+ let CssSyntaxError = __nccwpck_require__(638);
1919
+ let Stringifier = __nccwpck_require__(935);
1920
+ let stringify = __nccwpck_require__(463);
1921
+ let { isClean, my } = __nccwpck_require__(199);
1922
1922
  function cloneNode(obj, parent) {
1923
1923
  let cloned = new obj.constructor();
1924
1924
  for (let i in obj) {
@@ -2238,11 +2238,11 @@
2238
2238
  module.exports = Node;
2239
2239
  Node.default = Node;
2240
2240
  },
2241
- 439: (module, __unused_webpack_exports, __nccwpck_require__) => {
2241
+ 282: (module, __unused_webpack_exports, __nccwpck_require__) => {
2242
2242
  "use strict";
2243
- let Container = __nccwpck_require__(607);
2244
- let Input = __nccwpck_require__(778);
2245
- let Parser = __nccwpck_require__(512);
2243
+ let Container = __nccwpck_require__(322);
2244
+ let Input = __nccwpck_require__(564);
2245
+ let Parser = __nccwpck_require__(648);
2246
2246
  function parse(css, opts) {
2247
2247
  let input = new Input(css, opts);
2248
2248
  let parser = new Parser(input);
@@ -2277,14 +2277,14 @@
2277
2277
  parse.default = parse;
2278
2278
  Container.registerParse(parse);
2279
2279
  },
2280
- 512: (module, __unused_webpack_exports, __nccwpck_require__) => {
2280
+ 648: (module, __unused_webpack_exports, __nccwpck_require__) => {
2281
2281
  "use strict";
2282
- let AtRule = __nccwpck_require__(2);
2283
- let Comment = __nccwpck_require__(638);
2284
- let Declaration = __nccwpck_require__(193);
2285
- let Root = __nccwpck_require__(628);
2286
- let Rule = __nccwpck_require__(547);
2287
- let tokenizer = __nccwpck_require__(625);
2282
+ let AtRule = __nccwpck_require__(528);
2283
+ let Comment = __nccwpck_require__(767);
2284
+ let Declaration = __nccwpck_require__(730);
2285
+ let Root = __nccwpck_require__(894);
2286
+ let Rule = __nccwpck_require__(270);
2287
+ let tokenizer = __nccwpck_require__(434);
2288
2288
  const SAFE_COMMENT_NEIGHBOR = { empty: true, space: true };
2289
2289
  function findLastWithPosition(tokens) {
2290
2290
  for (let i = tokens.length - 1; i >= 0; i--) {
@@ -2802,26 +2802,26 @@
2802
2802
  }
2803
2803
  module.exports = Parser;
2804
2804
  },
2805
- 616: (module, __unused_webpack_exports, __nccwpck_require__) => {
2805
+ 642: (module, __unused_webpack_exports, __nccwpck_require__) => {
2806
2806
  "use strict";
2807
- let AtRule = __nccwpck_require__(2);
2808
- let Comment = __nccwpck_require__(638);
2809
- let Container = __nccwpck_require__(607);
2810
- let CssSyntaxError = __nccwpck_require__(804);
2811
- let Declaration = __nccwpck_require__(193);
2812
- let Document = __nccwpck_require__(434);
2813
- let fromJSON = __nccwpck_require__(653);
2814
- let Input = __nccwpck_require__(778);
2815
- let LazyResult = __nccwpck_require__(388);
2816
- let list = __nccwpck_require__(789);
2817
- let Node = __nccwpck_require__(808);
2818
- let parse = __nccwpck_require__(439);
2819
- let Processor = __nccwpck_require__(899);
2820
- let Result = __nccwpck_require__(387);
2821
- let Root = __nccwpck_require__(628);
2822
- let Rule = __nccwpck_require__(547);
2823
- let stringify = __nccwpck_require__(237);
2824
- let Warning = __nccwpck_require__(197);
2807
+ let AtRule = __nccwpck_require__(528);
2808
+ let Comment = __nccwpck_require__(767);
2809
+ let Container = __nccwpck_require__(322);
2810
+ let CssSyntaxError = __nccwpck_require__(638);
2811
+ let Declaration = __nccwpck_require__(730);
2812
+ let Document = __nccwpck_require__(399);
2813
+ let fromJSON = __nccwpck_require__(140);
2814
+ let Input = __nccwpck_require__(564);
2815
+ let LazyResult = __nccwpck_require__(699);
2816
+ let list = __nccwpck_require__(110);
2817
+ let Node = __nccwpck_require__(233);
2818
+ let parse = __nccwpck_require__(282);
2819
+ let Processor = __nccwpck_require__(87);
2820
+ let Result = __nccwpck_require__(337);
2821
+ let Root = __nccwpck_require__(894);
2822
+ let Rule = __nccwpck_require__(270);
2823
+ let stringify = __nccwpck_require__(463);
2824
+ let Warning = __nccwpck_require__(383);
2825
2825
  function postcss(...plugins) {
2826
2826
  if (plugins.length === 1 && Array.isArray(plugins[0])) {
2827
2827
  plugins = plugins[0];
@@ -2890,7 +2890,7 @@
2890
2890
  module.exports = postcss;
2891
2891
  postcss.default = postcss;
2892
2892
  },
2893
- 126: (module, __unused_webpack_exports, __nccwpck_require__) => {
2893
+ 726: (module, __unused_webpack_exports, __nccwpck_require__) => {
2894
2894
  "use strict";
2895
2895
  let { existsSync, readFileSync } = __nccwpck_require__(147);
2896
2896
  let { dirname, join } = __nccwpck_require__(17);
@@ -3016,15 +3016,15 @@
3016
3016
  module.exports = PreviousMap;
3017
3017
  PreviousMap.default = PreviousMap;
3018
3018
  },
3019
- 899: (module, __unused_webpack_exports, __nccwpck_require__) => {
3019
+ 87: (module, __unused_webpack_exports, __nccwpck_require__) => {
3020
3020
  "use strict";
3021
- let Document = __nccwpck_require__(434);
3022
- let LazyResult = __nccwpck_require__(388);
3023
- let NoWorkResult = __nccwpck_require__(588);
3024
- let Root = __nccwpck_require__(628);
3021
+ let Document = __nccwpck_require__(399);
3022
+ let LazyResult = __nccwpck_require__(699);
3023
+ let NoWorkResult = __nccwpck_require__(748);
3024
+ let Root = __nccwpck_require__(894);
3025
3025
  class Processor {
3026
3026
  constructor(plugins = []) {
3027
- this.version = "8.4.43";
3027
+ this.version = "8.4.45";
3028
3028
  this.plugins = this.normalize(plugins);
3029
3029
  }
3030
3030
  normalize(plugins) {
@@ -3077,9 +3077,9 @@
3077
3077
  Root.registerProcessor(Processor);
3078
3078
  Document.registerProcessor(Processor);
3079
3079
  },
3080
- 387: (module, __unused_webpack_exports, __nccwpck_require__) => {
3080
+ 337: (module, __unused_webpack_exports, __nccwpck_require__) => {
3081
3081
  "use strict";
3082
- let Warning = __nccwpck_require__(197);
3082
+ let Warning = __nccwpck_require__(383);
3083
3083
  class Result {
3084
3084
  constructor(processor, root, opts) {
3085
3085
  this.processor = processor;
@@ -3112,9 +3112,9 @@
3112
3112
  module.exports = Result;
3113
3113
  Result.default = Result;
3114
3114
  },
3115
- 628: (module, __unused_webpack_exports, __nccwpck_require__) => {
3115
+ 894: (module, __unused_webpack_exports, __nccwpck_require__) => {
3116
3116
  "use strict";
3117
- let Container = __nccwpck_require__(607);
3117
+ let Container = __nccwpck_require__(322);
3118
3118
  let LazyResult, Processor;
3119
3119
  class Root extends Container {
3120
3120
  constructor(defaults) {
@@ -3161,10 +3161,10 @@
3161
3161
  Root.default = Root;
3162
3162
  Container.registerRoot(Root);
3163
3163
  },
3164
- 547: (module, __unused_webpack_exports, __nccwpck_require__) => {
3164
+ 270: (module, __unused_webpack_exports, __nccwpck_require__) => {
3165
3165
  "use strict";
3166
- let Container = __nccwpck_require__(607);
3167
- let list = __nccwpck_require__(789);
3166
+ let Container = __nccwpck_require__(322);
3167
+ let list = __nccwpck_require__(110);
3168
3168
  class Rule extends Container {
3169
3169
  constructor(defaults) {
3170
3170
  super(defaults);
@@ -3184,7 +3184,7 @@
3184
3184
  Rule.default = Rule;
3185
3185
  Container.registerRule(Rule);
3186
3186
  },
3187
- 289: (module) => {
3187
+ 935: (module) => {
3188
3188
  "use strict";
3189
3189
  const DEFAULT_RAW = {
3190
3190
  after: "\n",
@@ -3487,9 +3487,9 @@
3487
3487
  module.exports = Stringifier;
3488
3488
  Stringifier.default = Stringifier;
3489
3489
  },
3490
- 237: (module, __unused_webpack_exports, __nccwpck_require__) => {
3490
+ 463: (module, __unused_webpack_exports, __nccwpck_require__) => {
3491
3491
  "use strict";
3492
- let Stringifier = __nccwpck_require__(289);
3492
+ let Stringifier = __nccwpck_require__(935);
3493
3493
  function stringify(node, builder) {
3494
3494
  let str = new Stringifier(builder);
3495
3495
  str.stringify(node);
@@ -3497,15 +3497,15 @@
3497
3497
  module.exports = stringify;
3498
3498
  stringify.default = stringify;
3499
3499
  },
3500
- 963: (module) => {
3500
+ 199: (module) => {
3501
3501
  "use strict";
3502
3502
  module.exports.isClean = Symbol("isClean");
3503
3503
  module.exports.my = Symbol("my");
3504
3504
  },
3505
- 205: (module, __unused_webpack_exports, __nccwpck_require__) => {
3505
+ 783: (module, __unused_webpack_exports, __nccwpck_require__) => {
3506
3506
  "use strict";
3507
3507
  let pico = __nccwpck_require__(78);
3508
- let tokenizer = __nccwpck_require__(625);
3508
+ let tokenizer = __nccwpck_require__(434);
3509
3509
  let Input;
3510
3510
  function registerInput(dependant) {
3511
3511
  Input = dependant;
@@ -3563,7 +3563,7 @@
3563
3563
  terminalHighlight.registerInput = registerInput;
3564
3564
  module.exports = terminalHighlight;
3565
3565
  },
3566
- 625: (module) => {
3566
+ 434: (module) => {
3567
3567
  "use strict";
3568
3568
  const SINGLE_QUOTE = "'".charCodeAt(0);
3569
3569
  const DOUBLE_QUOTE = '"'.charCodeAt(0);
@@ -3797,7 +3797,7 @@
3797
3797
  return { back, endOfFile, nextToken, position };
3798
3798
  };
3799
3799
  },
3800
- 821: (module) => {
3800
+ 963: (module) => {
3801
3801
  "use strict";
3802
3802
  let printed = {};
3803
3803
  module.exports = function warnOnce(message) {
@@ -3808,7 +3808,7 @@
3808
3808
  }
3809
3809
  };
3810
3810
  },
3811
- 197: (module) => {
3811
+ 383: (module) => {
3812
3812
  "use strict";
3813
3813
  class Warning {
3814
3814
  constructor(text, opts = {}) {
@@ -6044,6 +6044,6 @@
6044
6044
  }
6045
6045
  if (typeof __nccwpck_require__ !== "undefined")
6046
6046
  __nccwpck_require__.ab = __dirname + "/";
6047
- var __webpack_exports__ = __nccwpck_require__(616);
6047
+ var __webpack_exports__ = __nccwpck_require__(642);
6048
6048
  module.exports = __webpack_exports__;
6049
6049
  })();
@@ -1 +1 @@
1
- {"name":"postcss","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"8.4.43","funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"license":"MIT","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"postcss","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"8.4.45","funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -367,12 +367,12 @@
367
367
  };
368
368
  };
369
369
  },
370
- 113: (module, __unused_webpack_exports, __nccwpck_require__) => {
370
+ 157: (module, __unused_webpack_exports, __nccwpck_require__) => {
371
371
  const { resolve } = __nccwpck_require__(411);
372
372
  const config = __nccwpck_require__(882);
373
- const loadOptions = __nccwpck_require__(552);
374
- const loadPlugins = __nccwpck_require__(697);
375
- const req = __nccwpck_require__(832);
373
+ const loadOptions = __nccwpck_require__(390);
374
+ const loadPlugins = __nccwpck_require__(400);
375
+ const req = __nccwpck_require__(136);
376
376
  const interopRequireDefault = (obj) =>
377
377
  obj && obj.__esModule ? obj : { default: obj };
378
378
  async function processResult(ctx, result) {
@@ -486,8 +486,8 @@
486
486
  * @requires ./plugins
487
487
  */ module.exports = rc;
488
488
  },
489
- 552: (module, __unused_webpack_exports, __nccwpck_require__) => {
490
- const req = __nccwpck_require__(832);
489
+ 390: (module, __unused_webpack_exports, __nccwpck_require__) => {
490
+ const req = __nccwpck_require__(136);
491
491
  async function options(config, file) {
492
492
  if (config.parser && typeof config.parser === "string") {
493
493
  try {
@@ -520,8 +520,8 @@
520
520
  }
521
521
  module.exports = options;
522
522
  },
523
- 697: (module, __unused_webpack_exports, __nccwpck_require__) => {
524
- const req = __nccwpck_require__(832);
523
+ 400: (module, __unused_webpack_exports, __nccwpck_require__) => {
524
+ const req = __nccwpck_require__(136);
525
525
  async function load(plugin, options, file) {
526
526
  try {
527
527
  if (
@@ -576,7 +576,7 @@
576
576
  }
577
577
  module.exports = plugins;
578
578
  },
579
- 832: (module, __unused_webpack_exports, __nccwpck_require__) => {
579
+ 136: (module, __unused_webpack_exports, __nccwpck_require__) => {
580
580
  const { createRequire } = __nccwpck_require__(33);
581
581
  const { pathToFileURL } = __nccwpck_require__(41);
582
582
  const TS_EXT_RE = /\.[mc]?ts$/;
@@ -746,6 +746,6 @@
746
746
  })();
747
747
  if (typeof __nccwpck_require__ !== "undefined")
748
748
  __nccwpck_require__.ab = __dirname + "/";
749
- var __webpack_exports__ = __nccwpck_require__(113);
749
+ var __webpack_exports__ = __nccwpck_require__(157);
750
750
  module.exports = __webpack_exports__;
751
751
  })();
@@ -1,17 +1,17 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 105: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(449)["default"];
4
+ 681: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(96)["default"];
6
6
  },
7
- 449: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 96: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
8
  var __webpack_unused_export__;
9
9
  __webpack_unused_export__ = { value: true };
10
10
  exports["default"] = loader;
11
11
  var _path = _interopRequireDefault(__nccwpck_require__(17));
12
- var _package = _interopRequireDefault(__nccwpck_require__(321));
13
- var _options = _interopRequireDefault(__nccwpck_require__(969));
14
- var _utils = __nccwpck_require__(371);
12
+ var _package = _interopRequireDefault(__nccwpck_require__(441));
13
+ var _options = _interopRequireDefault(__nccwpck_require__(698));
14
+ var _utils = __nccwpck_require__(910);
15
15
  function _interopRequireDefault(obj) {
16
16
  return obj && obj.__esModule ? obj : { default: obj };
17
17
  }
@@ -189,7 +189,7 @@
189
189
  callback(null, result.css, map, { ast });
190
190
  }
191
191
  },
192
- 371: (module, exports, __nccwpck_require__) => {
192
+ 910: (module, exports, __nccwpck_require__) => {
193
193
  module = __nccwpck_require__.nmd(module);
194
194
  Object.defineProperty(exports, "__esModule", { value: true });
195
195
  exports.exec = exec;
@@ -694,14 +694,14 @@
694
694
  310: (module) => {
695
695
  module.exports = require("url");
696
696
  },
697
- 969: (module) => {
697
+ 698: (module) => {
698
698
  module.exports = JSON.parse(
699
699
  '{"title":"PostCSS Loader options","type":"object","properties":{"postcssOptions":{"description":"Options to pass through to `Postcss`.","link":"https://github.com/webpack-contrib/postcss-loader#postcssOptions","anyOf":[{"type":"object","additionalProperties":true,"properties":{"config":{"description":"Allows to specify PostCSS config path.","link":"https://github.com/webpack-contrib/postcss-loader#config","anyOf":[{"description":"Allows to specify the path to the configuration file","type":"string"},{"description":"Enables/Disables autoloading config","type":"boolean"}]}}},{"instanceof":"Function"}]},"execute":{"description":"Enables/Disables PostCSS parser support in \'CSS-in-JS\'.","link":"https://github.com/webpack-contrib/postcss-loader#execute","type":"boolean"},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/postcss-loader#sourcemap","type":"boolean"},"implementation":{"description":"The implementation of postcss to use, instead of the locally installed version","link":"https://github.com/webpack-contrib/postcss-loader#implementation","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
700
700
  );
701
701
  },
702
- 321: (module) => {
702
+ 441: (module) => {
703
703
  module.exports = JSON.parse(
704
- '{"name":"postcss","version":"8.4.43","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.0.1","source-map-js":"^1.2.0"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
704
+ '{"name":"postcss","version":"8.4.45","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"require":"./lib/postcss.js","import":"./lib/postcss.mjs"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.7","picocolors":"^1.0.1","source-map-js":"^1.2.0"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
705
705
  );
706
706
  },
707
707
  };
@@ -739,6 +739,6 @@
739
739
  })();
740
740
  if (typeof __nccwpck_require__ !== "undefined")
741
741
  __nccwpck_require__.ab = __dirname + "/";
742
- var __webpack_exports__ = __nccwpck_require__(105);
742
+ var __webpack_exports__ = __nccwpck_require__(681);
743
743
  module.exports = __webpack_exports__;
744
744
  })();
@@ -164,7 +164,7 @@ var supports_color_default = supportsColor;
164
164
  // src/utils.ts
165
165
  var colorLevel = supports_color_default.stdout ? supports_color_default.stdout.level : 0;
166
166
  var errorStackRegExp = /at\s.*:\d+:\d+[\s\)]*$/;
167
- var anonymousErrorStackRegExp = /^\s*at\s.*\(<anonymous>\)$/;
167
+ var anonymousErrorStackRegExp = /at\s.*\(<anonymous>\)$/;
168
168
  var isErrorStackMessage = (message) => errorStackRegExp.test(message) || anonymousErrorStackRegExp.test(message);
169
169
 
170
170
  // src/color.ts
@@ -1 +1 @@
1
- {"name":"rslog","version":"1.2.2","types":"index.d.ts","type":"commonjs"}
1
+ {"name":"rslog","version":"1.2.3","types":"index.d.ts","type":"commonjs"}
package/dist/index.cjs CHANGED
@@ -2297,7 +2297,7 @@ async function createContext(options, userConfig, bundlerType) {
2297
2297
  const rsbuildConfig = await withDefaultConfig(rootPath, userConfig);
2298
2298
  const cachePath = (0, import_node_path9.join)(rootPath, "node_modules", ".cache");
2299
2299
  return {
2300
- version: "1.0.1-rc.4",
2300
+ version: "1.0.1",
2301
2301
  rootPath,
2302
2302
  distPath: "",
2303
2303
  cachePath,
@@ -5717,7 +5717,8 @@ var init_css = __esm({
5717
5717
  ...cssModules,
5718
5718
  localIdentName
5719
5719
  },
5720
- sourceMap: config.output.sourceMap.css
5720
+ sourceMap: config.output.sourceMap.css,
5721
+ _skipReuseAST: config.tools.lightningcssLoader !== false
5721
5722
  };
5722
5723
  const mergedCssLoaderOptions = reduceConfigs({
5723
5724
  initial: defaultOptions2,
@@ -9668,7 +9669,7 @@ var init_init = __esm({
9668
9669
 
9669
9670
  // src/cli/commands.ts
9670
9671
  function runCli() {
9671
- import_commander.program.name("rsbuild").usage("<command> [options]").version("1.0.1-rc.4");
9672
+ import_commander.program.name("rsbuild").usage("<command> [options]").version("1.0.1");
9672
9673
  const devCommand = import_commander.program.command("dev");
9673
9674
  const buildCommand = import_commander.program.command("build");
9674
9675
  const previewCommand = import_commander.program.command("preview");
@@ -9791,7 +9792,7 @@ function prepareCli() {
9791
9792
  if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
9792
9793
  console.log();
9793
9794
  }
9794
- import_rslog.logger.greet(` ${`Rsbuild v${"1.0.1-rc.4"}`}
9795
+ import_rslog.logger.greet(` ${`Rsbuild v${"1.0.1"}`}
9795
9796
  `);
9796
9797
  }
9797
9798
  var init_prepare = __esm({
@@ -9875,7 +9876,7 @@ init_logger();
9875
9876
  init_mergeConfig();
9876
9877
  init_helpers();
9877
9878
  init_constants();
9878
- var version = "1.0.1-rc.4";
9879
+ var version = "1.0.1";
9879
9880
  // Annotate the CommonJS export names for ESM import in node:
9880
9881
  0 && (module.exports = {
9881
9882
  PLUGIN_CSS_NAME,
package/dist/index.js CHANGED
@@ -46,12 +46,12 @@ var __publicField = (obj, key, value) => {
46
46
  return value;
47
47
  };
48
48
 
49
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.58.3_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
49
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.59.0_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
50
50
  import path from "path";
51
51
  import { fileURLToPath } from "url";
52
52
  var getFilename, getDirname, __dirname, __filename;
53
53
  var init_esm = __esm({
54
- "../../node_modules/.pnpm/@modern-js+module-tools@2.58.3_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js"() {
54
+ "../../node_modules/.pnpm/@modern-js+module-tools@2.59.0_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js"() {
55
55
  "use strict";
56
56
  getFilename = () => fileURLToPath(import.meta.url);
57
57
  getDirname = () => path.dirname(getFilename());
@@ -2335,7 +2335,7 @@ async function createContext(options, userConfig, bundlerType) {
2335
2335
  const rsbuildConfig = await withDefaultConfig(rootPath, userConfig);
2336
2336
  const cachePath = join6(rootPath, "node_modules", ".cache");
2337
2337
  return {
2338
- version: "1.0.1-rc.4",
2338
+ version: "1.0.1",
2339
2339
  rootPath,
2340
2340
  distPath: "",
2341
2341
  cachePath,
@@ -5785,7 +5785,8 @@ var init_css = __esm({
5785
5785
  ...cssModules,
5786
5786
  localIdentName
5787
5787
  },
5788
- sourceMap: config.output.sourceMap.css
5788
+ sourceMap: config.output.sourceMap.css,
5789
+ _skipReuseAST: config.tools.lightningcssLoader !== false
5789
5790
  };
5790
5791
  const mergedCssLoaderOptions = reduceConfigs({
5791
5792
  initial: defaultOptions2,
@@ -9777,7 +9778,7 @@ import { existsSync } from "fs";
9777
9778
  import { program } from "../compiled/commander/index.js";
9778
9779
  import color16 from "../compiled/picocolors/index.js";
9779
9780
  function runCli() {
9780
- program.name("rsbuild").usage("<command> [options]").version("1.0.1-rc.4");
9781
+ program.name("rsbuild").usage("<command> [options]").version("1.0.1");
9781
9782
  const devCommand = program.command("dev");
9782
9783
  const buildCommand = program.command("build");
9783
9784
  const previewCommand = program.command("preview");
@@ -9898,7 +9899,7 @@ function prepareCli() {
9898
9899
  if (!npm_execpath || npm_execpath.includes("npx-cli.js") || npm_execpath.includes(".bun")) {
9899
9900
  console.log();
9900
9901
  }
9901
- logger.greet(` ${`Rsbuild v${"1.0.1-rc.4"}`}
9902
+ logger.greet(` ${`Rsbuild v${"1.0.1"}`}
9902
9903
  `);
9903
9904
  }
9904
9905
  var init_prepare = __esm({
@@ -9969,7 +9970,7 @@ init_mergeConfig();
9969
9970
  init_helpers();
9970
9971
  init_constants();
9971
9972
  import { rspack as rspack10 } from "@rspack/core";
9972
- var version = "1.0.1-rc.4";
9973
+ var version = "1.0.1";
9973
9974
  export {
9974
9975
  PLUGIN_CSS_NAME,
9975
9976
  PLUGIN_SWC_NAME,
@@ -138,6 +138,11 @@ export interface CSSLoaderOptions {
138
138
  * @default 'array'
139
139
  */
140
140
  exportType?: 'array' | 'string' | 'css-style-sheet';
141
+ /**
142
+ * Temp fix for https://github.com/web-infra-dev/rspack/issues/7819
143
+ * @private
144
+ */
145
+ _skipReuseAST?: boolean;
141
146
  }
142
147
  export type StyleLoaderInjectType = 'styleTag' | 'singletonStyleTag' | 'lazyStyleTag' | 'lazySingletonStyleTag' | 'linkTag';
143
148
  export interface StyleLoaderOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "1.0.1-rc.4",
3
+ "version": "1.0.1",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {
@@ -49,7 +49,7 @@
49
49
  "@rspack/core": "~1.0.3",
50
50
  "@rspack/lite-tapable": "~1.0.0",
51
51
  "@swc/helpers": "^0.5.12",
52
- "caniuse-lite": "^1.0.30001655",
52
+ "caniuse-lite": "^1.0.30001659",
53
53
  "core-js": "~3.38.1"
54
54
  },
55
55
  "devDependencies": {
@@ -70,20 +70,21 @@
70
70
  "dotenv": "16.4.5",
71
71
  "dotenv-expand": "11.0.6",
72
72
  "fs-extra": "^11.2.0",
73
- "html-rspack-plugin": "6.0.0",
73
+ "html-rspack-plugin": "6.0.1",
74
74
  "http-proxy-middleware": "^2.0.6",
75
75
  "jiti": "^1.21.6",
76
- "launch-editor-middleware": "^2.8.1",
76
+ "launch-editor-middleware": "^2.9.1",
77
77
  "mrmime": "^2.0.0",
78
78
  "on-finished": "2.4.1",
79
79
  "open": "^8.4.0",
80
80
  "picocolors": "^1.1.0",
81
- "postcss": "^8.4.43",
81
+ "postcss": "^8.4.45",
82
82
  "postcss-load-config": "6.0.1",
83
83
  "postcss-loader": "8.1.1",
84
84
  "prebundle": "1.2.2",
85
85
  "reduce-configs": "^1.0.0",
86
- "rslog": "^1.2.2",
86
+ "rsbuild-dev-middleware": "0.1.1",
87
+ "rslog": "^1.2.3",
87
88
  "rspack-chain": "^1.0.0",
88
89
  "rspack-manifest-plugin": "5.0.1",
89
90
  "sirv": "^2.0.4",
@@ -92,7 +93,6 @@
92
93
  "typescript": "^5.5.2",
93
94
  "webpack": "^5.94.0",
94
95
  "webpack-bundle-analyzer": "^4.10.2",
95
- "rsbuild-dev-middleware": "0.1.1",
96
96
  "webpack-merge": "6.0.1",
97
97
  "ws": "^8.18.0"
98
98
  },