@rsbuild/core 1.0.1-rc.5 → 1.0.2

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.
@@ -1,22 +1,22 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 1668: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 7277: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const loader = __nccwpck_require__(5288);
5
+ const loader = __nccwpck_require__(4221);
6
6
  module.exports = loader.default;
7
7
  module.exports.defaultGetLocalIdent =
8
- __nccwpck_require__(9049).defaultGetLocalIdent;
8
+ __nccwpck_require__(3017).defaultGetLocalIdent;
9
9
  },
10
- 5288: (__unused_webpack_module, exports, __nccwpck_require__) => {
10
+ 4221: (__unused_webpack_module, exports, __nccwpck_require__) => {
11
11
  "use strict";
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
- var _options = _interopRequireDefault(__nccwpck_require__(9965));
18
- var _plugins = __nccwpck_require__(7723);
19
- var _utils = __nccwpck_require__(9049);
17
+ var _options = _interopRequireDefault(__nccwpck_require__(5295));
18
+ var _plugins = __nccwpck_require__(7920);
19
+ var _utils = __nccwpck_require__(3017);
20
20
  function _interopRequireDefault(obj) {
21
21
  return obj && obj.__esModule ? obj : { default: obj };
22
22
  }
@@ -243,7 +243,7 @@
243
243
  callback(null, `${importCode}${moduleCode}${exportCode}`);
244
244
  }
245
245
  },
246
- 7723: (__unused_webpack_module, exports, __nccwpck_require__) => {
246
+ 7920: (__unused_webpack_module, exports, __nccwpck_require__) => {
247
247
  "use strict";
248
248
  Object.defineProperty(exports, "__esModule", { value: true });
249
249
  Object.defineProperty(exports, "icssParser", {
@@ -265,22 +265,22 @@
265
265
  },
266
266
  });
267
267
  var _postcssImportParser = _interopRequireDefault(
268
- __nccwpck_require__(5583),
268
+ __nccwpck_require__(4228),
269
269
  );
270
270
  var _postcssIcssParser = _interopRequireDefault(
271
- __nccwpck_require__(1789),
271
+ __nccwpck_require__(9593),
272
272
  );
273
- var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(9758));
273
+ var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(4517));
274
274
  function _interopRequireDefault(obj) {
275
275
  return obj && obj.__esModule ? obj : { default: obj };
276
276
  }
277
277
  },
