@anaemia/bundler 0.3.4 → 0.3.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.
- package/dist/index.js +14 -10
- package/package.json +2 -2
- package/src/index.ts +10 -10
package/dist/index.js
CHANGED
|
@@ -99,11 +99,13 @@ export async function getRspackConfig(appRoot, config = {}) {
|
|
|
99
99
|
styleRules.client,
|
|
100
100
|
{
|
|
101
101
|
...createBabelRule({ isServer: false, isDev, plugins: [clientServerFnTransform, ...(isDev ? [solidRefreshPlugin] : []), ...extraClientBabelPlugins] }),
|
|
102
|
-
exclude:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
exclude: (modulePath) => {
|
|
103
|
+
if (modulePath.includes("@anaemia") && modulePath.includes("core"))
|
|
104
|
+
return false;
|
|
105
|
+
if (modulePath.includes("@solidjs") && modulePath.includes("router"))
|
|
106
|
+
return false;
|
|
107
|
+
return modulePath.includes("node_modules");
|
|
108
|
+
},
|
|
107
109
|
},
|
|
108
110
|
],
|
|
109
111
|
},
|
|
@@ -135,11 +137,13 @@ export async function getRspackConfig(appRoot, config = {}) {
|
|
|
135
137
|
styleRules.server,
|
|
136
138
|
{
|
|
137
139
|
...createBabelRule({ isServer: true, isDev, plugins: [serverHashInjector, ...extraServerBabelPlugins] }),
|
|
138
|
-
exclude:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
exclude: (modulePath) => {
|
|
141
|
+
if (modulePath.includes("@anaemia") && modulePath.includes("core"))
|
|
142
|
+
return false;
|
|
143
|
+
if (modulePath.includes("@solidjs") && modulePath.includes("router"))
|
|
144
|
+
return false;
|
|
145
|
+
return modulePath.includes("node_modules");
|
|
146
|
+
},
|
|
143
147
|
},
|
|
144
148
|
],
|
|
145
149
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anaemia/bundler",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@anaemia/core": "^0.3.
|
|
14
|
+
"@anaemia/core": "^0.3.6",
|
|
15
15
|
"@babel/core": "^7.29.7",
|
|
16
16
|
"@babel/preset-typescript": "^7.29.7",
|
|
17
17
|
"@rspack/core": "^2.0.5",
|
package/src/index.ts
CHANGED
|
@@ -113,11 +113,11 @@ export async function getRspackConfig(appRoot: string, config: AnaemiaConfig = {
|
|
|
113
113
|
styleRules.client,
|
|
114
114
|
{
|
|
115
115
|
...createBabelRule({ isServer: false, isDev, plugins: [clientServerFnTransform, ...(isDev ? [solidRefreshPlugin] : []), ...extraClientBabelPlugins] }),
|
|
116
|
-
exclude:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
exclude: (modulePath: string) => {
|
|
117
|
+
if (modulePath.includes("@anaemia") && modulePath.includes("core")) return false;
|
|
118
|
+
if (modulePath.includes("@solidjs") && modulePath.includes("router")) return false;
|
|
119
|
+
return modulePath.includes("node_modules");
|
|
120
|
+
},
|
|
121
121
|
},
|
|
122
122
|
],
|
|
123
123
|
},
|
|
@@ -150,11 +150,11 @@ export async function getRspackConfig(appRoot: string, config: AnaemiaConfig = {
|
|
|
150
150
|
styleRules.server,
|
|
151
151
|
{
|
|
152
152
|
...createBabelRule({ isServer: true, isDev, plugins: [serverHashInjector, ...extraServerBabelPlugins] }),
|
|
153
|
-
exclude:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
exclude: (modulePath: string) => {
|
|
154
|
+
if (modulePath.includes("@anaemia") && modulePath.includes("core")) return false;
|
|
155
|
+
if (modulePath.includes("@solidjs") && modulePath.includes("router")) return false;
|
|
156
|
+
return modulePath.includes("node_modules");
|
|
157
|
+
},
|
|
158
158
|
},
|
|
159
159
|
],
|
|
160
160
|
},
|