@unpackjs/core 1.7.5 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/compiled/css-loader/index.js +180 -178
  2. package/compiled/less-loader/index.js +11 -11
  3. package/compiled/line-diff/index.js +4 -4
  4. package/compiled/portfinder/index.js +37 -37
  5. package/compiled/postcss-loader/index.js +261 -256
  6. package/compiled/sass-loader/index.js +18 -18
  7. package/compiled/semver/index.js +188 -170
  8. package/compiled/semver/package.json +1 -1
  9. package/compiled/style-loader/index.js +13 -13
  10. package/compiled/webpack-bundle-analyzer/index.js +198 -198
  11. package/compiled/webpack-merge/index.js +29 -29
  12. package/dist/bundler-config/chunkSplit.cjs +169 -156
  13. package/dist/bundler-config/chunkSplit.d.ts +1 -1
  14. package/dist/bundler-config/chunkSplit.js +125 -134
  15. package/dist/bundler-config/css.cjs +181 -158
  16. package/dist/bundler-config/css.d.ts +1 -1
  17. package/dist/bundler-config/css.js +139 -151
  18. package/dist/bundler-config/experimentCss.cjs +203 -159
  19. package/dist/bundler-config/experimentCss.d.ts +1 -1
  20. package/dist/bundler-config/experimentCss.js +162 -152
  21. package/dist/bundler-config/helper.cjs +82 -78
  22. package/dist/bundler-config/helper.js +36 -55
  23. package/dist/bundler-config/index.cjs +260 -209
  24. package/dist/bundler-config/index.d.ts +1 -1
  25. package/dist/bundler-config/index.d.ts.map +1 -1
  26. package/dist/bundler-config/index.js +209 -182
  27. package/dist/bundler-config/jsMinify.cjs +114 -95
  28. package/dist/bundler-config/jsMinify.js +70 -73
  29. package/dist/colors.cjs +83 -56
  30. package/dist/colors.js +38 -37
  31. package/dist/config.cjs +107 -93
  32. package/dist/config.d.ts +1 -1
  33. package/dist/config.d.ts.map +1 -1
  34. package/dist/config.js +64 -70
  35. package/dist/constants.cjs +62 -62
  36. package/dist/constants.js +20 -38
  37. package/dist/createUnpack.cjs +111 -104
  38. package/dist/createUnpack.js +67 -82
  39. package/dist/global.cjs +36 -0
  40. package/dist/global.d.ts +2 -0
  41. package/dist/global.d.ts.map +1 -0
  42. package/dist/global.js +4 -0
  43. package/dist/index.cjs +174 -51
  44. package/dist/index.d.ts +2 -0
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +33 -15
  47. package/dist/lightningcss/cache.cjs +40 -32
  48. package/dist/lightningcss/cache.js +10 -20
  49. package/dist/lightningcss/loader.cjs +56 -53
  50. package/dist/lightningcss/loader.d.ts +1 -1
  51. package/dist/lightningcss/loader.js +25 -34
  52. package/dist/lightningcss/minimizer.cjs +90 -109
  53. package/dist/lightningcss/minimizer.d.ts +1 -1
  54. package/dist/lightningcss/minimizer.js +59 -87
  55. package/dist/logger.cjs +104 -98
  56. package/dist/logger.d.ts +1 -1
  57. package/dist/logger.js +59 -76
  58. package/dist/openBrowser.cjs +104 -81
  59. package/dist/openBrowser.js +56 -52
  60. package/dist/plugin-progress/rspack.cjs +104 -79
  61. package/dist/plugin-progress/rspack.d.ts +1 -1
  62. package/dist/plugin-progress/rspack.js +59 -57
  63. package/dist/plugin-progress/webpack.cjs +111 -89
  64. package/dist/plugin-progress/webpack.d.ts +1 -1
  65. package/dist/plugin-progress/webpack.js +65 -67
  66. package/dist/plugin.cjs +38 -29
  67. package/dist/plugin.js +8 -17
  68. package/dist/prebundleDeps.cjs +327 -337
  69. package/dist/prebundleDeps.d.ts.map +1 -1
  70. package/dist/prebundleDeps.js +278 -324
  71. package/dist/progressBar.cjs +82 -65
  72. package/dist/progressBar.js +38 -43
  73. package/dist/reporter.cjs +135 -120
  74. package/dist/reporter.js +88 -98
  75. package/dist/run/build.cjs +68 -67
  76. package/dist/run/build.d.ts +1 -1
  77. package/dist/run/build.js +24 -45
  78. package/dist/run/dev.cjs +96 -83
  79. package/dist/run/dev.d.ts +1 -1
  80. package/dist/run/dev.d.ts.map +1 -1
  81. package/dist/run/dev.js +50 -61
  82. package/dist/run/index.cjs +74 -21
  83. package/dist/run/index.js +2 -9
  84. package/dist/typed-css-modules/loader.cjs +179 -188
  85. package/dist/typed-css-modules/loader.d.ts +1 -1
  86. package/dist/typed-css-modules/loader.js +118 -151
  87. package/dist/typed-css-modules/plugin.cjs +113 -88
  88. package/dist/typed-css-modules/plugin.d.ts +1 -1
  89. package/dist/typed-css-modules/plugin.js +68 -66
  90. package/dist/typed-css-modules/utils.cjs +43 -42
  91. package/dist/typed-css-modules/utils.d.ts +1 -1
  92. package/dist/typed-css-modules/utils.js +13 -30
  93. package/dist/types/chunkSplit.cjs +19 -15
  94. package/dist/types/chunkSplit.d.ts +2 -10
  95. package/dist/types/chunkSplit.d.ts.map +1 -1
  96. package/dist/types/chunkSplit.js +2 -9
  97. package/dist/types/config.cjs +19 -15
  98. package/dist/types/config.d.ts +1 -1
  99. package/dist/types/config.js +2 -9
  100. package/dist/types/index.cjs +101 -27
  101. package/dist/types/index.js +2 -9
  102. package/dist/types/lightningcss.cjs +19 -15
  103. package/dist/types/lightningcss.js +2 -9
  104. package/dist/types/logger.cjs +43 -34
  105. package/dist/types/logger.js +13 -22
  106. package/dist/types/plugin.cjs +19 -15
  107. package/dist/types/plugin.js +2 -9
  108. package/dist/utils.cjs +280 -304
  109. package/dist/utils.js +195 -241
  110. package/dist/watchFiles.cjs +73 -0
  111. package/dist/watchFiles.d.ts +3 -0
  112. package/dist/watchFiles.d.ts.map +1 -0
  113. package/dist/watchFiles.js +27 -0
  114. package/package.json +14 -17
  115. package/compiled/commander/index.d.ts +0 -1047
  116. package/compiled/commander/index.js +0 -2428
  117. package/compiled/commander/license +0 -22
  118. package/compiled/commander/package.json +0 -1
  119. package/dist/bundleRequire.cjs +0 -200
  120. package/dist/bundleRequire.d.ts +0 -5
  121. package/dist/bundleRequire.d.ts.map +0 -1
  122. package/dist/bundleRequire.js +0 -173
