@modern-js/uni-builder 0.0.0-nightly-20240228170648 → 0.0.0-nightly-20240229170649
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.
|
@@ -50,13 +50,17 @@ const pluginPostcssLegacy = (webBrowserslist) => ({
|
|
|
50
50
|
]
|
|
51
51
|
}) : false
|
|
52
52
|
].filter(Boolean);
|
|
53
|
-
return mergeRsbuildConfig(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
opts
|
|
53
|
+
return mergeRsbuildConfig(
|
|
54
|
+
{
|
|
55
|
+
tools: {
|
|
56
|
+
postcss: (opts) => {
|
|
57
|
+
opts.postcssOptions.plugins.push(...plugins);
|
|
58
|
+
}
|
|
57
59
|
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
+
},
|
|
61
|
+
// user config has higher priority than builtin config
|
|
62
|
+
config
|
|
63
|
+
);
|
|
60
64
|
});
|
|
61
65
|
}
|
|
62
66
|
});
|
|
@@ -21,7 +21,6 @@ __export(ModuleScopePlugin_exports, {
|
|
|
21
21
|
ModuleScopePlugin: () => ModuleScopePlugin
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(ModuleScopePlugin_exports);
|
|
24
|
-
var import_define_property = require("@swc/helpers/_/_define_property");
|
|
25
24
|
var import_path = require("path");
|
|
26
25
|
var import_shared = require("@rsbuild/shared");
|
|
27
26
|
class ModuleScopePlugin {
|
|
@@ -78,12 +77,6 @@ class ModuleScopePlugin {
|
|
|
78
77
|
});
|
|
79
78
|
}
|
|
80
79
|
constructor({ scopes, allowedFiles = [] }) {
|
|
81
|
-
(0, import_define_property._)(this, "scopes", void 0);
|
|
82
|
-
(0, import_define_property._)(this, "allowedFiles", void 0);
|
|
83
|
-
(0, import_define_property._)(this, "allowedDirs", void 0);
|
|
84
|
-
(0, import_define_property._)(this, "allowedPatterns", void 0);
|
|
85
|
-
(0, import_define_property._)(this, "relativeAllowedDirs", void 0);
|
|
86
|
-
(0, import_define_property._)(this, "cache", void 0);
|
|
87
80
|
this.scopes = scopes;
|
|
88
81
|
this.allowedFiles = new Set(allowedFiles);
|
|
89
82
|
this.allowedDirs = scopes.filter(import_shared.isString);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/uni-builder",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240229170649",
|
|
4
4
|
"description": "Unified builder for Modern.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"webpack": "^5.89.0",
|
|
66
66
|
"webpack-manifest-plugin": "5.0.0",
|
|
67
67
|
"webpack-subresource-integrity": "5.1.0",
|
|
68
|
-
"@modern-js/
|
|
69
|
-
"@modern-js/
|
|
70
|
-
"@modern-js/
|
|
68
|
+
"@modern-js/utils": "0.0.0-nightly-20240229170649",
|
|
69
|
+
"@modern-js/server": "0.0.0-nightly-20240229170649",
|
|
70
|
+
"@modern-js/prod-server": "0.0.0-nightly-20240229170649"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@rsbuild/plugin-swc": "0.4.8",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"react": "^18.2.0",
|
|
76
76
|
"react-dom": "^18.2.0",
|
|
77
77
|
"typescript": "^5.3.0",
|
|
78
|
-
"@scripts/
|
|
79
|
-
"@scripts/
|
|
78
|
+
"@scripts/vitest-config": "0.0.0-nightly-20240229170649",
|
|
79
|
+
"@scripts/build": "0.0.0-nightly-20240229170649"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public",
|