@unpackjs/core 3.3.2 → 3.3.3

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.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017-present, Yuxi (Evan) You
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"launch-editor","author":"Evan You","version":"2.11.1","license":"MIT","types":"index.d.ts","type":"commonjs"}
@@ -1,16 +1,16 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 946: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(816)["default"];
4
+ 253: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(991)["default"];
6
6
  },
7
- 816: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 991: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
8
  var __webpack_unused_export__;
9
9
  __webpack_unused_export__ = { value: true };
10
10
  exports["default"] = void 0;
11
11
  var _path = _interopRequireDefault(__nccwpck_require__(928));
12
- var _options = _interopRequireDefault(__nccwpck_require__(529));
13
- var _utils = __nccwpck_require__(910);
12
+ var _options = _interopRequireDefault(__nccwpck_require__(430));
13
+ var _utils = __nccwpck_require__(402);
14
14
  function _interopRequireDefault(e) {
15
15
  return e && e.__esModule ? e : { default: e };
16
16
  }
@@ -112,7 +112,7 @@
112
112
  }
113
113
  var _default = (exports["default"] = lessLoader);
114
114
  },
115
- 910: (__unused_webpack_module, exports, __nccwpck_require__) => {
115
+ 402: (__unused_webpack_module, exports, __nccwpck_require__) => {
116
116
  Object.defineProperty(exports, "__esModule", { value: true });
117
117
  exports.errorFactory = errorFactory;
118
118
  exports.getLessImplementation = getLessImplementation;
@@ -312,7 +312,7 @@
312
312
  928: (module) => {
313
313
  module.exports = require("path");
314
314
  },
315
- 529: (module) => {
315
+ 430: (module) => {
316
316
  module.exports = JSON.parse(
317
317
  '{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack-contrib/less-loader#lessoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Less` code to the actual entry file.","link":"https://github.com/webpack-contrib/less-loader#additionalData","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/less-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/less-loader#webpackimporter","anyOf":[{"type":"boolean"},{"type":"string","enum":["only"]}]},"implementation":{"description":"The implementation of the `Less` to be used.","link":"https://github.com/webpack-contrib/less-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"lessLogAsWarnOrErr":{"description":"Less warnings and errors will be webpack warnings or errors.","link":"https://github.com/webpack-contrib/less-loader#lesslogaswarnorerr","type":"boolean"}},"additionalProperties":false}',
318
318
  );
@@ -340,6 +340,6 @@
340
340
  }
341
341
  if (typeof __nccwpck_require__ !== "undefined")
342
342
  __nccwpck_require__.ab = __dirname + "/";
343
- var __webpack_exports__ = __nccwpck_require__(946);
343
+ var __webpack_exports__ = __nccwpck_require__(253);
344
344
  module.exports = __webpack_exports__;
345
345
  })();
@@ -5319,19 +5319,19 @@
5319
5319
  module.exports = createColors();
5320
5320
  module.exports.createColors = createColors;
5321
5321
  },
5322
- 3505: (module, __unused_webpack_exports, __nccwpck_require__) => {
5322
+ 4556: (module, __unused_webpack_exports, __nccwpck_require__) => {
5323
5323
  "use strict";
5324
- module.exports = __nccwpck_require__(4211)["default"];
5324
+ module.exports = __nccwpck_require__(8722)["default"];
5325
5325
  },
5326
- 4211: (__unused_webpack_module, exports, __nccwpck_require__) => {
5326
+ 8722: (__unused_webpack_module, exports, __nccwpck_require__) => {
5327
5327
  "use strict";
5328
5328
  var __webpack_unused_export__;
5329
5329
  __webpack_unused_export__ = { value: true };
5330
5330
  exports["default"] = loader;
5331
5331
  var _nodePath = _interopRequireDefault(__nccwpck_require__(6760));
5332
5332
  var _package = _interopRequireDefault(__nccwpck_require__(444));
5333
- var _options = _interopRequireDefault(__nccwpck_require__(4698));
5334
- var _utils = __nccwpck_require__(8446);
5333
+ var _options = _interopRequireDefault(__nccwpck_require__(111));
5334
+ var _utils = __nccwpck_require__(8659);
5335
5335
  function _interopRequireDefault(e) {
5336
5336
  return e && e.__esModule ? e : { default: e };
5337
5337
  }
@@ -5509,7 +5509,7 @@
5509
5509
  callback(null, result.css, map, { ast });
5510
5510
  }
5511
5511
  },
5512
- 8446: (module, exports, __nccwpck_require__) => {
5512
+ 8659: (module, exports, __nccwpck_require__) => {
5513
5513
  "use strict";
5514
5514
  module = __nccwpck_require__.nmd(module);
5515
5515
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6618,7 +6618,7 @@
6618
6618
  return keywords.has(word);
6619
6619
  }
6620
6620
  },
6621
- 4698: (module) => {
6621
+ 111: (module) => {
6622
6622
  "use strict";
6623
6623
  module.exports = JSON.parse(
6624
6624
  '{"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}',
@@ -6728,6 +6728,6 @@
6728
6728
  })();
6729
6729
  if (typeof __nccwpck_require__ !== "undefined")
6730
6730
  __nccwpck_require__.ab = __dirname + "/";
6731
- var __webpack_exports__ = __nccwpck_require__(3505);
6731
+ var __webpack_exports__ = __nccwpck_require__(4556);
6732
6732
  module.exports = __webpack_exports__;
6733
6733
  })();