@@ -1,87 +1,72 @@
1
- import { createRequire } from 'node:module';
2
- var require = createRequire(import.meta['url']);
3
-
4
- import path from "path";
5
- import { fileURLToPath } from "url";
6
- var getFilename = () => fileURLToPath(import.meta.url);
7
- var getDirname = () => path.dirname(getFilename());
8
- var __dirname = /* @__PURE__ */ getDirname();
9
- var __filename = /* @__PURE__ */ getFilename();
10
- import colors from "./colors.js";
11
- import { getNormalizedPluginsByHook } from "./plugin.js";
12
- import { bundlerBuild, bundlerDev } from "./run/index.js";
13
- import { isDevServer, isProd, mergeConfig, setDevServer, setNodeEnv } from "./utils.js";
1
+ import __rslib_shim_module__ from 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ import * as __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__ from "./colors.js";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__plugin_js_54d373c1__ from "./plugin.js";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__run_index_js_f05de1fb__ from "./run/index.js";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__ from "./utils.js";
14
7
  function createUnpack() {
15
- const resolveConfig = async (unpackConfig) => {
16
- const defaultConfig = {
17
- bundler: "rspack",
18
- root: process.cwd(),
19
- build: {
20
- outDir: "dist",
21
- minify: isProd(),
22
- sourceMap: isProd() ? false : "cheap-module-source-map",
23
- parallel: !isDevServer(),
24
- filenameHash: true,
25
- typeCheck: true
26
- },
27
- dev: {
28
- lazyCompilation: true
29
- },
30
- server: {
31
- port: 3e3
32
- },
33
- html: {
34
- mountId: "root"
35
- },
36
- css: {
37
- modules: true,
38
- transformer: "postcss",
39
- sourceMap: false
40
- },
41
- performance: {
42
- chunkSplit: {
43
- strategy: "split-by-experience"
44
- }
45
- }
8
+ const resolveConfig = async (unpackConfig)=>{
9
+ const defaultConfig = {
10
+ bundler: 'rspack',
11
+ root: process.cwd(),
12
+ build: {
13
+ outDir: 'dist',
14
+ minify: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.isProd)(),
15
+ sourceMap: !(0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.isProd)() && 'cheap-module-source-map',
16
+ parallel: !(0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.isDevServer)(),
17
+ filenameHash: true,
18
+ typeCheck: true
19
+ },
20
+ dev: {
21
+ lazyCompilation: true
22
+ },
23
+ server: {
24
+ port: 3000
25
+ },
26
+ html: {
27
+ mountId: 'root'
28
+ },
29
+ css: {
30
+ modules: true,
31
+ transformer: 'postcss',
32
+ sourceMap: false
33
+ },
34
+ performance: {
35
+ chunkSplit: {
36
+ strategy: 'split-by-experience'
37
+ }
38
+ }
39
+ };
40
+ let { plugins, bundlerConfig, ...rest } = (0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.mergeConfig)(defaultConfig, unpackConfig);
41
+ for (const plugin of (0, __WEBPACK_EXTERNAL_MODULE__plugin_js_54d373c1__.getNormalizedPluginsByHook)('config', plugins))rest = await plugin.config(rest, {
42
+ mergeConfig: __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.mergeConfig
43
+ });
44
+ return {
45
+ ...rest,
46
+ plugins,
47
+ bundlerConfig
48
+ };
46
49
  };
47
- let { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, unpackConfig);
48
- for (const plugin of getNormalizedPluginsByHook("config", plugins)) {
49
- rest = await plugin.config(rest, { mergeConfig });
50
- }
51
50
  return {
52
- ...rest,
53
- plugins,
54
- bundlerConfig
51
+ build: async (unpackConfig)=>{
52
+ (0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.setNodeEnv)('production');
53
+ console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.6"), __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].green('building for production...'));
54
+ const config = await resolveConfig(unpackConfig);
55
+ (0, __WEBPACK_EXTERNAL_MODULE__run_index_js_f05de1fb__.bundlerBuild)(config);
56
+ },
57
+ serve: async (unpackConfig)=>{
58
+ global.__unpack_start_time = performance.now();
59
+ (0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.setNodeEnv)('development');
60
+ (0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.setDevServer)(true);
61
+ const config = await resolveConfig(unpackConfig);
62
+ (0, __WEBPACK_EXTERNAL_MODULE__run_index_js_f05de1fb__.bundlerDev)(config);
63
+ },
64
+ watch: async (unpackConfig)=>{
65
+ (0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.setNodeEnv)('development');
66
+ console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.6"), __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].green('building for development...'));
67
+ const config = await resolveConfig(unpackConfig);
68
+ (0, __WEBPACK_EXTERNAL_MODULE__run_index_js_f05de1fb__.bundlerBuild)(config);
69
+ }
55
70
  };
56
- };
57
- return {
58
- build: async (unpackConfig) => {
59
- setNodeEnv("production");
60
- console.log(
61
- colors.rainbow(`unpack v${"1.7.5"}`),
62
- colors.green("building for production...")
63
- );
64
- const config = await resolveConfig(unpackConfig);
65
- bundlerBuild(config);
66
- },
67
- serve: async (unpackConfig) => {
68
- global.__unpack_start_time = performance.now();
69
- setNodeEnv("development");
70
- setDevServer(true);
71
- const config = await resolveConfig(unpackConfig);
72
- bundlerDev(config);
73
- },
74
- watch: async (unpackConfig) => {
75
- setNodeEnv("development");
76
- console.log(
77
- colors.rainbow(`unpack v${"1.7.5"}`),
78
- colors.green("building for development...")
79
- );
80
- const config = await resolveConfig(unpackConfig);
81
- bundlerBuild(config);
82
- }
83
- };
84
71
  }