278
- 1789: (__unused_webpack_module, exports, __nccwpck_require__) => {
278
+ 9593: (__unused_webpack_module, exports, __nccwpck_require__) => {
279
279
  "use strict";
280
280
  Object.defineProperty(exports, "__esModule", { value: true });
281
281
  exports["default"] = void 0;
282
- var _icssUtils = __nccwpck_require__(9598);
283
- var _utils = __nccwpck_require__(9049);
282
+ var _icssUtils = __nccwpck_require__(7718);
283
+ var _utils = __nccwpck_require__(3017);
284
284
  const plugin = (options = {}) => ({
285
285
  postcssPlugin: "postcss-icss-parser",
286
286
  async OnceExit(root) {
@@ -379,14 +379,14 @@
379
379
  plugin.postcss = true;
380
380
  var _default = (exports["default"] = plugin);
381
381
  },
382
- 5583: (__unused_webpack_module, exports, __nccwpck_require__) => {
382
+ 4228: (__unused_webpack_module, exports, __nccwpck_require__) => {
383
383
  "use strict";
384
384
  Object.defineProperty(exports, "__esModule", { value: true });
385
385
  exports["default"] = void 0;
386
386
  var _postcssValueParser = _interopRequireDefault(
387
387
  __nccwpck_require__(7555),
388
388
  );
389
- var _utils = __nccwpck_require__(9049);
389
+ var _utils = __nccwpck_require__(3017);
390
390
  function _interopRequireDefault(obj) {
391
391
  return obj && obj.__esModule ? obj : { default: obj };
392
392
  }
@@ -691,14 +691,14 @@
691
691
  plugin.postcss = true;
692
692
  var _default = (exports["default"] = plugin);
693
693
  },
694
- 9758: (__unused_webpack_module, exports, __nccwpck_require__) => {
694
+ 4517: (__unused_webpack_module, exports, __nccwpck_require__) => {
695
695
  "use strict";
696
696
  Object.defineProperty(exports, "__esModule", { value: true });
697
697
  exports["default"] = void 0;
698
698
  var _postcssValueParser = _interopRequireDefault(
699
699
  __nccwpck_require__(7555),
700
700
  );
701
- var _utils = __nccwpck_require__(9049);
701
+ var _utils = __nccwpck_require__(3017);
702
702
  function _interopRequireDefault(obj) {
703
703
  return obj && obj.__esModule ? obj : { default: obj };
704
704
  }
@@ -1041,7 +1041,7 @@
1041
1041
  plugin.postcss = true;
1042
1042
  var _default = (exports["default"] = plugin);
1043
1043
  },
1044
- 9049: (__unused_webpack_module, exports, __nccwpck_require__) => {
1044
+ 3017: (__unused_webpack_module, exports, __nccwpck_require__) => {
1045
1045
  "use strict";
1046
1046
  Object.defineProperty(exports, "__esModule", { value: true });
1047
1047
  exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
@@ -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-]+):?(.*?)$/;
@@ -7964,16 +7964,16 @@
7964
7964
  "use strict";
7965
7965
  module.exports = require("util");
7966
7966
  },
7967
- 9965: (module) => {
7967
+ 5295: (module) => {
7968
7968
  "use strict";
7969
7969
  module.exports = JSON.parse(
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
  };
@@ -7999,6 +7999,6 @@
7999
7999
  }
8000
8000
  if (typeof __nccwpck_require__ !== "undefined")
8001
8001
  __nccwpck_require__.ab = __dirname + "/";
8002
- var __webpack_exports__ = __nccwpck_require__(1668);
8002
+ var __webpack_exports__ = __nccwpck_require__(7277);
8003
8003
  module.exports = __webpack_exports__;
8004
8004
  })();
@@ -1,8 +1,8 @@
1
1
  (() => {
2
2
  var __webpack_modules__ = {
3
- 922: (module, __unused_webpack_exports, __nccwpck_require__) => {
3
+ 703: (module, __unused_webpack_exports, __nccwpck_require__) => {
4
4
  "use strict";
5
- const { HtmlWebpackChildCompiler } = __nccwpck_require__(595);
5
+ const { HtmlWebpackChildCompiler } = __nccwpck_require__(850);
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
- 595: (module) => {
307
+ 850: (module) => {
308
308
  "use strict";
309
309
  class HtmlWebpackChildCompiler {
310
310
  constructor(templates) {
@@ -473,7 +473,7 @@
473
473
  }
474
474
  module.exports = { HtmlWebpackChildCompiler };
475
475
  },
476
- 109: (module) => {
476
+ 6: (module) => {
477
477
  "use strict";
478
478
  module.exports = {};
479
479
  module.exports.none = (chunks) => chunks;
@@ -492,7 +492,7 @@
492
492
  };
493
493
  module.exports.auto = module.exports.none;
494
494
  },
495
- 693: (module) => {
495
+ 827: (module) => {
496
496
  "use strict";
497
497
  module.exports = function (err) {
498
498
  return {
@@ -513,7 +513,7 @@
513
513
  };
514
514
  };
515
515
  },
516
- 129: (module, __unused_webpack_exports, __nccwpck_require__) => {
516
+ 11: (module, __unused_webpack_exports, __nccwpck_require__) => {
517
517
  "use strict";
518
518
  const { AsyncSeriesWaterfallHook } = __nccwpck_require__(348);
519
519
  const htmlWebpackPluginHooksMap = new WeakMap();
@@ -539,7 +539,7 @@
539
539
  }
540
540
  module.exports = { getHtmlRspackPluginHooks };
541
541
  },
542
- 162: (module) => {
542
+ 953: (module) => {
543
543
  const voidTags = [
544
544
  "area",
545
545
  "base",
@@ -607,19 +607,19 @@
607
607
  htmlTagObjectToString,
608
608
  };
609
609
  },
610
- 138: (module, __unused_webpack_exports, __nccwpck_require__) => {
610
+ 135: (module, __unused_webpack_exports, __nccwpck_require__) => {
611
611
  "use strict";
612
612
  const promisify = __nccwpck_require__(837).promisify;
613
613
  const vm = __nccwpck_require__(144);
614
614
  const fs = __nccwpck_require__(147);
615
615
  const path = __nccwpck_require__(17);
616
- const { CachedChildCompilation } = __nccwpck_require__(922);
616
+ const { CachedChildCompilation } = __nccwpck_require__(703);
617
617
  const { createHtmlTagObject, htmlTagObjectToString, HtmlTagArray } =
618
- __nccwpck_require__(162);
619
- const prettyError = __nccwpck_require__(693);
620
- const chunkSorter = __nccwpck_require__(109);
618
+ __nccwpck_require__(953);
619
+ const prettyError = __nccwpck_require__(827);
620
+ const chunkSorter = __nccwpck_require__(6);
621
621
  const getHtmlRspackPluginHooks =
622
- __nccwpck_require__(129).getHtmlRspackPluginHooks;
622
+ __nccwpck_require__(11).getHtmlRspackPluginHooks;
623
623
  class HtmlRspackPlugin {
624
624
  constructor(userOptions = {}) {
625
625
  this.version = HtmlRspackPlugin.version;
@@ -1577,6 +1577,6 @@
1577
1577
  }
1578
1578
  if (typeof __nccwpck_require__ !== "undefined")
1579
1579
  __nccwpck_require__.ab = __dirname + "/";
1580
- var __webpack_exports__ = __nccwpck_require__(138);
1580
+ var __webpack_exports__ = __nccwpck_require__(135);
1581
1581
  module.exports = __webpack_exports__;
1582
1582
  })();
@@ -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"}