@@ -4795,19 +4795,19 @@
4795
4795
  }
4796
4796
  });
4797
4797
  },
4798
- 893: (module, __unused_webpack_exports, __nccwpck_require__) => {
4798
+ 310: (module, __unused_webpack_exports, __nccwpck_require__) => {
4799
4799
  "use strict";
4800
- const loader = __nccwpck_require__(799);
4800
+ const loader = __nccwpck_require__(212);
4801
4801
  module.exports = loader.default;
4802
4802
  },
4803
- 799: (__unused_webpack_module, exports, __nccwpck_require__) => {
4803
+ 212: (__unused_webpack_module, exports, __nccwpck_require__) => {
4804
4804
  "use strict";
4805
4805
  Object.defineProperty(exports, "__esModule", { value: true });
4806
4806
  exports["default"] = void 0;
4807
4807
  var _url = _interopRequireDefault(__nccwpck_require__(16));
4808
4808
  var _path = _interopRequireDefault(__nccwpck_require__(928));
4809
- var _options = _interopRequireDefault(__nccwpck_require__(670));
4810
- var _utils = __nccwpck_require__(570);
4809
+ var _options = _interopRequireDefault(__nccwpck_require__(381));
4810
+ var _utils = __nccwpck_require__(365);
4811
4811
  function _interopRequireDefault(e) {
4812
4812
  return e && e.__esModule ? e : { default: e };
4813
4813
  }
@@ -4917,7 +4917,7 @@
4917
4917
  }
4918
4918
  var _default = (exports["default"] = loader);
4919
4919
  },
4920
- 570: (__unused_webpack_module, exports, __nccwpck_require__) => {
4920
+ 365: (__unused_webpack_module, exports, __nccwpck_require__) => {
4921
4921
  "use strict";
4922
4922
  Object.defineProperty(exports, "__esModule", { value: true });
4923
4923
  exports.errorFactory = errorFactory;
@@ -5582,7 +5582,7 @@
5582
5582
  "use strict";
5583
5583
  module.exports = require("url");
5584
5584
  },
5585
- 670: (module) => {
5585
+ 381: (module) => {
5586
5586
  "use strict";
5587
5587
  module.exports = JSON.parse(
5588
5588
  '{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"api":{"description":"Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}',
@@ -5612,6 +5612,6 @@
5612
5612
  }
5613
5613
  if (typeof __nccwpck_require__ !== "undefined")
5614
5614
  __nccwpck_require__.ab = __dirname + "/";
5615
- var __webpack_exports__ = __nccwpck_require__(893);
5615
+ var __webpack_exports__ = __nccwpck_require__(310);
5616
5616
  module.exports = __webpack_exports__;
5617
5617
  })();
package/dist/index.cjs CHANGED
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  const __rslib_import_meta_url__ = 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
3
3
  var __webpack_modules__ = {
4
+ "compiled/launch-editor": function(module) {
5
+ module.exports = require("../compiled/launch-editor/index.js");
6
+ },
4
7
  "compiled/webpack-merge": function(module) {
5
8
  module.exports = require("../compiled/webpack-merge/index.js");
6
9
  },
@@ -83,6 +86,7 @@ for(var __webpack_i__ in (()=>{
83
86
  isFunction: ()=>isFunction,
84
87
  debounce: ()=>debounce,
85
88
  isDev: ()=>isDev,
89
+ launchEditor: ()=>launchEditor,
86
90
  isNodeVersionAtLeast: ()=>isNodeVersionAtLeast,
87
91
  setNodeEnv: ()=>setNodeEnv,
88
92
  getCompiledPkgPath: ()=>getCompiledPkgPath,
@@ -121,7 +125,7 @@ for(var __webpack_i__ in (()=>{
121
125
  isWin: ()=>isWin,
122
126
  pathExists: ()=>pathExists,
123
127
  isPlainObject: ()=>isPlainObject,
124
- CSS_NAMED_EXPORT: ()=>!1,
128
+ CSS_NAMED_EXPORT: ()=>CSS_NAMED_EXPORT,
125
129
  DEV_DEFAULT_FILENAME: ()=>DEV_DEFAULT_FILENAME,
126
130
  cleanUpBeforeRestart: ()=>cleanUpBeforeRestart,
127
131
  isUndefined: ()=>isUndefined,
@@ -174,7 +178,7 @@ for(var __webpack_i__ in (()=>{
174
178
  jsAsync: 'js/async/[name].[contenthash:8].js',
175
179
  css: 'css/[name].[contenthash:8].css',
176
180
  cssAsync: 'css/async/[name].[contenthash:8].css'
177
- }, EXPORT_LOCALS_CONVENTION = 'camel-case-only', TEMP_DIR = 'node_modules/.unpack', NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, THREAD_OPTIONS = {
181
+ }, EXPORT_LOCALS_CONVENTION = 'camel-case-only', TEMP_DIR = 'node_modules/.unpack', NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, CSS_NAMED_EXPORT = !1, THREAD_OPTIONS = {
178
182
  workers: 2
179
183
  }, DEFAULT_DEV_HOST = '0.0.0.0', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
180
184
  <html lang="en">
@@ -192,7 +196,7 @@ for(var __webpack_i__ in (()=>{
192
196
  <div id="${mountId}"></div>
193
197
  </body>
194
198
 
195
- </html>`, { merge } = __webpack_require__("compiled/webpack-merge"), getNodeEnv = ()=>process.env.NODE_ENV, setNodeEnv = (env)=>{
199
+ </html>`, { merge } = __webpack_require__("compiled/webpack-merge"), launchEditor = __webpack_require__("compiled/launch-editor"), getNodeEnv = ()=>process.env.NODE_ENV, setNodeEnv = (env)=>{
196
200
  process.env.NODE_ENV = env;
197
201
  }, setDevServer = (isDevServer)=>{
198
202
  process.env.DEV_SERVER = isDevServer ? 'true' : 'false';
@@ -742,7 +746,7 @@ for(var __webpack_i__ in (()=>{
742
746
  constructor(options){
743
747
  _define_property(this, "dtsCreator", void 0), _define_property(this, "useIncremental", !1), _define_property(this, "globPattern", 'src/**/*.{css,less,scss}'), _define_property(this, "userOptions", void 0), this.userOptions = options, this.dtsCreator = new DtsCreator({
744
748
  camelCase: !0,
745
- namedExports: !1
749
+ namedExports: CSS_NAMED_EXPORT
746
750
  });
747
751
  }
748
752
  }
@@ -759,7 +763,7 @@ for(var __webpack_i__ in (()=>{
759
763
  apply(compiler) {
760
764
  let meta = JSON.stringify({
761
765
  name: jsMinify_PLUGIN_NAME,
762
- version: "3.3.2",
766
+ version: "3.3.3",
763
767
  options: this.minifyOptions
764
768
  });
765
769
  compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
@@ -1362,7 +1366,7 @@ for(var __webpack_i__ in (()=>{
1362
1366
  'parser',
1363
1367
  'css/module'
1364
1368
  ], {
1365
- namedExports: !1
1369
+ namedExports: CSS_NAMED_EXPORT
1366
1370
  }), setValueByPath(config, [
1367
1371
  'module',
1368
1372
  'generator',
@@ -1515,7 +1519,7 @@ for(var __webpack_i__ in (()=>{
1515
1519
  })(),
1516
1520
  localIdentName: !1 !== modules && (modules.localIdentName || CSS_MODULES_LOCAL_IDENT_NAME),
1517
1521
  exportLocalsConvention: EXPORT_LOCALS_CONVENTION,
1518
- namedExport: !1
1522
+ namedExport: CSS_NAMED_EXPORT
1519
1523
  },
1520
1524
  sourceMap
1521
1525
  }
@@ -1959,7 +1963,7 @@ for(var __webpack_i__ in (()=>{
1959
1963
  (null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
1960
1964
  }), middlewares.unshift(core_namespaceObject.experiments.lazyCompilationMiddleware(compiler)), middlewares);
1961
1965
  let server = new dev_server_namespaceObject.RspackDevServer(devServerOptions, compiler);
1962
- await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.3.2`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ms\n`), printAddressUrls(port, null == (_unpackConfig_server2 = unpackConfig.server) ? void 0 : _unpackConfig_server2.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
1966
+ await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.3.3`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ms\n`), printAddressUrls(port, null == (_unpackConfig_server2 = unpackConfig.server) ? void 0 : _unpackConfig_server2.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
1963
1967
  let open = null == (_unpackConfig_server3 = unpackConfig.server) ? void 0 : _unpackConfig_server3.open, url = isString(open) ? open : `http://localhost:${port}`;
1964
1968
  open && openBrowser(url), setupCliShortcuts({
1965
1969
  openPage: async ()=>{
@@ -2033,7 +2037,7 @@ for(var __webpack_i__ in (()=>{
2033
2037
  ...mergeConfig(defaultConfig, config),
2034
2038
  _context: {
2035
2039
  callerName,
2036
- version: "3.3.2"
2040
+ version: "3.3.3"
2037
2041
  }
2038
2042
  };
2039
2043
  };
@@ -2041,7 +2045,7 @@ for(var __webpack_i__ in (()=>{
2041
2045
  build: async ({ watch } = {})=>{
2042
2046
  setNodeEnv(watch ? 'development' : 'production');
2043
2047
  let config = resolveConfig();
2044
- console.log(colors.rainbow(`${callerName} v3.3.2`), colors.green(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
2048
+ console.log(colors.rainbow(`${callerName} v3.3.3`), colors.green(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
2045
2049
  },
2046
2050
  dev: async ()=>{
2047
2051
  global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
@@ -2068,7 +2072,7 @@ for(var __webpack_i__ in (()=>{
2068
2072
  ...options
2069
2073
  });
2070
2074
  }
2071
- })(), exports.CSS_MODULES_LOCAL_IDENT_NAME = __webpack_exports__.CSS_MODULES_LOCAL_IDENT_NAME, exports.CSS_MODULES_REGEX = __webpack_exports__.CSS_MODULES_REGEX, exports.CSS_NAMED_EXPORT = __webpack_exports__.CSS_NAMED_EXPORT, exports.DEFAULT_DEV_HOST = __webpack_exports__.DEFAULT_DEV_HOST, exports.DEV_DEFAULT_FILENAME = __webpack_exports__.DEV_DEFAULT_FILENAME, exports.EXPORT_LOCALS_CONVENTION = __webpack_exports__.EXPORT_LOCALS_CONVENTION, exports.LogColor = __webpack_exports__.LogColor, exports.NODE_MODULES_REGEX = __webpack_exports__.NODE_MODULES_REGEX, exports.PROD_DEFAULT_FILENAME = __webpack_exports__.PROD_DEFAULT_FILENAME, exports.TEMPLATE_CONTENT = __webpack_exports__.TEMPLATE_CONTENT, exports.TEMP_DIR = __webpack_exports__.TEMP_DIR, exports.THREAD_OPTIONS = __webpack_exports__.THREAD_OPTIONS, exports.addRestartCleaner = __webpack_exports__.addRestartCleaner, exports.cleanUpBeforeRestart = __webpack_exports__.cleanUpBeforeRestart, exports.clearLine = __webpack_exports__.clearLine, exports.colors = __webpack_exports__.colors, exports.createChokidar = __webpack_exports__.createChokidar, exports.createUnpack = __webpack_exports__.createUnpack, exports.currentDevUnpackConfig = __webpack_exports__.currentDevUnpackConfig, exports.debounce = __webpack_exports__.debounce, exports.defineConfig = __webpack_exports__.defineConfig, exports.esVersionToBrowserslist = __webpack_exports__.esVersionToBrowserslist, exports.findExists = __webpack_exports__.findExists, exports.getAddressUrls = __webpack_exports__.getAddressUrls, exports.getCompiledPkgPath = __webpack_exports__.getCompiledPkgPath, exports.getIpv4Interfaces = __webpack_exports__.getIpv4Interfaces, exports.getNodeEnv = __webpack_exports__.getNodeEnv, exports.getPathInJs = __webpack_exports__.getPathInJs, exports.getPort = __webpack_exports__.getPort, exports.getTime = __webpack_exports__.getTime, exports.getUserDepPath = __webpack_exports__.getUserDepPath, exports.getUserDepVersion = __webpack_exports__.getUserDepVersion, exports.getValueByPath = __webpack_exports__.getValueByPath, exports.isBoolean = __webpack_exports__.isBoolean, exports.isCI = __webpack_exports__.isCI, exports.isCSSModules = __webpack_exports__.isCSSModules, exports.isDebug = __webpack_exports__.isDebug, exports.isDev = __webpack_exports__.isDev, exports.isDevServer = __webpack_exports__.isDevServer, exports.isEmptyDir = __webpack_exports__.isEmptyDir, exports.isFileExists = __webpack_exports__.isFileExists, exports.isFileSync = __webpack_exports__.isFileSync, exports.isFunction = __webpack_exports__.isFunction, exports.isNodeVersionAtLeast = __webpack_exports__.isNodeVersionAtLeast, exports.isObject = __webpack_exports__.isObject, exports.isPlainObject = __webpack_exports__.isPlainObject, exports.isProd = __webpack_exports__.isProd, exports.isRegExp = __webpack_exports__.isRegExp, exports.isString = __webpack_exports__.isString, exports.isUndefined = __webpack_exports__.isUndefined, exports.isWatch = __webpack_exports__.isWatch, exports.isWin = __webpack_exports__.isWin, exports.loadConfig = __webpack_exports__.loadConfig, exports.logUpdate = __webpack_exports__.logUpdate, exports.logger = __webpack_exports__.logger, exports.mergeConfig = __webpack_exports__.mergeConfig, exports.pathExists = __webpack_exports__.pathExists, exports.prettyTime = __webpack_exports__.prettyTime, exports.removeDir = __webpack_exports__.removeDir, exports.resolveConfigPath = __webpack_exports__.resolveConfigPath, exports.rspack = __webpack_exports__.rspack, exports.setCurrentDevUnpackConfig = __webpack_exports__.setCurrentDevUnpackConfig, exports.setDevServer = __webpack_exports__.setDevServer, exports.setNodeEnv = __webpack_exports__.setNodeEnv, exports.setValueByPath = __webpack_exports__.setValueByPath, exports.setupCliShortcuts = __webpack_exports__.setupCliShortcuts, exports.trackPerformance = __webpack_exports__.trackPerformance, __webpack_exports__)-1 === [
2075
+ })(), exports.CSS_MODULES_LOCAL_IDENT_NAME = __webpack_exports__.CSS_MODULES_LOCAL_IDENT_NAME, exports.CSS_MODULES_REGEX = __webpack_exports__.CSS_MODULES_REGEX, exports.CSS_NAMED_EXPORT = __webpack_exports__.CSS_NAMED_EXPORT, exports.DEFAULT_DEV_HOST = __webpack_exports__.DEFAULT_DEV_HOST, exports.DEV_DEFAULT_FILENAME = __webpack_exports__.DEV_DEFAULT_FILENAME, exports.EXPORT_LOCALS_CONVENTION = __webpack_exports__.EXPORT_LOCALS_CONVENTION, exports.LogColor = __webpack_exports__.LogColor, exports.NODE_MODULES_REGEX = __webpack_exports__.NODE_MODULES_REGEX, exports.PROD_DEFAULT_FILENAME = __webpack_exports__.PROD_DEFAULT_FILENAME, exports.TEMPLATE_CONTENT = __webpack_exports__.TEMPLATE_CONTENT, exports.TEMP_DIR = __webpack_exports__.TEMP_DIR, exports.THREAD_OPTIONS = __webpack_exports__.THREAD_OPTIONS, exports.addRestartCleaner = __webpack_exports__.addRestartCleaner, exports.cleanUpBeforeRestart = __webpack_exports__.cleanUpBeforeRestart, exports.clearLine = __webpack_exports__.clearLine, exports.colors = __webpack_exports__.colors, exports.createChokidar = __webpack_exports__.createChokidar, exports.createUnpack = __webpack_exports__.createUnpack, exports.currentDevUnpackConfig = __webpack_exports__.currentDevUnpackConfig, exports.debounce = __webpack_exports__.debounce, exports.defineConfig = __webpack_exports__.defineConfig, exports.esVersionToBrowserslist = __webpack_exports__.esVersionToBrowserslist, exports.findExists = __webpack_exports__.findExists, exports.getAddressUrls = __webpack_exports__.getAddressUrls, exports.getCompiledPkgPath = __webpack_exports__.getCompiledPkgPath, exports.getIpv4Interfaces = __webpack_exports__.getIpv4Interfaces, exports.getNodeEnv = __webpack_exports__.getNodeEnv, exports.getPathInJs = __webpack_exports__.getPathInJs, exports.getPort = __webpack_exports__.getPort, exports.getTime = __webpack_exports__.getTime, exports.getUserDepPath = __webpack_exports__.getUserDepPath, exports.getUserDepVersion = __webpack_exports__.getUserDepVersion, exports.getValueByPath = __webpack_exports__.getValueByPath, exports.isBoolean = __webpack_exports__.isBoolean, exports.isCI = __webpack_exports__.isCI, exports.isCSSModules = __webpack_exports__.isCSSModules, exports.isDebug = __webpack_exports__.isDebug, exports.isDev = __webpack_exports__.isDev, exports.isDevServer = __webpack_exports__.isDevServer, exports.isEmptyDir = __webpack_exports__.isEmptyDir, exports.isFileExists = __webpack_exports__.isFileExists, exports.isFileSync = __webpack_exports__.isFileSync, exports.isFunction = __webpack_exports__.isFunction, exports.isNodeVersionAtLeast = __webpack_exports__.isNodeVersionAtLeast, exports.isObject = __webpack_exports__.isObject, exports.isPlainObject = __webpack_exports__.isPlainObject, exports.isProd = __webpack_exports__.isProd, exports.isRegExp = __webpack_exports__.isRegExp, exports.isString = __webpack_exports__.isString, exports.isUndefined = __webpack_exports__.isUndefined, exports.isWatch = __webpack_exports__.isWatch, exports.isWin = __webpack_exports__.isWin, exports.launchEditor = __webpack_exports__.launchEditor, exports.loadConfig = __webpack_exports__.loadConfig, exports.logUpdate = __webpack_exports__.logUpdate, exports.logger = __webpack_exports__.logger, exports.mergeConfig = __webpack_exports__.mergeConfig, exports.pathExists = __webpack_exports__.pathExists, exports.prettyTime = __webpack_exports__.prettyTime, exports.removeDir = __webpack_exports__.removeDir, exports.resolveConfigPath = __webpack_exports__.resolveConfigPath, exports.rspack = __webpack_exports__.rspack, exports.setCurrentDevUnpackConfig = __webpack_exports__.setCurrentDevUnpackConfig, exports.setDevServer = __webpack_exports__.setDevServer, exports.setNodeEnv = __webpack_exports__.setNodeEnv, exports.setValueByPath = __webpack_exports__.setValueByPath, exports.setupCliShortcuts = __webpack_exports__.setupCliShortcuts, exports.trackPerformance = __webpack_exports__.trackPerformance, __webpack_exports__)-1 === [
2072
2076
  "CSS_MODULES_LOCAL_IDENT_NAME",
2073
2077
  "CSS_MODULES_REGEX",
2074
2078
  "CSS_NAMED_EXPORT",
@@ -2121,6 +2125,7 @@ for(var __webpack_i__ in (()=>{
2121
2125
  "isUndefined",
2122
2126
  "isWatch",
2123
2127
  "isWin",
2128
+ "launchEditor",
2124
2129
  "loadConfig",
2125
2130
  "logUpdate",
2126
2131
  "logger",
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import __rslib_shim_module__ from 'module';
3
3
  let require = __rslib_shim_module__.createRequire(import.meta.url);
4
4
  import { fileURLToPath as __webpack_fileURLToPath__ } from "node:url";
5
5
  import { dirname as __webpack_dirname__ } from "node:path";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__compiled_launch_editor_index_js_29002383__ from "../compiled/launch-editor/index.js";
6
7
  import * as __WEBPACK_EXTERNAL_MODULE__compiled_webpack_merge_index_js_efd91626__ from "../compiled/webpack-merge/index.js";
7
8
  import { experiments, rspack } from "@rspack/core";
8
9
  import picocolors from "picocolors";
@@ -23,10 +24,21 @@ import node_zlib from "node:zlib";
23
24
  import { RspackDevServer } from "@rspack/dev-server";
24
25
  import chokidar from "chokidar";
25
26
  var LogColor, __webpack_modules__ = {
27
+ "compiled/launch-editor": function(module) {
28
+ module.exports = __WEBPACK_EXTERNAL_MODULE__compiled_launch_editor_index_js_29002383__;
29
+ },
26
30
  "compiled/webpack-merge": function(module) {
27
31
  module.exports = __WEBPACK_EXTERNAL_MODULE__compiled_webpack_merge_index_js_efd91626__;
28
32
  }
29
33
  }, __webpack_module_cache__ = {};
34
+ function __webpack_require__(moduleId) {
35
+ var cachedModule = __webpack_module_cache__[moduleId];
36
+ if (void 0 !== cachedModule) return cachedModule.exports;
37
+ var module = __webpack_module_cache__[moduleId] = {
38
+ exports: {}
39
+ };
40
+ return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
41
+ }
30
42
  let colors = {
31
43
  ...picocolors,
32
44
  rainbow: (input)=>{
@@ -54,7 +66,7 @@ let CSS_MODULES_LOCAL_IDENT_NAME = '[path][name]__[local]--[hash:5]', CSS_MODULE
54
66
  jsAsync: 'js/async/[name].[contenthash:8].js',
55
67
  css: 'css/[name].[contenthash:8].css',
56
68
  cssAsync: 'css/async/[name].[contenthash:8].css'
57
- }, EXPORT_LOCALS_CONVENTION = 'camel-case-only', TEMP_DIR = 'node_modules/.unpack', NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, THREAD_OPTIONS = {
69
+ }, EXPORT_LOCALS_CONVENTION = 'camel-case-only', TEMP_DIR = 'node_modules/.unpack', NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, CSS_NAMED_EXPORT = !1, THREAD_OPTIONS = {
58
70
  workers: 2
59
71
  }, DEFAULT_DEV_HOST = '0.0.0.0', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
60
72
  <html lang="en">
@@ -74,14 +86,7 @@ let CSS_MODULES_LOCAL_IDENT_NAME = '[path][name]__[local]--[hash:5]', CSS_MODULE
74
86
 
75
87
  </html>`;
76
88
  var utils_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
77
- let { merge } = function __webpack_require__(moduleId) {
78
- var cachedModule = __webpack_module_cache__[moduleId];
79
- if (void 0 !== cachedModule) return cachedModule.exports;
80
- var module = __webpack_module_cache__[moduleId] = {
81
- exports: {}
82
- };
83
- return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
84
- }("compiled/webpack-merge"), getNodeEnv = ()=>process.env.NODE_ENV, setNodeEnv = (env)=>{
89
+ let { merge } = __webpack_require__("compiled/webpack-merge"), launchEditor = __webpack_require__("compiled/launch-editor"), getNodeEnv = ()=>process.env.NODE_ENV, setNodeEnv = (env)=>{
85
90
  process.env.NODE_ENV = env;
86
91
  }, setDevServer = (isDevServer)=>{
87
92
  process.env.DEV_SERVER = isDevServer ? 'true' : 'false';
@@ -626,7 +631,7 @@ class TypedCssModulesPlugin {
626
631
  constructor(options){
627
632
  _define_property(this, "dtsCreator", void 0), _define_property(this, "useIncremental", !1), _define_property(this, "globPattern", 'src/**/*.{css,less,scss}'), _define_property(this, "userOptions", void 0), this.userOptions = options, this.dtsCreator = new DtsCreator({
628
633
  camelCase: !0,
629
- namedExports: !1
634
+ namedExports: CSS_NAMED_EXPORT
630
635
  });
631
636
  }
632
637
  }
@@ -643,7 +648,7 @@ class JsMinifyPlugin {
643
648
  apply(compiler) {
644
649
  let meta = JSON.stringify({
645
650
  name: jsMinify_PLUGIN_NAME,
646
- version: "3.3.2",
651
+ version: "3.3.3",
647
652
  options: this.minifyOptions
648
653
  });
649
654
  compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
@@ -1241,7 +1246,7 @@ async function getBundlerConfig(originalUnpackConfig) {
1241
1246
  'parser',
1242
1247
  'css/module'
1243
1248
  ], {
1244
- namedExports: !1
1249
+ namedExports: CSS_NAMED_EXPORT
1245
1250
  }), setValueByPath(config, [
1246
1251
  'module',
1247
1252
  'generator',
@@ -1394,7 +1399,7 @@ async function getBundlerConfig(originalUnpackConfig) {
1394
1399
  })(),
1395
1400
  localIdentName: !1 !== modules && (modules.localIdentName || CSS_MODULES_LOCAL_IDENT_NAME),
1396
1401
  exportLocalsConvention: EXPORT_LOCALS_CONVENTION,
1397
- namedExport: !1
1402
+ namedExport: CSS_NAMED_EXPORT
1398
1403
  },
1399
1404
  sourceMap
1400
1405
  }
@@ -1837,7 +1842,7 @@ async function unpackDev(originalUnpackConfig) {
1837
1842
  (null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
1838
1843
  }), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
1839
1844
  let server = new RspackDevServer(devServerOptions, compiler);
1840
- await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.3.2`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ms\n`), printAddressUrls(port, null == (_unpackConfig_server2 = unpackConfig.server) ? void 0 : _unpackConfig_server2.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
1845
+ await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.3.3`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ms\n`), printAddressUrls(port, null == (_unpackConfig_server2 = unpackConfig.server) ? void 0 : _unpackConfig_server2.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
1841
1846
  let open = null == (_unpackConfig_server3 = unpackConfig.server) ? void 0 : _unpackConfig_server3.open, url = isString(open) ? open : `http://localhost:${port}`;
1842
1847
  open && openBrowser(url), setupCliShortcuts({
1843
1848
  openPage: async ()=>{
@@ -1911,7 +1916,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
1911
1916
  ...mergeConfig(defaultConfig, config),
1912
1917
  _context: {
1913
1918
  callerName,
1914
- version: "3.3.2"
1919
+ version: "3.3.3"
1915
1920
  }
1916
1921
  };
1917
1922
  };
@@ -1919,7 +1924,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
1919
1924
  build: async ({ watch } = {})=>{
1920
1925
  setNodeEnv(watch ? 'development' : 'production');
1921
1926
  let config = resolveConfig();
1922
- console.log(colors.rainbow(`${callerName} v3.3.2`), colors.green(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
1927
+ console.log(colors.rainbow(`${callerName} v3.3.3`), colors.green(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
1923
1928
  },
1924
1929
  dev: async ()=>{
1925
1930
  global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
@@ -1941,5 +1946,4 @@ async function createChokidar(pathOrGlobs, root = process.cwd(), options) {
1941
1946
  ...options
1942
1947
  });
1943
1948
  }
1944
- var __webpack_exports__CSS_NAMED_EXPORT = !1;
1945
- export { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, DEFAULT_DEV_HOST, DEV_DEFAULT_FILENAME, EXPORT_LOCALS_CONVENTION, logger_LogColor as LogColor, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, TEMPLATE_CONTENT, TEMP_DIR, THREAD_OPTIONS, addRestartCleaner, cleanUpBeforeRestart, clearLine, colors, createChokidar, createUnpack, currentDevUnpackConfig, debounce, defineConfig, esVersionToBrowserslist, findExists, getAddressUrls, getCompiledPkgPath, getIpv4Interfaces, getNodeEnv, getPathInJs, getPort, getTime, getUserDepPath, getUserDepVersion, getValueByPath, isBoolean, isCI, isCSSModules, isDebug, isDev, utils_isDevServer as isDevServer, isEmptyDir, isFileExists, isFileSync, isFunction, isNodeVersionAtLeast, isObject, isPlainObject, isProd, isRegExp, isString, isUndefined, isWatch, isWin, loadConfig, logUpdate, logger_logger as logger, mergeConfig, pathExists, prettyTime, removeDir, resolveConfigPath, rspack, setCurrentDevUnpackConfig, setDevServer, setNodeEnv, setValueByPath, setupCliShortcuts, trackPerformance, __webpack_exports__CSS_NAMED_EXPORT as CSS_NAMED_EXPORT };
1949
+ export { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, CSS_NAMED_EXPORT, DEFAULT_DEV_HOST, DEV_DEFAULT_FILENAME, EXPORT_LOCALS_CONVENTION, logger_LogColor as LogColor, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, TEMPLATE_CONTENT, TEMP_DIR, THREAD_OPTIONS, addRestartCleaner, cleanUpBeforeRestart, clearLine, colors, createChokidar, createUnpack, currentDevUnpackConfig, debounce, defineConfig, esVersionToBrowserslist, findExists, getAddressUrls, getCompiledPkgPath, getIpv4Interfaces, getNodeEnv, getPathInJs, getPort, getTime, getUserDepPath, getUserDepVersion, getValueByPath, isBoolean, isCI, isCSSModules, isDebug, isDev, utils_isDevServer as isDevServer, isEmptyDir, isFileExists, isFileSync, isFunction, isNodeVersionAtLeast, isObject, isPlainObject, isProd, isRegExp, isString, isUndefined, isWatch, isWin, launchEditor, loadConfig, logUpdate, logger_logger as logger, mergeConfig, pathExists, prettyTime, removeDir, resolveConfigPath, rspack, setCurrentDevUnpackConfig, setDevServer, setNodeEnv, setValueByPath, setupCliShortcuts, trackPerformance };
@@ -1,3 +1,4 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE__compiled_launch_editor_index_js_29002383__ from "../compiled/launch-editor/index.js";
1
2
  import * as __WEBPACK_EXTERNAL_MODULE__compiled_webpack_merge_index_js_efd91626__ from "../compiled/webpack-merge/index.js";
2
3
  import node_fs from "node:fs";
3
4
  import node_path from "node:path";
@@ -6,10 +7,21 @@ import "node:os";
6
7
  import "portfinder";
7
8
  import picocolors from "picocolors";
8
9
  var __webpack_modules__ = {
10
+ "compiled/launch-editor": function(module) {
11
+ module.exports = __WEBPACK_EXTERNAL_MODULE__compiled_launch_editor_index_js_29002383__;
12
+ },
9
13
  "compiled/webpack-merge": function(module) {
10
14
  module.exports = __WEBPACK_EXTERNAL_MODULE__compiled_webpack_merge_index_js_efd91626__;
11
15
  }
12
16
  }, __webpack_module_cache__ = {};
17
+ function __webpack_require__(moduleId) {
18
+ var cachedModule = __webpack_module_cache__[moduleId];
19
+ if (void 0 !== cachedModule) return cachedModule.exports;
20
+ var module = __webpack_module_cache__[moduleId] = {
21
+ exports: {}
22
+ };
23
+ return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
24
+ }
13
25
  let CSS_MODULES_REGEX = /\.module\.\w+$/i, NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/;
14
26
  ({
15
27
  ...picocolors,
@@ -21,14 +33,9 @@ let CSS_MODULES_REGEX = /\.module\.\w+$/i, NODE_MODULES_REGEX = /[\\/]node_modul
21
33
  return output;
22
34
  }
23
35
  });
24
- let { merge } = function __webpack_require__(moduleId) {
25
- var cachedModule = __webpack_module_cache__[moduleId];
26
- if (void 0 !== cachedModule) return cachedModule.exports;
27
- var module = __webpack_module_cache__[moduleId] = {
28
- exports: {}
29
- };
30
- return __webpack_modules__[moduleId](module, module.exports, __webpack_require__), module.exports;
31
- }("compiled/webpack-merge"), enforceLFLineSeparators = (text)=>text ? text.replace(/\r\n/g, '\n') : text;
36
+ let { merge } = __webpack_require__("compiled/webpack-merge");
37
+ __webpack_require__("compiled/launch-editor");
38
+ let enforceLFLineSeparators = (text)=>text ? text.replace(/\r\n/g, '\n') : text;
32
39
  function typedCssModulesLoader(content, ...rest) {
33
40
  var keys;
34
41
  let interfaceFields, bannerMessage, callback, dirName, baseName, filename, { failed, success } = (callback = this.async(), {
@@ -1,5 +1,6 @@
1
1
  import os from 'node:os';
2
2
  import type { CompiledPkgName, NodeEnv, Target, UnpackConfig } from './types';
3
+ export declare const launchEditor: any;
3
4
  export declare const getNodeEnv: () => NodeEnv;
4
5
  export declare const setNodeEnv: (env: NodeEnv) => void;
5
6
  export declare const setDevServer: (isDevServer: boolean) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,SAAS,CAAA;AAKxB,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI7E,eAAO,MAAM,UAAU,QAAiC,OAAO,CAAA;AAE/D,eAAO,MAAM,UAAU,GAAI,KAAK,OAAO,SAEtC,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,aAAa,OAAO,SAEhD,CAAA;AAED,eAAO,MAAM,KAAK,QAAO,OAAyC,CAAA;AAElE,eAAO,MAAM,WAAW,QAAO,OAA4C,CAAA;AAE3E,eAAO,MAAM,OAAO,QAAO,OAAoC,CAAA;AAE/D,eAAO,MAAM,MAAM,QAAO,OAAwC,CAAA;AAElE,eAAO,MAAM,KAAK,QAAO,OAAuC,CAAA;AAEhE,eAAO,MAAM,QAAQ,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,MAAiC,CAAA;AAEhF,eAAO,MAAM,SAAS,GAAI,MAAM,OAAO,KAAG,IAAI,IAAI,OAAoC,CAAA;AAEtF,eAAO,MAAM,WAAW,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,SAAuC,CAAA;AAEzF,eAAO,MAAM,UAAU,GAAI,MAAM,OAAO,KAAG,IAAI,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAC3C,CAAA;AAE5B,eAAO,MAAM,QAAQ,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CACxB,CAAA;AAEzC,eAAO,MAAM,aAAa,GAAI,KAAK,OAAO,KAAG,GAAG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unpackjs/core",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "An Rspack-based build tool",
5
5
  "type": "module",
6
6
  "exports": {
@@ -31,15 +31,16 @@
31
31
  "css-loader": "7.1.2",
32
32
  "less-loader": "12.3.0",
33
33
  "postcss-loader": "8.2.0",
34
- "sass-embedded": "1.93.1",
34
+ "sass-embedded": "1.93.2",
35
35
  "sass-loader": "16.0.5",
36
36
  "semver": "7.7.2",
37
37
  "style-loader": "4.0.0",
38
38
  "webpack-bundle-analyzer": "4.10.2",
39
- "webpack-merge": "6.0.1"
39
+ "webpack-merge": "6.0.1",
40
+ "launch-editor": "2.11.1"
40
41
  },
41
42
  "dependencies": {
42
- "@rspack/core": "1.5.6",
43
+ "@rspack/core": "1.5.7",
43
44
  "@rspack/dev-server": "1.1.4",
44
45
  "@types/less": "3.0.8",
45
46
  "chokidar": "4.0.3",
@@ -47,7 +48,7 @@
47
48
  "dotenv-expand": "12.0.3",
48
49
  "express": "5.1.0",
49
50
  "jiti": "2.6.0",
50
- "oxc-minify": "0.91.0",
51
+ "oxc-minify": "0.92.0",
51
52
  "picocolors": "1.1.1",
52
53
  "portfinder": "1.0.38",
53
54
  "postcss": "8.5.6",