85
- export {
86
- createUnpack
87
- };
72
+ export { createUnpack };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = function(exports1, definition) {
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = function(obj, prop) {
13
+ return Object.prototype.hasOwnProperty.call(obj, prop);
14
+ };
15
+ })();
16
+ (()=>{
17
+ __webpack_require__.r = function(exports1) {
18
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
19
+ value: 'Module'
20
+ });
21
+ Object.defineProperty(exports1, '__esModule', {
22
+ value: true
23
+ });
24
+ };
25
+ })();
26
+ var __webpack_exports__ = {};
27
+ __webpack_require__.r(__webpack_exports__);
28
+ __webpack_require__.d(__webpack_exports__, {
29
+ restartCleaners: ()=>restartCleaners
30
+ });
31
+ const restartCleaners = [];
32
+ var __webpack_export_target__ = exports;
33
+ for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
34
+ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
35
+ value: true
36
+ });
@@ -0,0 +1,2 @@
1
+ export declare const restartCleaners: (() => Promise<void>)[];
2
+ //# sourceMappingURL=global.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../src/global.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,EAAO,CAAA"}
package/dist/global.js ADDED
@@ -0,0 +1,4 @@
1
+ import __rslib_shim_module__ from 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ const restartCleaners = [];
4
+ export { restartCleaners };
package/dist/index.cjs CHANGED
@@ -1,53 +1,176 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
1
+ "use strict";
2
+ var __webpack_modules__ = {
3
+ "./colors": function(module) {
4
+ module.exports = require("./colors.cjs");
5
+ },
6
+ "./config": function(module) {
7
+ module.exports = require("./config.cjs");
8
+ },
9
+ "./constants": function(module) {
10
+ module.exports = require("./constants.cjs");
11
+ },
12
+ "./createUnpack": function(module) {
13
+ module.exports = require("./createUnpack.cjs");
14
+ },
15
+ "./global": function(module) {
16
+ module.exports = require("./global.cjs");
17
+ },
18
+ "./logger": function(module) {
19
+ module.exports = require("./logger.cjs");
20
+ },
21
+ "src/types/index": function(module) {
22
+ module.exports = require("./types/index.cjs");
23
+ },
24
+ "./utils": function(module) {
25
+ module.exports = require("./utils.cjs");
26
+ },
27
+ "./watchFiles": function(module) {
28
+ module.exports = require("./watchFiles.cjs");
29
+ },
30
+ "html-webpack-plugin": function(module) {
31
+ module.exports = require("html-webpack-plugin");
32
+ }
10
33
  };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var src_exports = {};
