@rsbuild/plugin-preact 1.0.1-beta.3 → 1.0.1-beta.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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -29,7 +29,7 @@ var pluginPreact = (options = {}) => ({
|
|
|
29
29
|
name: PLUGIN_PREACT_NAME,
|
|
30
30
|
setup(api) {
|
|
31
31
|
const { reactAliasesEnabled = true } = options;
|
|
32
|
-
api.
|
|
32
|
+
api.modifyEnvironmentConfig((userConfig, { mergeEnvironmentConfig }) => {
|
|
33
33
|
const reactOptions = {
|
|
34
34
|
development: process.env.NODE_ENV === "development",
|
|
35
35
|
runtime: "automatic",
|
|
@@ -60,7 +60,7 @@ var pluginPreact = (options = {}) => ({
|
|
|
60
60
|
"react/jsx-runtime": "preact/jsx-runtime"
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
return
|
|
63
|
+
return mergeEnvironmentConfig(extraConfig, userConfig);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
});
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire } from 'module';
|
|
|
2
2
|
var require = createRequire(import.meta['url']);
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.
|
|
5
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.56.0_typescript@5.5.2/node_modules/@modern-js/module-tools/shims/esm.js
|
|
6
6
|
import { fileURLToPath } from "url";
|
|
7
7
|
import path from "path";
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ var pluginPreact = (options = {}) => ({
|
|
|
12
12
|
name: PLUGIN_PREACT_NAME,
|
|
13
13
|
setup(api) {
|
|
14
14
|
const { reactAliasesEnabled = true } = options;
|
|
15
|
-
api.
|
|
15
|
+
api.modifyEnvironmentConfig((userConfig, { mergeEnvironmentConfig }) => {
|
|
16
16
|
const reactOptions = {
|
|
17
17
|
development: process.env.NODE_ENV === "development",
|
|
18
18
|
runtime: "automatic",
|
|
@@ -43,7 +43,7 @@ var pluginPreact = (options = {}) => ({
|
|
|
43
43
|
"react/jsx-runtime": "preact/jsx-runtime"
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
return
|
|
46
|
+
return mergeEnvironmentConfig(extraConfig, userConfig);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-preact",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.5",
|
|
4
4
|
"description": "Preact plugin for Rsbuild",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "18.x",
|
|
26
26
|
"typescript": "^5.5.2",
|
|
27
|
-
"@rsbuild/core": "1.0.1-beta.
|
|
27
|
+
"@rsbuild/core": "1.0.1-beta.5"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@rsbuild/core": "^1.0.1-beta.0"
|