@unpackjs/core 2.3.4 → 2.3.5

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.
@@ -55,7 +55,7 @@ class JsMinifyPlugin {
55
55
  apply(compiler) {
56
56
  const meta = JSON.stringify({
57
57
  name: PLUGIN_NAME,
58
- version: "2.3.4",
58
+ version: "2.3.5",
59
59
  options: this.minifyOptions
60
60
  });
61
61
  compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
@@ -19,7 +19,7 @@ class JsMinifyPlugin {
19
19
  apply(compiler) {
20
20
  const meta = JSON.stringify({
21
21
  name: PLUGIN_NAME,
22
- version: "2.3.4",
22
+ version: "2.3.5",
23
23
  options: this.minifyOptions
24
24
  });
25
25
  compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
@@ -68,7 +68,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
68
68
  };
69
69
  const _context = {
70
70
  callerName,
71
- version: "2.3.4"
71
+ version: "2.3.5"
72
72
  };
73
73
  let { plugins, bundlerConfig, ...rest } = (0, external_utils_cjs_namespaceObject.mergeConfig)(defaultConfig, config);
74
74
  for (const plugin of (0, external_plugin_cjs_namespaceObject.getNormalizedPluginsByHook)('config', plugins))rest = await plugin.config(rest, {
@@ -85,7 +85,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
85
85
  return {
86
86
  build: async ({ watch } = {})=>{
87
87
  (0, external_utils_cjs_namespaceObject.setNodeEnv)(watch ? 'development' : 'production');
88
- console.log(external_colors_cjs_namespaceObject.colors.rainbow(`${callerName} v2.3.4`), external_colors_cjs_namespaceObject.colors.green(`building for ${watch ? 'development' : 'production'}...`));
88
+ console.log(external_colors_cjs_namespaceObject.colors.rainbow(`${callerName} v2.3.5`), external_colors_cjs_namespaceObject.colors.green(`building for ${watch ? 'development' : 'production'}...`));
89
89
  const config = await resolveConfig();
90
90
  (0, index_cjs_namespaceObject.unpackBuild)(config);
91
91
  },
@@ -42,7 +42,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
42
42
  };
43
43
  const _context = {
44
44
  callerName,
45
- version: "2.3.4"
45
+ version: "2.3.5"
46
46
  };
47
47
  let { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
48
48
  for (const plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
@@ -59,7 +59,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
59
59
  return {
60
60
  build: async ({ watch } = {})=>{
61
61
  setNodeEnv(watch ? 'development' : 'production');
62
- console.log(colors.rainbow(`${callerName} v2.3.4`), colors.green(`building for ${watch ? 'development' : 'production'}...`));
62
+ console.log(colors.rainbow(`${callerName} v2.3.5`), colors.green(`building for ${watch ? 'development' : 'production'}...`));
63
63
  const config = await resolveConfig();
64
64
  unpackBuild(config);
65
65
  },
package/dist/index.cjs CHANGED
@@ -21,7 +21,7 @@ var __webpack_modules__ = {
21
21
  "./logger": function(module) {
22
22
  module.exports = require("./logger.cjs");
23
23
  },
24
- "src/types/index": function(module) {
24
+ "./types/index": function(module) {
25
25
  module.exports = require("./types/index.cjs");
26
26
  },
27
27
  "./utils": function(module) {
@@ -170,7 +170,7 @@ var __webpack_exports__ = {};
170
170
  return _logger__WEBPACK_IMPORTED_MODULE_9__[key];
171
171
  }).bind(0, __WEBPACK_IMPORT_KEY__);
172
172
  __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
173
- var _types_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("src/types/index");
173
+ var _types_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("./types/index");
174
174
  var __WEBPACK_REEXPORT_OBJECT__ = {};
175
175
  for(var __WEBPACK_IMPORT_KEY__ in _types_index__WEBPACK_IMPORTED_MODULE_10__)if ([
176
176
  "webpack",
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
- import { rspack } from "@rspack/core";
4
- import html_webpack_plugin from "html-webpack-plugin";
5
- import webpack from "webpack";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__types_index_js_63ede62f__ from "./types/index.js";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__ from "@rspack/core";
5
+ import * as __WEBPACK_EXTERNAL_MODULE_html_webpack_plugin_e07f62c9__ from "html-webpack-plugin";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_webpack__ from "webpack";
6
7
  export * from "./colors.js";
7
8
  export * from "./config.js";
8
9
  export * from "./constants.js";
@@ -10,7 +11,37 @@ export * from "./createUnpack.js";
10
11
  export * from "./fs.js";
11
12
  export * from "./global.js";
12
13
  export * from "./logger.js";
13
- export * from "./types/index.js";
14
14
  export * from "./utils.js";
15
15
  export * from "./watchFiles.js";
16
- export { html_webpack_plugin as HtmlWebpackPlugin, rspack, webpack };
16
+ var __webpack_modules__ = {
17
+ "src/types/index": function(module) {
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__types_index_js_63ede62f__;
19
+ },
20
+ "@rspack/core": function(module) {
21
+ module.exports = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__;
22
+ },
23
+ "html-webpack-plugin": function(module) {
24
+ module.exports = __WEBPACK_EXTERNAL_MODULE_html_webpack_plugin_e07f62c9__;
25
+ },
26
+ webpack: function(module) {
27
+ module.exports = __WEBPACK_EXTERNAL_MODULE_webpack__;
28
+ }
29
+ };
30
+ var __webpack_module_cache__ = {};
31
+ function __webpack_require__(moduleId) {
32
+ var cachedModule = __webpack_module_cache__[moduleId];
33
+ if (void 0 !== cachedModule) return cachedModule.exports;
34
+ var module = __webpack_module_cache__[moduleId] = {
35
+ exports: {}
36
+ };
37
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
38
+ return module.exports;
39
+ }
40
+ var core_ = __webpack_require__("@rspack/core");
41
+ var external_html_webpack_plugin_ = __webpack_require__("html-webpack-plugin");
42
+ var external_webpack_ = __webpack_require__("webpack");
43
+ __webpack_require__("src/types/index");
44
+ var __webpack_exports__HtmlWebpackPlugin = external_html_webpack_plugin_["default"];
45
+ var __webpack_exports__rspack = core_.rspack;
46
+ var __webpack_exports__webpack = external_webpack_["default"];
47
+ export { __webpack_exports__HtmlWebpackPlugin as HtmlWebpackPlugin, __webpack_exports__rspack as rspack, __webpack_exports__webpack as webpack };
@@ -70,7 +70,6 @@ const getExternalLibraryName = (pkgName)=>{
70
70
  const externalAlias = {
71
71
  react: 'React',
72
72
  'react-dom': 'ReactDOM',
73
- 'react-router': 'ReactRouter',
74
73
  'react-router-dom': 'ReactRouterDOM'
75
74
  };
76
75
  return externalAlias[pkgName] || pkgName;
@@ -228,7 +227,6 @@ const prebundleDeps = async ({ unpackConfig })=>{
228
227
  externals: {
229
228
  react: getExternalValue('react'),
230
229
  'react-dom': getExternalValue('react-dom'),
231
- 'react-router': getExternalValue('react-router'),
232
230
  'react-router-dom': getExternalValue('react-router-dom')
233
231
  }
234
232
  });
@@ -294,7 +292,6 @@ const prebundleDeps = async ({ unpackConfig })=>{
294
292
  const preDeps = [
295
293
  'react',
296
294
  'react-dom',
297
- 'react-router',
298
295
  'react-router-dom'
299
296
  ];
300
297
  const serverPath = `//localhost:${port}/${CACHE_DIR}/${relativePath}`;
@@ -1 +1 @@
1
- {"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AA0E3C,eAAO,MAAM,aAAa,GAAU,mBAEjC;IACD,YAAY,EAAE,YAAY,CAAA;CAC3B,KAAG,OAAO,CAAC,YAAY,CA8RvB,CAAA"}
1
+ {"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAyE3C,eAAO,MAAM,aAAa,GAAU,mBAEjC;IACD,YAAY,EAAE,YAAY,CAAA;CAC3B,KAAG,OAAO,CAAC,YAAY,CA6RvB,CAAA"}
@@ -30,7 +30,6 @@ const getExternalLibraryName = (pkgName)=>{
30
30
  const externalAlias = {
31
31
  react: 'React',
32
32
  'react-dom': 'ReactDOM',
33
- 'react-router': 'ReactRouter',
34
33
  'react-router-dom': 'ReactRouterDOM'
35
34
  };
36
35
  return externalAlias[pkgName] || pkgName;
@@ -188,7 +187,6 @@ const prebundleDeps = async ({ unpackConfig })=>{
188
187
  externals: {
189
188
  react: getExternalValue('react'),
190
189
  'react-dom': getExternalValue('react-dom'),
191
- 'react-router': getExternalValue('react-router'),
192
190
  'react-router-dom': getExternalValue('react-router-dom')
193
191
  }
194
192
  });
@@ -254,7 +252,6 @@ const prebundleDeps = async ({ unpackConfig })=>{
254
252
  const preDeps = [
255
253
  'react',
256
254
  'react-dom',
257
- 'react-router',
258
255
  'react-router-dom'
259
256
  ];
260
257
  const serverPath = `//localhost:${port}/${CACHE_DIR}/${relativePath}`;
package/dist/run/dev.cjs CHANGED
@@ -88,7 +88,7 @@ async function unpackDev(originalUnpackConfig) {
88
88
  const server = new (external_webpack_dev_server_default())(devServerOptions, compiler);
89
89
  await server.start();
90
90
  global.__unpack_dev_server_started = true;
91
- external_logger_cjs_namespaceObject.logger.greet(` ${external_colors_cjs_namespaceObject.colors.green(`${external_colors_cjs_namespaceObject.colors.bold(unpackConfig._context.callerName.toUpperCase())} v2.3.4`)} ${external_colors_cjs_namespaceObject.colors.dim(`ready in ${external_colors_cjs_namespaceObject.colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`);
91
+ external_logger_cjs_namespaceObject.logger.greet(` ${external_colors_cjs_namespaceObject.colors.green(`${external_colors_cjs_namespaceObject.colors.bold(unpackConfig._context.callerName.toUpperCase())} v2.3.5`)} ${external_colors_cjs_namespaceObject.colors.dim(`ready in ${external_colors_cjs_namespaceObject.colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`);
92
92
  printAddressUrls(port);
93
93
  external_global_cjs_namespaceObject.restartCleaners.push(async ()=>await server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())), ()=>{
94
94
  global.__unpack_dev_server_started = false;
package/dist/run/dev.js CHANGED
@@ -51,7 +51,7 @@ async function unpackDev(originalUnpackConfig) {
51
51
  const server = new webpack_dev_server(devServerOptions, compiler);
52
52
  await server.start();
53
53
  global.__unpack_dev_server_started = true;
54
- logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v2.3.4`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`);
54
+ logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v2.3.5`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`);
55
55
  printAddressUrls(port);
56
56
  restartCleaners.push(async ()=>await server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())), ()=>{
57
57
  global.__unpack_dev_server_started = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unpackjs/core",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {