@modern-js/utils 0.0.0-nightly-20240219170634 → 0.0.0-nightly-20240221170640

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.
@@ -15,7 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  }
16
16
  return to;
17
17
  };
18
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
19
  var constants_exports = {};
21
20
  __export(constants_exports, {
@@ -51,7 +50,6 @@ __export(constants_exports, {
51
50
  SHARED_DIR: () => SHARED_DIR
52
51
  });
53
52
  module.exports = __toCommonJS(constants_exports);
54
- __reExport(constants_exports, require("./chainId"), module.exports);
55
53
  const ROUTE_SPEC_FILE = "route.json";
56
54
  const NESTED_ROUTE_SPEC_FILE = "nestedRoutes.json";
57
55
  const MAIN_ENTRY_NAME = "main";
@@ -175,6 +173,5 @@ const INTERNAL_SERVER_PLUGINS = {
175
173
  SERVER_PLUGIN_SERVER,
176
174
  SERVER_RENDER_FUNCTION_NAME,
177
175
  SERVER_WORKER_BUNDLE_DIRECTORY,
178
- SHARED_DIR,
179
- ...require("./chainId")
176
+ SHARED_DIR
180
177
  });
@@ -86,7 +86,6 @@ var SERVER_PLUGIN_SERVER = "@modern-js/plugin-server";
86
86
  var SERVER_PLUGIN_POLYFILL = "@modern-js/plugin-polyfill";
87
87
  var _obj;
88
88
  var INTERNAL_SERVER_PLUGINS = (_obj = {}, _define_property(_obj, SERVER_PLUGIN_BFF, "@modern-js/plugin-bff/server"), _define_property(_obj, SERVER_PLUGIN_EXPRESS, "@modern-js/plugin-express/server"), _define_property(_obj, SERVER_PLUGIN_KOA, "@modern-js/plugin-koa/server"), _define_property(_obj, SERVER_PLUGIN_SERVER, "@modern-js/plugin-server/server"), _define_property(_obj, SERVER_PLUGIN_POLYFILL, "@modern-js/plugin-polyfill/server"), _obj);
89
- export * from "./chainId";
90
89
  export {
91
90
  API_DIR,
92
91
  CONFIG_CACHE_DIR,
@@ -90,7 +90,6 @@ const INTERNAL_SERVER_PLUGINS = {
90
90
  [SERVER_PLUGIN_SERVER]: "@modern-js/plugin-server/server",
91
91
  [SERVER_PLUGIN_POLYFILL]: "@modern-js/plugin-polyfill/server"
92
92
  };
93
- export * from "./chainId";
94
93
  export {
95
94
  API_DIR,
96
95
  CONFIG_CACHE_DIR,
@@ -89,4 +89,3 @@ export declare const SERVER_PLUGIN_KOA = "@modern-js/plugin-koa";
89
89
  export declare const SERVER_PLUGIN_SERVER = "@modern-js/plugin-server";
90
90
  export declare const SERVER_PLUGIN_POLYFILL = "@modern-js/plugin-polyfill";
91
91
  export declare const INTERNAL_SERVER_PLUGINS: InternalPlugins;
92
- export * from './chainId';
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240219170634",
18
+ "version": "0.0.0-nightly-20240221170640",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -154,9 +154,9 @@
154
154
  "jest": "^29",
155
155
  "typescript": "^5",
156
156
  "webpack": "^5.89.0",
157
- "@modern-js/types": "0.0.0-nightly-20240219170634",
158
- "@scripts/build": "0.0.0-nightly-20240219170634",
159
- "@scripts/jest-config": "0.0.0-nightly-20240219170634"
157
+ "@modern-js/types": "0.0.0-nightly-20240221170640",
158
+ "@scripts/build": "0.0.0-nightly-20240221170640",
159
+ "@scripts/jest-config": "0.0.0-nightly-20240221170640"
160
160
  },
161
161
  "sideEffects": false,
162
162
  "scripts": {
@@ -1,223 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chainId_exports = {};
20
- __export(chainId_exports, {
21
- CHAIN_ID: () => CHAIN_ID
22
- });
23
- module.exports = __toCommonJS(chainId_exports);
24
- const CHAIN_ID = {
25
- /** Predefined rules */
26
- RULE: {
27
- /** Rule for .mjs */
28
- MJS: "mjs",
29
- /** Rule for predefined loaders */
30
- LOADERS: "loaders",
31
- /** Rule for fonts */
32
- FONT: "font",
33
- /** Rule for images */
34
- IMAGE: "image",
35
- /** Rule for media */
36
- MEDIA: "media",
37
- /** Rule for js */
38
- JS: "js",
39
- /** Rule for data uri encoded javascript */
40
- JS_DATA_URI: "js-data-uri",
41
- /** Rule for ts */
42
- TS: "ts",
43
- /** Rule for css */
44
- CSS: "css",
45
- /** Rule for less */
46
- LESS: "less",
47
- /** Rule for sass */
48
- SASS: "sass",
49
- /** Rule for stylus */
50
- STYLUS: "stylus",
51
- /** Rule for svg */
52
- SVG: "svg",
53
- /** Rule for pug */
54
- PUG: "pug",
55
- /** Rule for Vue */
56
- VUE: "vue",
57
- /** Rule for toml */
58
- TOML: "toml",
59
- /** Rule for yaml */
60
- YAML: "yaml",
61
- /** Rule for wasm */
62
- WASM: "wasm",
63
- /** Rule for node */
64
- NODE: "node",
65
- /** Rule for bff */
66
- JS_BFF_API: "js-bff-api"
67
- },
68
- /** Predefined rule groups */
69
- ONE_OF: {
70
- SVG: "svg",
71
- SVG_URL: "svg-url",
72
- SVG_ASSET: "svg-asset",
73
- SVG_INLINE: "svg-inline"
74
- },
75
- /** Predefined loaders */
76
- USE: {
77
- /** ts-loader */
78
- TS: "ts",
79
- /** css-loader */
80
- CSS: "css",
81
- /** sass-loader */
82
- SASS: "sass",
83
- /** less-loader */
84
- LESS: "less",
85
- /** stylus-loader */
86
- STYLUS: "stylus",
87
- /** url-loader */
88
- URL: "url",
89
- /** pug-loader */
90
- PUG: "pug",
91
- /** vue-loader */
92
- VUE: "vue",
93
- /** file-loader */
94
- FILE: "file",
95
- /** @svgr/webpack */
96
- SVGR: "svgr",
97
- /** yaml-loader */
98
- YAML: "yaml",
99
- /** toml-loader */
100
- TOML: "toml",
101
- /** html-loader */
102
- HTML: "html",
103
- /** node-loader */
104
- NODE: "html",
105
- /** babel-loader */
106
- BABEL: "babel",
107
- /** esbuild-loader */
108
- ESBUILD: "esbuild",
109
- /** swc-loader */
110
- SWC: "swc",
111
- /** style-loader */
112
- STYLE: "style-loader",
113
- /** postcss-loader */
114
- POSTCSS: "postcss",
115
- /** ignore-css-loader */
116
- IGNORE_CSS: "ignore-css",
117
- /** css-modules-typescript-loader */
118
- CSS_MODULES_TS: "css-modules-typescript",
119
- /** mini-css-extract-plugin.loader */
120
- MINI_CSS_EXTRACT: "mini-css-extract",
121
- /** resolve-url-loader */
122
- RESOLVE_URL_LOADER_FOR_SASS: "resolve-url-loader",
123
- /** builder-plugin-image-compress.loader */
124
- IMAGE_COMPRESS: "image-compress",
125
- /** builder-plugin-image-compress svgo-loader */
126
- SVGO: "svgo",
127
- /** builder-plugin-imagex */
128
- IMAGEX: "imagex",
129
- /** storybook-react-docgen */
130
- REACT_DOCGEN: "react-docgen"
131
- },
132
- /** Predefined plugins */
133
- PLUGIN: {
134
- /** HotModuleReplacementPlugin */
135
- HMR: "hmr",
136
- /** CopyWebpackPlugin */
137
- COPY: "copy",
138
- /** HtmlWebpackPlugin */
139
- HTML: "html",
140
- /** DefinePlugin */
141
- DEFINE: "define",
142
- /** IgnorePlugin */
143
- IGNORE: "ignore",
144
- /** BannerPlugin */
145
- BANNER: "banner",
146
- /** Webpackbar */
147
- PROGRESS: "progress",
148
- /** Inspector */
149
- INSPECTOR: "inspector",
150
- /** AppIconPlugin */
151
- APP_ICON: "app-icon",
152
- /** FaviconUrlPlugin */
153
- FAVICON_URL: "favicon-url",
154
- /** LoadableWebpackPlugin */
155
- LOADABLE: "loadable",
156
- /** WebpackManifestPlugin */
157
- MANIFEST: "webpack-manifest",
158
- /** ForkTsCheckerWebpackPlugin */
159
- TS_CHECKER: "ts-checker",
160
- /** InlineChunkHtmlPlugin */
161
- INLINE_HTML: "inline-html",
162
- /** WebpackBundleAnalyzer */
163
- BUNDLE_ANALYZER: "bundle-analyze",
164
- /** BottomTemplatePlugin */
165
- BOTTOM_TEMPLATE: "bottom-template",
166
- /** HtmlTagsPlugin */
167
- HTML_TAGS: "html-tags",
168
- /** HtmlNoncePlugin */
169
- HTML_NONCE: "html-nonce",
170
- /** HtmlCrossOriginPlugin */
171
- HTML_CROSS_ORIGIN: "html-cross-origin",
172
- /** htmlPreconnectPlugin */
173
- HTML_PRECONNECT: "html-preconnect-plugin",
174
- /** htmlDnsPrefetchPlugin */
175
- HTML_DNS_PREFETCH: "html-dns-prefetch-plugin",
176
- /** htmlPrefetchPlugin */
177
- HTML_PREFETCH: "html-prefetch-plugin",
178
- /** htmlPreloadPlugin */
179
- HTML_PRELOAD: "html-preload-plugin",
180
- /** MiniCssExtractPlugin */
181
- MINI_CSS_EXTRACT: "mini-css-extract",
182
- /** VueLoaderPlugin */
183
- VUE_LOADER_PLUGIN: "vue-loader-plugin",
184
- /** ReactFastRefreshPlugin */
185
- REACT_FAST_REFRESH: "react-fast-refresh",
186
- /** ProvidePlugin for node polyfill */
187
- NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
188
- /** WebpackSRIPlugin */
189
- SUBRESOURCE_INTEGRITY: "subresource-integrity",
190
- /** WebpackAssetsRetryPlugin */
191
- ASSETS_RETRY: "ASSETS_RETRY",
192
- /** AutoSetRootFontSizePlugin */
193
- AUTO_SET_ROOT_SIZE: "auto-set-root-size",
194
- /** HtmlAsyncChunkPlugin */
195
- HTML_ASYNC_CHUNK: "html-async-chunk",
196
- /** SWC_POLYFILL_CHECKER */
197
- SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
198
- /** RouterPlugin */
199
- ROUTER_MANIFEST: "route-plugin"
200
- },
201
- /** Predefined minimizers */
202
- MINIMIZER: {
203
- /** TerserWebpackPlugin */
204
- JS: "js",
205
- /** CssMinimizerWebpackPlugin */
206
- CSS: "css",
207
- /** ESBuildPlugin */
208
- ESBUILD: "js-css",
209
- /** SWCPlugin */
210
- SWC: "swc"
211
- },
212
- /** Predefined resolve plugins */
213
- RESOLVE_PLUGIN: {
214
- /** ModuleScopePlugin */
215
- MODULE_SCOPE: "module-scope",
216
- /** TsConfigPathsPlugin */
217
- TS_CONFIG_PATHS: "ts-config-paths"
218
- }
219
- };
220
- // Annotate the CommonJS export names for ESM import in node:
221
- 0 && (module.exports = {
222
- CHAIN_ID
223
- });
@@ -1,199 +0,0 @@
1
- var CHAIN_ID = {
2
- /** Predefined rules */
3
- RULE: {
4
- /** Rule for .mjs */
5
- MJS: "mjs",
6
- /** Rule for predefined loaders */
7
- LOADERS: "loaders",
8
- /** Rule for fonts */
9
- FONT: "font",
10
- /** Rule for images */
11
- IMAGE: "image",
12
- /** Rule for media */
13
- MEDIA: "media",
14
- /** Rule for js */
15
- JS: "js",
16
- /** Rule for data uri encoded javascript */
17
- JS_DATA_URI: "js-data-uri",
18
- /** Rule for ts */
19
- TS: "ts",
20
- /** Rule for css */
21
- CSS: "css",
22
- /** Rule for less */
23
- LESS: "less",
24
- /** Rule for sass */
25
- SASS: "sass",
26
- /** Rule for stylus */
27
- STYLUS: "stylus",
28
- /** Rule for svg */
29
- SVG: "svg",
30
- /** Rule for pug */
31
- PUG: "pug",
32
- /** Rule for Vue */
33
- VUE: "vue",
34
- /** Rule for toml */
35
- TOML: "toml",
36
- /** Rule for yaml */
37
- YAML: "yaml",
38
- /** Rule for wasm */
39
- WASM: "wasm",
40
- /** Rule for node */
41
- NODE: "node",
42
- /** Rule for bff */
43
- JS_BFF_API: "js-bff-api"
44
- },
45
- /** Predefined rule groups */
46
- ONE_OF: {
47
- SVG: "svg",
48
- SVG_URL: "svg-url",
49
- SVG_ASSET: "svg-asset",
50
- SVG_INLINE: "svg-inline"
51
- },
52
- /** Predefined loaders */
53
- USE: {
54
- /** ts-loader */
55
- TS: "ts",
56
- /** css-loader */
57
- CSS: "css",
58
- /** sass-loader */
59
- SASS: "sass",
60
- /** less-loader */
61
- LESS: "less",
62
- /** stylus-loader */
63
- STYLUS: "stylus",
64
- /** url-loader */
65
- URL: "url",
66
- /** pug-loader */
67
- PUG: "pug",
68
- /** vue-loader */
69
- VUE: "vue",
70
- /** file-loader */
71
- FILE: "file",
72
- /** @svgr/webpack */
73
- SVGR: "svgr",
74
- /** yaml-loader */
75
- YAML: "yaml",
76
- /** toml-loader */
77
- TOML: "toml",
78
- /** html-loader */
79
- HTML: "html",
80
- /** node-loader */
81
- NODE: "html",
82
- /** babel-loader */
83
- BABEL: "babel",
84
- /** esbuild-loader */
85
- ESBUILD: "esbuild",
86
- /** swc-loader */
87
- SWC: "swc",
88
- /** style-loader */
89
- STYLE: "style-loader",
90
- /** postcss-loader */
91
- POSTCSS: "postcss",
92
- /** ignore-css-loader */
93
- IGNORE_CSS: "ignore-css",
94
- /** css-modules-typescript-loader */
95
- CSS_MODULES_TS: "css-modules-typescript",
96
- /** mini-css-extract-plugin.loader */
97
- MINI_CSS_EXTRACT: "mini-css-extract",
98
- /** resolve-url-loader */
99
- RESOLVE_URL_LOADER_FOR_SASS: "resolve-url-loader",
100
- /** builder-plugin-image-compress.loader */
101
- IMAGE_COMPRESS: "image-compress",
102
- /** builder-plugin-image-compress svgo-loader */
103
- SVGO: "svgo",
104
- /** builder-plugin-imagex */
105
- IMAGEX: "imagex",
106
- /** storybook-react-docgen */
107
- REACT_DOCGEN: "react-docgen"
108
- },
109
- /** Predefined plugins */
110
- PLUGIN: {
111
- /** HotModuleReplacementPlugin */
112
- HMR: "hmr",
113
- /** CopyWebpackPlugin */
114
- COPY: "copy",
115
- /** HtmlWebpackPlugin */
116
- HTML: "html",
117
- /** DefinePlugin */
118
- DEFINE: "define",
119
- /** IgnorePlugin */
120
- IGNORE: "ignore",
121
- /** BannerPlugin */
122
- BANNER: "banner",
123
- /** Webpackbar */
124
- PROGRESS: "progress",
125
- /** Inspector */
126
- INSPECTOR: "inspector",
127
- /** AppIconPlugin */
128
- APP_ICON: "app-icon",
129
- /** FaviconUrlPlugin */
130
- FAVICON_URL: "favicon-url",
131
- /** LoadableWebpackPlugin */
132
- LOADABLE: "loadable",
133
- /** WebpackManifestPlugin */
134
- MANIFEST: "webpack-manifest",
135
- /** ForkTsCheckerWebpackPlugin */
136
- TS_CHECKER: "ts-checker",
137
- /** InlineChunkHtmlPlugin */
138
- INLINE_HTML: "inline-html",
139
- /** WebpackBundleAnalyzer */
140
- BUNDLE_ANALYZER: "bundle-analyze",
141
- /** BottomTemplatePlugin */
142
- BOTTOM_TEMPLATE: "bottom-template",
143
- /** HtmlTagsPlugin */
144
- HTML_TAGS: "html-tags",
145
- /** HtmlNoncePlugin */
146
- HTML_NONCE: "html-nonce",
147
- /** HtmlCrossOriginPlugin */
148
- HTML_CROSS_ORIGIN: "html-cross-origin",
149
- /** htmlPreconnectPlugin */
150
- HTML_PRECONNECT: "html-preconnect-plugin",
151
- /** htmlDnsPrefetchPlugin */
152
- HTML_DNS_PREFETCH: "html-dns-prefetch-plugin",
153
- /** htmlPrefetchPlugin */
154
- HTML_PREFETCH: "html-prefetch-plugin",
155
- /** htmlPreloadPlugin */
156
- HTML_PRELOAD: "html-preload-plugin",
157
- /** MiniCssExtractPlugin */
158
- MINI_CSS_EXTRACT: "mini-css-extract",
159
- /** VueLoaderPlugin */
160
- VUE_LOADER_PLUGIN: "vue-loader-plugin",
161
- /** ReactFastRefreshPlugin */
162
- REACT_FAST_REFRESH: "react-fast-refresh",
163
- /** ProvidePlugin for node polyfill */
164
- NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
165
- /** WebpackSRIPlugin */
166
- SUBRESOURCE_INTEGRITY: "subresource-integrity",
167
- /** WebpackAssetsRetryPlugin */
168
- ASSETS_RETRY: "ASSETS_RETRY",
169
- /** AutoSetRootFontSizePlugin */
170
- AUTO_SET_ROOT_SIZE: "auto-set-root-size",
171
- /** HtmlAsyncChunkPlugin */
172
- HTML_ASYNC_CHUNK: "html-async-chunk",
173
- /** SWC_POLYFILL_CHECKER */
174
- SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
175
- /** RouterPlugin */
176
- ROUTER_MANIFEST: "route-plugin"
177
- },
178
- /** Predefined minimizers */
179
- MINIMIZER: {
180
- /** TerserWebpackPlugin */
181
- JS: "js",
182
- /** CssMinimizerWebpackPlugin */
183
- CSS: "css",
184
- /** ESBuildPlugin */
185
- ESBUILD: "js-css",
186
- /** SWCPlugin */
187
- SWC: "swc"
188
- },
189
- /** Predefined resolve plugins */
190
- RESOLVE_PLUGIN: {
191
- /** ModuleScopePlugin */
192
- MODULE_SCOPE: "module-scope",
193
- /** TsConfigPathsPlugin */
194
- TS_CONFIG_PATHS: "ts-config-paths"
195
- }
196
- };
197
- export {
198
- CHAIN_ID
199
- };
@@ -1,199 +0,0 @@
1
- const CHAIN_ID = {
2
- /** Predefined rules */
3
- RULE: {
4
- /** Rule for .mjs */
5
- MJS: "mjs",
6
- /** Rule for predefined loaders */
7
- LOADERS: "loaders",
8
- /** Rule for fonts */
9
- FONT: "font",
10
- /** Rule for images */
11
- IMAGE: "image",
12
- /** Rule for media */
13
- MEDIA: "media",
14
- /** Rule for js */
15
- JS: "js",
16
- /** Rule for data uri encoded javascript */
17
- JS_DATA_URI: "js-data-uri",
18
- /** Rule for ts */
19
- TS: "ts",
20
- /** Rule for css */
21
- CSS: "css",
22
- /** Rule for less */
23
- LESS: "less",
24
- /** Rule for sass */
25
- SASS: "sass",
26
- /** Rule for stylus */
27
- STYLUS: "stylus",
28
- /** Rule for svg */
29
- SVG: "svg",
30
- /** Rule for pug */
31
- PUG: "pug",
32
- /** Rule for Vue */
33
- VUE: "vue",
34
- /** Rule for toml */
35
- TOML: "toml",
36
- /** Rule for yaml */
37
- YAML: "yaml",
38
- /** Rule for wasm */
39
- WASM: "wasm",
40
- /** Rule for node */
41
- NODE: "node",
42
- /** Rule for bff */
43
- JS_BFF_API: "js-bff-api"
44
- },
45
- /** Predefined rule groups */
46
- ONE_OF: {
47
- SVG: "svg",
48
- SVG_URL: "svg-url",
49
- SVG_ASSET: "svg-asset",
50
- SVG_INLINE: "svg-inline"
51
- },
52
- /** Predefined loaders */
53
- USE: {
54
- /** ts-loader */
55
- TS: "ts",
56
- /** css-loader */
57
- CSS: "css",
58
- /** sass-loader */
59
- SASS: "sass",
60
- /** less-loader */
61
- LESS: "less",
62
- /** stylus-loader */
63
- STYLUS: "stylus",
64
- /** url-loader */
65
- URL: "url",
66
- /** pug-loader */
67
- PUG: "pug",
68
- /** vue-loader */
69
- VUE: "vue",
70
- /** file-loader */
71
- FILE: "file",
72
- /** @svgr/webpack */
73
- SVGR: "svgr",
74
- /** yaml-loader */
75
- YAML: "yaml",
76
- /** toml-loader */
77
- TOML: "toml",
78
- /** html-loader */
79
- HTML: "html",
80
- /** node-loader */
81
- NODE: "html",
82
- /** babel-loader */
83
- BABEL: "babel",
84
- /** esbuild-loader */
85
- ESBUILD: "esbuild",
86
- /** swc-loader */
87
- SWC: "swc",
88
- /** style-loader */
89
- STYLE: "style-loader",
90
- /** postcss-loader */
91
- POSTCSS: "postcss",
92
- /** ignore-css-loader */
93
- IGNORE_CSS: "ignore-css",
94
- /** css-modules-typescript-loader */
95
- CSS_MODULES_TS: "css-modules-typescript",
96
- /** mini-css-extract-plugin.loader */
97
- MINI_CSS_EXTRACT: "mini-css-extract",
98
- /** resolve-url-loader */
99
- RESOLVE_URL_LOADER_FOR_SASS: "resolve-url-loader",
100
- /** builder-plugin-image-compress.loader */
101
- IMAGE_COMPRESS: "image-compress",
102
- /** builder-plugin-image-compress svgo-loader */
103
- SVGO: "svgo",
104
- /** builder-plugin-imagex */
105
- IMAGEX: "imagex",
106
- /** storybook-react-docgen */
107
- REACT_DOCGEN: "react-docgen"
108
- },
109
- /** Predefined plugins */
110
- PLUGIN: {
111
- /** HotModuleReplacementPlugin */
112
- HMR: "hmr",
113
- /** CopyWebpackPlugin */
114
- COPY: "copy",
115
- /** HtmlWebpackPlugin */
116
- HTML: "html",
117
- /** DefinePlugin */
118
- DEFINE: "define",
119
- /** IgnorePlugin */
120
- IGNORE: "ignore",
121
- /** BannerPlugin */
122
- BANNER: "banner",
123
- /** Webpackbar */
124
- PROGRESS: "progress",
125
- /** Inspector */
126
- INSPECTOR: "inspector",
127
- /** AppIconPlugin */
128
- APP_ICON: "app-icon",
129
- /** FaviconUrlPlugin */
130
- FAVICON_URL: "favicon-url",
131
- /** LoadableWebpackPlugin */
132
- LOADABLE: "loadable",
133
- /** WebpackManifestPlugin */
134
- MANIFEST: "webpack-manifest",
135
- /** ForkTsCheckerWebpackPlugin */
136
- TS_CHECKER: "ts-checker",
137
- /** InlineChunkHtmlPlugin */
138
- INLINE_HTML: "inline-html",
139
- /** WebpackBundleAnalyzer */
140
- BUNDLE_ANALYZER: "bundle-analyze",
141
- /** BottomTemplatePlugin */
142
- BOTTOM_TEMPLATE: "bottom-template",
143
- /** HtmlTagsPlugin */
144
- HTML_TAGS: "html-tags",
145
- /** HtmlNoncePlugin */
146
- HTML_NONCE: "html-nonce",
147
- /** HtmlCrossOriginPlugin */
148
- HTML_CROSS_ORIGIN: "html-cross-origin",
149
- /** htmlPreconnectPlugin */
150
- HTML_PRECONNECT: "html-preconnect-plugin",
151
- /** htmlDnsPrefetchPlugin */
152
- HTML_DNS_PREFETCH: "html-dns-prefetch-plugin",
153
- /** htmlPrefetchPlugin */
154
- HTML_PREFETCH: "html-prefetch-plugin",
155
- /** htmlPreloadPlugin */
156
- HTML_PRELOAD: "html-preload-plugin",
157
- /** MiniCssExtractPlugin */
158
- MINI_CSS_EXTRACT: "mini-css-extract",
159
- /** VueLoaderPlugin */
160
- VUE_LOADER_PLUGIN: "vue-loader-plugin",
161
- /** ReactFastRefreshPlugin */
162
- REACT_FAST_REFRESH: "react-fast-refresh",
163
- /** ProvidePlugin for node polyfill */
164
- NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
165
- /** WebpackSRIPlugin */
166
- SUBRESOURCE_INTEGRITY: "subresource-integrity",
167
- /** WebpackAssetsRetryPlugin */
168
- ASSETS_RETRY: "ASSETS_RETRY",
169
- /** AutoSetRootFontSizePlugin */
170
- AUTO_SET_ROOT_SIZE: "auto-set-root-size",
171
- /** HtmlAsyncChunkPlugin */
172
- HTML_ASYNC_CHUNK: "html-async-chunk",
173
- /** SWC_POLYFILL_CHECKER */
174
- SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
175
- /** RouterPlugin */
176
- ROUTER_MANIFEST: "route-plugin"
177
- },
178
- /** Predefined minimizers */
179
- MINIMIZER: {
180
- /** TerserWebpackPlugin */
181
- JS: "js",
182
- /** CssMinimizerWebpackPlugin */
183
- CSS: "css",
184
- /** ESBuildPlugin */
185
- ESBUILD: "js-css",
186
- /** SWCPlugin */
187
- SWC: "swc"
188
- },
189
- /** Predefined resolve plugins */
190
- RESOLVE_PLUGIN: {
191
- /** ModuleScopePlugin */
192
- MODULE_SCOPE: "module-scope",
193
- /** TsConfigPathsPlugin */
194
- TS_CONFIG_PATHS: "ts-config-paths"
195
- }
196
- };
197
- export {
198
- CHAIN_ID
199
- };
@@ -1,200 +0,0 @@
1
- /**
2
- * Don't add anything. will be removed on next version
3
- */
4
- export declare const CHAIN_ID: {
5
- /** Predefined rules */
6
- readonly RULE: {
7
- /** Rule for .mjs */
8
- readonly MJS: "mjs";
9
- /** Rule for predefined loaders */
10
- readonly LOADERS: "loaders";
11
- /** Rule for fonts */
12
- readonly FONT: "font";
13
- /** Rule for images */
14
- readonly IMAGE: "image";
15
- /** Rule for media */
16
- readonly MEDIA: "media";
17
- /** Rule for js */
18
- readonly JS: "js";
19
- /** Rule for data uri encoded javascript */
20
- readonly JS_DATA_URI: "js-data-uri";
21
- /** Rule for ts */
22
- readonly TS: "ts";
23
- /** Rule for css */
24
- readonly CSS: "css";
25
- /** Rule for less */
26
- readonly LESS: "less";
27
- /** Rule for sass */
28
- readonly SASS: "sass";
29
- /** Rule for stylus */
30
- readonly STYLUS: "stylus";
31
- /** Rule for svg */
32
- readonly SVG: "svg";
33
- /** Rule for pug */
34
- readonly PUG: "pug";
35
- /** Rule for Vue */
36
- readonly VUE: "vue";
37
- /** Rule for toml */
38
- readonly TOML: "toml";
39
- /** Rule for yaml */
40
- readonly YAML: "yaml";
41
- /** Rule for wasm */
42
- readonly WASM: "wasm";
43
- /** Rule for node */
44
- readonly NODE: "node";
45
- /** Rule for bff */
46
- readonly JS_BFF_API: "js-bff-api";
47
- };
48
- /** Predefined rule groups */
49
- readonly ONE_OF: {
50
- readonly SVG: "svg";
51
- readonly SVG_URL: "svg-url";
52
- readonly SVG_ASSET: "svg-asset";
53
- readonly SVG_INLINE: "svg-inline";
54
- };
55
- /** Predefined loaders */
56
- readonly USE: {
57
- /** ts-loader */
58
- readonly TS: "ts";
59
- /** css-loader */
60
- readonly CSS: "css";
61
- /** sass-loader */
62
- readonly SASS: "sass";
63
- /** less-loader */
64
- readonly LESS: "less";
65
- /** stylus-loader */
66
- readonly STYLUS: "stylus";
67
- /** url-loader */
68
- readonly URL: "url";
69
- /** pug-loader */
70
- readonly PUG: "pug";
71
- /** vue-loader */
72
- readonly VUE: "vue";
73
- /** file-loader */
74
- readonly FILE: "file";
75
- /** @svgr/webpack */
76
- readonly SVGR: "svgr";
77
- /** yaml-loader */
78
- readonly YAML: "yaml";
79
- /** toml-loader */
80
- readonly TOML: "toml";
81
- /** html-loader */
82
- readonly HTML: "html";
83
- /** node-loader */
84
- readonly NODE: "html";
85
- /** babel-loader */
86
- readonly BABEL: "babel";
87
- /** esbuild-loader */
88
- readonly ESBUILD: "esbuild";
89
- /** swc-loader */
90
- readonly SWC: "swc";
91
- /** style-loader */
92
- readonly STYLE: "style-loader";
93
- /** postcss-loader */
94
- readonly POSTCSS: "postcss";
95
- /** ignore-css-loader */
96
- readonly IGNORE_CSS: "ignore-css";
97
- /** css-modules-typescript-loader */
98
- readonly CSS_MODULES_TS: "css-modules-typescript";
99
- /** mini-css-extract-plugin.loader */
100
- readonly MINI_CSS_EXTRACT: "mini-css-extract";
101
- /** resolve-url-loader */
102
- readonly RESOLVE_URL_LOADER_FOR_SASS: "resolve-url-loader";
103
- /** builder-plugin-image-compress.loader */
104
- readonly IMAGE_COMPRESS: "image-compress";
105
- /** builder-plugin-image-compress svgo-loader */
106
- readonly SVGO: "svgo";
107
- /** builder-plugin-imagex */
108
- readonly IMAGEX: "imagex";
109
- /** storybook-react-docgen */
110
- readonly REACT_DOCGEN: "react-docgen";
111
- };
112
- /** Predefined plugins */
113
- readonly PLUGIN: {
114
- /** HotModuleReplacementPlugin */
115
- readonly HMR: "hmr";
116
- /** CopyWebpackPlugin */
117
- readonly COPY: "copy";
118
- /** HtmlWebpackPlugin */
119
- readonly HTML: "html";
120
- /** DefinePlugin */
121
- readonly DEFINE: "define";
122
- /** IgnorePlugin */
123
- readonly IGNORE: "ignore";
124
- /** BannerPlugin */
125
- readonly BANNER: "banner";
126
- /** Webpackbar */
127
- readonly PROGRESS: "progress";
128
- /** Inspector */
129
- readonly INSPECTOR: "inspector";
130
- /** AppIconPlugin */
131
- readonly APP_ICON: "app-icon";
132
- /** FaviconUrlPlugin */
133
- readonly FAVICON_URL: "favicon-url";
134
- /** LoadableWebpackPlugin */
135
- readonly LOADABLE: "loadable";
136
- /** WebpackManifestPlugin */
137
- readonly MANIFEST: "webpack-manifest";
138
- /** ForkTsCheckerWebpackPlugin */
139
- readonly TS_CHECKER: "ts-checker";
140
- /** InlineChunkHtmlPlugin */
141
- readonly INLINE_HTML: "inline-html";
142
- /** WebpackBundleAnalyzer */
143
- readonly BUNDLE_ANALYZER: "bundle-analyze";
144
- /** BottomTemplatePlugin */
145
- readonly BOTTOM_TEMPLATE: "bottom-template";
146
- /** HtmlTagsPlugin */
147
- readonly HTML_TAGS: "html-tags";
148
- /** HtmlNoncePlugin */
149
- readonly HTML_NONCE: "html-nonce";
150
- /** HtmlCrossOriginPlugin */
151
- readonly HTML_CROSS_ORIGIN: "html-cross-origin";
152
- /** htmlPreconnectPlugin */
153
- readonly HTML_PRECONNECT: "html-preconnect-plugin";
154
- /** htmlDnsPrefetchPlugin */
155
- readonly HTML_DNS_PREFETCH: "html-dns-prefetch-plugin";
156
- /** htmlPrefetchPlugin */
157
- readonly HTML_PREFETCH: "html-prefetch-plugin";
158
- /** htmlPreloadPlugin */
159
- readonly HTML_PRELOAD: "html-preload-plugin";
160
- /** MiniCssExtractPlugin */
161
- readonly MINI_CSS_EXTRACT: "mini-css-extract";
162
- /** VueLoaderPlugin */
163
- readonly VUE_LOADER_PLUGIN: "vue-loader-plugin";
164
- /** ReactFastRefreshPlugin */
165
- readonly REACT_FAST_REFRESH: "react-fast-refresh";
166
- /** ProvidePlugin for node polyfill */
167
- readonly NODE_POLYFILL_PROVIDE: "node-polyfill-provide";
168
- /** WebpackSRIPlugin */
169
- readonly SUBRESOURCE_INTEGRITY: "subresource-integrity";
170
- /** WebpackAssetsRetryPlugin */
171
- readonly ASSETS_RETRY: "ASSETS_RETRY";
172
- /** AutoSetRootFontSizePlugin */
173
- readonly AUTO_SET_ROOT_SIZE: "auto-set-root-size";
174
- /** HtmlAsyncChunkPlugin */
175
- readonly HTML_ASYNC_CHUNK: "html-async-chunk";
176
- /** SWC_POLYFILL_CHECKER */
177
- readonly SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin";
178
- /** RouterPlugin */
179
- readonly ROUTER_MANIFEST: "route-plugin";
180
- };
181
- /** Predefined minimizers */
182
- readonly MINIMIZER: {
183
- /** TerserWebpackPlugin */
184
- readonly JS: "js";
185
- /** CssMinimizerWebpackPlugin */
186
- readonly CSS: "css";
187
- /** ESBuildPlugin */
188
- readonly ESBUILD: "js-css";
189
- /** SWCPlugin */
190
- readonly SWC: "swc";
191
- };
192
- /** Predefined resolve plugins */
193
- readonly RESOLVE_PLUGIN: {
194
- /** ModuleScopePlugin */
195
- readonly MODULE_SCOPE: "module-scope";
196
- /** TsConfigPathsPlugin */
197
- readonly TS_CONFIG_PATHS: "ts-config-paths";
198
- };
199
- };
200
- export type ChainIdentifier = typeof CHAIN_ID;