30
- __export(src_exports, {
31
- HtmlWebpackPlugin: () => import_html_webpack_plugin.default,
32
- colors: () => import_colors.default
33
- });
34
- module.exports = __toCommonJS(src_exports);
35
- __reExport(src_exports, require("./logger.cjs"), module.exports);
36
- __reExport(src_exports, require("./types/index.cjs"), module.exports);
37
- __reExport(src_exports, require("./utils.cjs"), module.exports);
38
- __reExport(src_exports, require("./constants.cjs"), module.exports);
39
- __reExport(src_exports, require("./createUnpack.cjs"), module.exports);
40
- __reExport(src_exports, require("./config.cjs"), module.exports);
41
- var import_colors = __toESM(require("./colors.cjs"));
42
- var import_html_webpack_plugin = __toESM(require("html-webpack-plugin"));
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- HtmlWebpackPlugin,
46
- colors,
47
- ...require("./logger.cjs"),
48
- ...require("./types/index.cjs"),
49
- ...require("./utils.cjs"),
50
- ...require("./constants.cjs"),
51
- ...require("./createUnpack.cjs"),
52
- ...require("./config.cjs")
34
+ var __webpack_module_cache__ = {};
35
+ function __webpack_require__(moduleId) {
36
+ var cachedModule = __webpack_module_cache__[moduleId];
37
+ if (void 0 !== cachedModule) return cachedModule.exports;
38
+ var module = __webpack_module_cache__[moduleId] = {
39
+ exports: {}
40
+ };
41
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
42
+ return module.exports;
43
+ }
44
+ (()=>{
45
+ __webpack_require__.n = function(module) {
46
+ var getter = module && module.__esModule ? function() {
47
+ return module['default'];
48
+ } : function() {
49
+ return module;
50
+ };
51
+ __webpack_require__.d(getter, {
52
+ a: getter
53
+ });
54
+ return getter;
55
+ };
56
+ })();
57
+ (()=>{
58
+ __webpack_require__.d = function(exports1, definition) {
59
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
60
+ enumerable: true,
61
+ get: definition[key]
62
+ });
63
+ };
64
+ })();
65
+ (()=>{
66
+ __webpack_require__.o = function(obj, prop) {
67
+ return Object.prototype.hasOwnProperty.call(obj, prop);
68
+ };
69
+ })();
70
+ (()=>{
71
+ __webpack_require__.r = function(exports1) {
72
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
73
+ value: 'Module'
74
+ });
75
+ Object.defineProperty(exports1, '__esModule', {
76
+ value: true
77
+ });
78
+ };
79
+ })();
80
+ var __webpack_exports__ = {};
81
+ (()=>{
82
+ __webpack_require__.r(__webpack_exports__);
83
+ __webpack_require__.d(__webpack_exports__, {
84
+ HtmlWebpackPlugin: ()=>html_webpack_plugin__WEBPACK_IMPORTED_MODULE_7___default.a,
85
+ colors: ()=>_colors__WEBPACK_IMPORTED_MODULE_6___default.a
86
+ });
87
+ var _logger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./logger");
88
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
89
+ for(var __WEBPACK_IMPORT_KEY__ in _logger__WEBPACK_IMPORTED_MODULE_0__)if ([
90
+ "HtmlWebpackPlugin",
91
+ "default",
92
+ "colors"
93
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
94
+ return _logger__WEBPACK_IMPORTED_MODULE_0__[key];
95
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
96
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
97
+ var _types_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("src/types/index");
98
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
99
+ for(var __WEBPACK_IMPORT_KEY__ in _types_index__WEBPACK_IMPORTED_MODULE_1__)if ([
100
+ "default",
101
+ "colors",
102
+ "HtmlWebpackPlugin"
103
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
104
+ return _types_index__WEBPACK_IMPORTED_MODULE_1__[key];
105
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
106
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
107
+ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./utils");
108
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
109
+ for(var __WEBPACK_IMPORT_KEY__ in _utils__WEBPACK_IMPORTED_MODULE_2__)if ([
110
+ "default",
111
+ "colors",
112
+ "HtmlWebpackPlugin"
113
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
114
+ return _utils__WEBPACK_IMPORTED_MODULE_2__[key];
115
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
116
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
117
+ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./constants");
118
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
119
+ for(var __WEBPACK_IMPORT_KEY__ in _constants__WEBPACK_IMPORTED_MODULE_3__)if ([
120
+ "default",
121
+ "colors",
122
+ "HtmlWebpackPlugin"
123
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
124
+ return _constants__WEBPACK_IMPORTED_MODULE_3__[key];
125
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
126
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
127
+ var _createUnpack__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./createUnpack");
128
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
129
+ for(var __WEBPACK_IMPORT_KEY__ in _createUnpack__WEBPACK_IMPORTED_MODULE_4__)if ([
130
+ "default",
131
+ "colors",
132
+ "HtmlWebpackPlugin"
133
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
134
+ return _createUnpack__WEBPACK_IMPORTED_MODULE_4__[key];
135
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
136
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
137
+ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./config");
138
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
139
+ for(var __WEBPACK_IMPORT_KEY__ in _config__WEBPACK_IMPORTED_MODULE_5__)if ([
140
+ "default",
141
+ "colors",
142
+ "HtmlWebpackPlugin"
143
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
144
+ return _config__WEBPACK_IMPORTED_MODULE_5__[key];
145
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
146
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
147
+ var _colors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./colors");
148
+ var _colors__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_require__.n(_colors__WEBPACK_IMPORTED_MODULE_6__);
149
+ var html_webpack_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("html-webpack-plugin");
150
+ var html_webpack_plugin__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/ __webpack_require__.n(html_webpack_plugin__WEBPACK_IMPORTED_MODULE_7__);
151
+ var _watchFiles__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./watchFiles");
152
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
153
+ for(var __WEBPACK_IMPORT_KEY__ in _watchFiles__WEBPACK_IMPORTED_MODULE_8__)if ([
154
+ "default",
155
+ "colors",
156
+ "HtmlWebpackPlugin"
157
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
158
+ return _watchFiles__WEBPACK_IMPORTED_MODULE_8__[key];
159
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
160
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
161
+ var _global__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./global");
162
+ var __WEBPACK_REEXPORT_OBJECT__ = {};
163
+ for(var __WEBPACK_IMPORT_KEY__ in _global__WEBPACK_IMPORTED_MODULE_9__)if ([
164
+ "default",
165
+ "colors",
166
+ "HtmlWebpackPlugin"
167
+ ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
168
+ return _global__WEBPACK_IMPORTED_MODULE_9__[key];
169
+ }).bind(0, __WEBPACK_IMPORT_KEY__);
170
+ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
171
+ })();
172
+ var __webpack_export_target__ = exports;
173
+ for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
174
+ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
175
+ value: true
53
176
  });
package/dist/index.d.ts CHANGED
@@ -6,4 +6,6 @@ export * from './createUnpack';
6
6
  export * from './config';
7
7
  export { default as colors } from './colors';
8
8
  export { default as HtmlWebpackPlugin } from 'html-webpack-plugin';
9
+ export * from './watchFiles';
10
+ export * from './global';
9
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAClE,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA"}
package/dist/index.js CHANGED
@@ -1,21 +1,39 @@
1
- import { createRequire } from 'node:module';
2
- var require = createRequire(import.meta['url']);
3
-
4
- import path from "path";
5
- import { fileURLToPath } from "url";
6
- var getFilename = () => fileURLToPath(import.meta.url);
7
- var getDirname = () => path.dirname(getFilename());
8
- var __dirname = /* @__PURE__ */ getDirname();
9
- var __filename = /* @__PURE__ */ getFilename();
1
+ import __rslib_shim_module__ from 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ import * as __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__ from "./colors.js";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__types_index_js_63ede62f__ from "./types/index.js";
5
+ import * as __WEBPACK_EXTERNAL_MODULE_html_webpack_plugin_e07f62c9__ from "html-webpack-plugin";
10
6
  export * from "./logger.js";
11
- export * from "./types/index.js";
12
7
  export * from "./utils.js";
13
8
  export * from "./constants.js";
14
9
  export * from "./createUnpack.js";
15
10
  export * from "./config.js";
16
- import { default as default2 } from "./colors.js";
17
- import { default as default3 } from "html-webpack-plugin";
18
- export {
19
- default3 as HtmlWebpackPlugin,
20
- default2 as colors
11
+ export * from "./watchFiles.js";
12
+ export * from "./global.js";
13
+ var __webpack_modules__ = {
14
+ "./colors": function(module) {
15
+ module.exports = __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__;
16
+ },
17
+ "src/types/index": function(module) {
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__types_index_js_63ede62f__;
19
+ },
20
+ "html-webpack-plugin": function(module) {
21
+ module.exports = __WEBPACK_EXTERNAL_MODULE_html_webpack_plugin_e07f62c9__;
22
+ }
21
23
  };
24
+ var __webpack_module_cache__ = {};
25
+ function __webpack_require__(moduleId) {
26
+ var cachedModule = __webpack_module_cache__[moduleId];
27
+ if (void 0 !== cachedModule) return cachedModule.exports;
28
+ var module = __webpack_module_cache__[moduleId] = {
29
+ exports: {}
30
+ };
31
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
32
+ return module.exports;
33
+ }
34
+ __webpack_require__("src/types/index");
35
+ var external_colors_js_ = __webpack_require__("./colors");
36
+ var external_html_webpack_plugin_ = __webpack_require__("html-webpack-plugin");
37
+ var __webpack_exports__HtmlWebpackPlugin = external_html_webpack_plugin_["default"];
38
+ var __webpack_exports__colors = external_colors_js_["default"];
39
+ export { __webpack_exports__HtmlWebpackPlugin as HtmlWebpackPlugin, __webpack_exports__colors as colors };
@@ -1,36 +1,44 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var cache_exports = {};
19
- __export(cache_exports, {
20
- getLightningcssTargets: () => getLightningcssTargets
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = function(exports1, definition) {
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = function(obj, prop) {
13
+ return Object.prototype.hasOwnProperty.call(obj, prop);
14
+ };
15
+ })();
16
+ (()=>{
17
+ __webpack_require__.r = function(exports1) {
18
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
19
+ value: 'Module'
20
+ });
21
+ Object.defineProperty(exports1, '__esModule', {
22
+ value: true
23
+ });
24
+ };
25
+ })();
26
+ var __webpack_exports__ = {};
27
+ __webpack_require__.r(__webpack_exports__);
28
+ __webpack_require__.d(__webpack_exports__, {
29
+ getLightningcssTargets: ()=>getLightningcssTargets
21
30
  });
22
- module.exports = __toCommonJS(cache_exports);
23
- var import_lightningcss = require("lightningcss");
24
- var import_constants = require("../constants.cjs");
31
+ const external_lightningcss_namespaceObject = require("lightningcss");
32
+ const external_constants_cjs_namespaceObject = require("../constants.cjs");
25
33
  let lightningcssTargetsCache = null;
26
- const getLightningcssTargets = () => {
27
- if (lightningcssTargetsCache)
28
- return lightningcssTargetsCache;
29
- const targets = (0, import_lightningcss.browserslistToTargets)(import_constants.DEFAULT_BROWSERSLIST);
30
- lightningcssTargetsCache = targets;
31
- return targets;
34
+ const getLightningcssTargets = ()=>{
35
+ if (lightningcssTargetsCache) return lightningcssTargetsCache;
36
+ const targets = (0, external_lightningcss_namespaceObject.browserslistToTargets)(external_constants_cjs_namespaceObject.DEFAULT_BROWSERSLIST);
37
+ lightningcssTargetsCache = targets;
38
+ return targets;
32
39
  };
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {
35
- getLightningcssTargets
40
+ var __webpack_export_target__ = exports;
41
+ for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
42
+ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
43
+ value: true
36
44
  });
@@ -1,22 +1,12 @@
1
- import { createRequire } from 'node:module';
2
- var require = createRequire(import.meta['url']);
3
-
4
- import path from "path";
5
- import { fileURLToPath } from "url";
6
- var getFilename = () => fileURLToPath(import.meta.url);
7
- var getDirname = () => path.dirname(getFilename());
8
- var __dirname = /* @__PURE__ */ getDirname();
9
- var __filename = /* @__PURE__ */ getFilename();
10
- import { browserslistToTargets } from "lightningcss";
11
- import { DEFAULT_BROWSERSLIST } from "../constants.js";
1
+ import __rslib_shim_module__ from 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ import * as __WEBPACK_EXTERNAL_MODULE_lightningcss__ from "lightningcss";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__constants_js_59e7fa1b__ from "../constants.js";
12
5
  let lightningcssTargetsCache = null;
13
- const getLightningcssTargets = () => {
14
- if (lightningcssTargetsCache)
15
- return lightningcssTargetsCache;
16
- const targets = browserslistToTargets(DEFAULT_BROWSERSLIST);
17
- lightningcssTargetsCache = targets;
18
- return targets;
19
- };
20
- export {
21
- getLightningcssTargets
6
+ const getLightningcssTargets = ()=>{
7
+ if (lightningcssTargetsCache) return lightningcssTargetsCache;
8
+ const targets = (0, __WEBPACK_EXTERNAL_MODULE_lightningcss__.browserslistToTargets)(__WEBPACK_EXTERNAL_MODULE__constants_js_59e7fa1b__.DEFAULT_BROWSERSLIST);
9
+ lightningcssTargetsCache = targets;
10
+ return targets;
22
11
  };
12
+ export { getLightningcssTargets };