@bleedingdev/modern-js-builder 3.8.2-ultramodern.9 → 3.8.3-ultramodern.1
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.
- package/dist/cjs/plugins/rspack21.js +1 -5
- package/dist/cjs/shared/parseCommonConfig.js +2 -2
- package/dist/esm/plugins/rspack21.mjs +1 -5
- package/dist/esm/shared/parseCommonConfig.mjs +2 -2
- package/dist/esm-node/plugins/rspack21.mjs +1 -5
- package/dist/esm-node/shared/parseCommonConfig.mjs +2 -2
- package/package.json +4 -4
|
@@ -28,7 +28,6 @@ var __webpack_require__ = {};
|
|
|
28
28
|
var __webpack_exports__ = {};
|
|
29
29
|
__webpack_require__.r(__webpack_exports__);
|
|
30
30
|
const PERSISTENT_CACHE_MAX_AGE = 604800;
|
|
31
|
-
const PERSISTENT_CACHE_MAX_VERSIONS = 3;
|
|
32
31
|
const pluginRspack21 = ({ sourceImport } = {})=>({
|
|
33
32
|
name: 'modern-js:rspack-2-1-defaults',
|
|
34
33
|
setup (api) {
|
|
@@ -37,10 +36,7 @@ const pluginRspack21 = ({ sourceImport } = {})=>({
|
|
|
37
36
|
config.module.parser ??= {};
|
|
38
37
|
config.module.parser.javascript ??= {};
|
|
39
38
|
config.module.parser.javascript.createRequire ??= true;
|
|
40
|
-
if ('object' == typeof config.cache && null !== config.cache && 'persistent' === config.cache.type)
|
|
41
|
-
config.cache.maxAge ??= PERSISTENT_CACHE_MAX_AGE;
|
|
42
|
-
config.cache.maxVersions ??= PERSISTENT_CACHE_MAX_VERSIONS;
|
|
43
|
-
}
|
|
39
|
+
if ('object' == typeof config.cache && null !== config.cache && 'persistent' === config.cache.type) config.cache.maxAge ??= PERSISTENT_CACHE_MAX_AGE;
|
|
44
40
|
if (void 0 !== sourceImport) {
|
|
45
41
|
config.experiments ??= {};
|
|
46
42
|
config.experiments.sourceImport = sourceImport;
|
|
@@ -191,8 +191,8 @@ async function parseCommonConfig(builderConfig, options) {
|
|
|
191
191
|
const { pluginSourceBuild } = await import("@rsbuild/plugin-source-build");
|
|
192
192
|
rsbuildPlugins.push(pluginSourceBuild(true === sourceBuild ? {} : sourceBuild));
|
|
193
193
|
}
|
|
194
|
-
rsbuildPlugins.push((0, plugin_react_namespaceObject.pluginReact)(options?.disableReactCompiler ? {} : {
|
|
195
|
-
reactCompiler
|
|
194
|
+
rsbuildPlugins.push((0, plugin_react_namespaceObject.pluginReact)(options?.disableReactCompiler || void 0 === reactCompiler ? {} : {
|
|
195
|
+
reactCompiler
|
|
196
196
|
}));
|
|
197
197
|
if (!disableSvgr) {
|
|
198
198
|
const { pluginSvgr } = await import("@rsbuild/plugin-svgr");
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const PERSISTENT_CACHE_MAX_AGE = 604800;
|
|
2
|
-
const PERSISTENT_CACHE_MAX_VERSIONS = 3;
|
|
3
2
|
const pluginRspack21 = ({ sourceImport } = {})=>({
|
|
4
3
|
name: 'modern-js:rspack-2-1-defaults',
|
|
5
4
|
setup (api) {
|
|
@@ -8,10 +7,7 @@ const pluginRspack21 = ({ sourceImport } = {})=>({
|
|
|
8
7
|
config.module.parser ??= {};
|
|
9
8
|
config.module.parser.javascript ??= {};
|
|
10
9
|
config.module.parser.javascript.createRequire ??= true;
|
|
11
|
-
if ('object' == typeof config.cache && null !== config.cache && 'persistent' === config.cache.type)
|
|
12
|
-
config.cache.maxAge ??= PERSISTENT_CACHE_MAX_AGE;
|
|
13
|
-
config.cache.maxVersions ??= PERSISTENT_CACHE_MAX_VERSIONS;
|
|
14
|
-
}
|
|
10
|
+
if ('object' == typeof config.cache && null !== config.cache && 'persistent' === config.cache.type) config.cache.maxAge ??= PERSISTENT_CACHE_MAX_AGE;
|
|
15
11
|
if (void 0 !== sourceImport) {
|
|
16
12
|
config.experiments ??= {};
|
|
17
13
|
config.experiments.sourceImport = sourceImport;
|
|
@@ -158,8 +158,8 @@ async function parseCommonConfig(builderConfig, options) {
|
|
|
158
158
|
const { pluginSourceBuild } = await import("@rsbuild/plugin-source-build");
|
|
159
159
|
rsbuildPlugins.push(pluginSourceBuild(true === sourceBuild ? {} : sourceBuild));
|
|
160
160
|
}
|
|
161
|
-
rsbuildPlugins.push(pluginReact(options?.disableReactCompiler ? {} : {
|
|
162
|
-
reactCompiler
|
|
161
|
+
rsbuildPlugins.push(pluginReact(options?.disableReactCompiler || void 0 === reactCompiler ? {} : {
|
|
162
|
+
reactCompiler
|
|
163
163
|
}));
|
|
164
164
|
if (!disableSvgr) {
|
|
165
165
|
const { pluginSvgr } = await import("@rsbuild/plugin-svgr");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "node:module";
|
|
2
2
|
const PERSISTENT_CACHE_MAX_AGE = 604800;
|
|
3
|
-
const PERSISTENT_CACHE_MAX_VERSIONS = 3;
|
|
4
3
|
const pluginRspack21 = ({ sourceImport } = {})=>({
|
|
5
4
|
name: 'modern-js:rspack-2-1-defaults',
|
|
6
5
|
setup (api) {
|
|
@@ -9,10 +8,7 @@ const pluginRspack21 = ({ sourceImport } = {})=>({
|
|
|
9
8
|
config.module.parser ??= {};
|
|
10
9
|
config.module.parser.javascript ??= {};
|
|
11
10
|
config.module.parser.javascript.createRequire ??= true;
|
|
12
|
-
if ('object' == typeof config.cache && null !== config.cache && 'persistent' === config.cache.type)
|
|
13
|
-
config.cache.maxAge ??= PERSISTENT_CACHE_MAX_AGE;
|
|
14
|
-
config.cache.maxVersions ??= PERSISTENT_CACHE_MAX_VERSIONS;
|
|
15
|
-
}
|
|
11
|
+
if ('object' == typeof config.cache && null !== config.cache && 'persistent' === config.cache.type) config.cache.maxAge ??= PERSISTENT_CACHE_MAX_AGE;
|
|
16
12
|
if (void 0 !== sourceImport) {
|
|
17
13
|
config.experiments ??= {};
|
|
18
14
|
config.experiments.sourceImport = sourceImport;
|
|
@@ -159,8 +159,8 @@ async function parseCommonConfig(builderConfig, options) {
|
|
|
159
159
|
const { pluginSourceBuild } = await import("@rsbuild/plugin-source-build");
|
|
160
160
|
rsbuildPlugins.push(pluginSourceBuild(true === sourceBuild ? {} : sourceBuild));
|
|
161
161
|
}
|
|
162
|
-
rsbuildPlugins.push(pluginReact(options?.disableReactCompiler ? {} : {
|
|
163
|
-
reactCompiler
|
|
162
|
+
rsbuildPlugins.push(pluginReact(options?.disableReactCompiler || void 0 === reactCompiler ? {} : {
|
|
163
|
+
reactCompiler
|
|
164
164
|
}));
|
|
165
165
|
if (!disableSvgr) {
|
|
166
166
|
const { pluginSvgr } = await import("@rsbuild/plugin-svgr");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bleedingdev/modern-js-builder",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.3-ultramodern.1",
|
|
4
4
|
"description": "A builder for Modern.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.8.
|
|
30
|
-
"@rsbuild/core": "2.2.0
|
|
29
|
+
"@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.8.3-ultramodern.1",
|
|
30
|
+
"@rsbuild/core": "2.2.0",
|
|
31
31
|
"@rsbuild/plugin-assets-retry": "2.0.2",
|
|
32
32
|
"@rsbuild/plugin-check-syntax": "2.0.1",
|
|
33
33
|
"@rsbuild/plugin-css-minimizer": "2.0.1",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"ts-deepmerge": "8.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.8.
|
|
64
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.8.3-ultramodern.1",
|
|
65
65
|
"@rslib/core": "0.23.2",
|
|
66
66
|
"@scripts/rstest-config": "2.66.0",
|
|
67
67
|
"@types/html-minifier-terser": "^7.0.2",
|