@next-core/build-next-bricks 1.23.14 → 1.24.0
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/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/build.js +11 -6
package/index.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export interface BuildNextBricksConfig {
|
|
|
89
89
|
imageAssetFilename?: string | ((pathData: any, assetInfo: any) => string);
|
|
90
90
|
plugins?: Configuration["plugins"];
|
|
91
91
|
moduleRules?: RuleSetRule[];
|
|
92
|
+
oneOfRulesForBabel?: RuleSetRule[];
|
|
92
93
|
resolve?: ResolveOptions;
|
|
93
94
|
exposes?: ConstructorParameters<
|
|
94
95
|
typeof container.ModuleFederationPlugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-core/build-next-bricks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "Build next bricks",
|
|
5
5
|
"homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/build-next-bricks",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@next-shared/common-bricks": "*"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "85a05ea25da9ed3b2ba4d64ffc6188ac7c8fb084"
|
|
65
65
|
}
|
package/src/build.js
CHANGED
|
@@ -358,12 +358,17 @@ async function getWebpackConfig(config) {
|
|
|
358
358
|
],
|
|
359
359
|
},
|
|
360
360
|
{
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
361
|
+
oneOf: [
|
|
362
|
+
...(config.oneOfRulesForBabel ?? []),
|
|
363
|
+
{
|
|
364
|
+
test: /\.[tj]sx?$/,
|
|
365
|
+
loader: "babel-loader",
|
|
366
|
+
exclude: /node_modules|\.d\.ts$/,
|
|
367
|
+
options: {
|
|
368
|
+
rootMode: "upward",
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
],
|
|
367
372
|
},
|
|
368
373
|
{
|
|
369
374
|
// Images
|