@anaemia/bundler 0.3.4 → 0.3.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.d.ts.map +1 -1
- package/dist/index.js +2 -10
- package/package.json +2 -2
- package/src/index.ts +2 -10
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAqB1D,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,aAAkB,GAAG,OAAO,CAAC,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAqB1D,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,aAAkB,GAAG,OAAO,CAAC,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,CAwI1H;AAED,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -99,11 +99,7 @@ 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: /[\\/]node_modules[\\/]/,
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
...createBabelRule({ isServer: false, isDev, plugins: [clientServerFnTransform, ...(isDev ? [solidRefreshPlugin] : []), ...extraClientBabelPlugins] }),
|
|
106
|
-
include: /[\\/]node_modules[\\/]@solidjs[\\/]router/,
|
|
102
|
+
exclude: /[\\/]node_modules[\\/](?!@anaemia[\\/]core|@solidjs[\\/]router)/,
|
|
107
103
|
},
|
|
108
104
|
],
|
|
109
105
|
},
|
|
@@ -135,11 +131,7 @@ export async function getRspackConfig(appRoot, config = {}) {
|
|
|
135
131
|
styleRules.server,
|
|
136
132
|
{
|
|
137
133
|
...createBabelRule({ isServer: true, isDev, plugins: [serverHashInjector, ...extraServerBabelPlugins] }),
|
|
138
|
-
exclude: /[\\/]node_modules[\\/]/,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
...createBabelRule({ isServer: true, isDev, plugins: [...extraServerBabelPlugins] }),
|
|
142
|
-
include: /[\\/]node_modules[\\/]@solidjs[\\/]router/,
|
|
134
|
+
exclude: /[\\/]node_modules[\\/](?!@anaemia[\\/]core|@solidjs[\\/]router)/,
|
|
143
135
|
},
|
|
144
136
|
],
|
|
145
137
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anaemia/bundler",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
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.5",
|
|
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,7 @@ 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: /[\\/]node_modules[\\/]/,
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
...createBabelRule({ isServer: false, isDev, plugins: [clientServerFnTransform, ...(isDev ? [solidRefreshPlugin] : []), ...extraClientBabelPlugins] }),
|
|
120
|
-
include: /[\\/]node_modules[\\/]@solidjs[\\/]router/,
|
|
116
|
+
exclude: /[\\/]node_modules[\\/](?!@anaemia[\\/]core|@solidjs[\\/]router)/,
|
|
121
117
|
},
|
|
122
118
|
],
|
|
123
119
|
},
|
|
@@ -150,11 +146,7 @@ export async function getRspackConfig(appRoot: string, config: AnaemiaConfig = {
|
|
|
150
146
|
styleRules.server,
|
|
151
147
|
{
|
|
152
148
|
...createBabelRule({ isServer: true, isDev, plugins: [serverHashInjector, ...extraServerBabelPlugins] }),
|
|
153
|
-
exclude: /[\\/]node_modules[\\/]/,
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
...createBabelRule({ isServer: true, isDev, plugins: [...extraServerBabelPlugins] }),
|
|
157
|
-
include: /[\\/]node_modules[\\/]@solidjs[\\/]router/,
|
|
149
|
+
exclude: /[\\/]node_modules[\\/](?!@anaemia[\\/]core|@solidjs[\\/]router)/,
|
|
158
150
|
},
|
|
159
151
|
],
|
|
160
152
|
},
|