Skip to content

Commit

Permalink
fix(builder): babel addIncludes & addExcludes not take effect (#4830)
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored and Asuka109 committed Oct 22, 2023
1 parent ffcc350 commit d12c00f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/spicy-trains-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@modern-js/builder-webpack-provider': patch
---

fix(builder): babel addIncludes & addExcludes not take effect

fix(builder): babel addIncludes & addExcludes 方法不生效
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const builderPluginBabel = (): BuilderPlugin => ({
config.tools.babel,
{
...getBabelUtils(baseBabelConfig),
babelUtils,
...babelUtils,
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,9 @@ exports[`plugins/babel > should set include/exclude 1`] = `
"module": {
"rules": [
{
"exclude": [
"src/**/*.js",
],
"include": [
{
"and": [
Expand All @@ -883,6 +886,7 @@ exports[`plugins/babel > should set include/exclude 1`] = `
},
],
},
"src/**/*.ts",
],
"test": /\\\\\\.\\(js\\|mjs\\|cjs\\|jsx\\)\\$\\|\\\\\\.\\(ts\\|mts\\|cts\\|tsx\\)\\$/,
"use": [
Expand Down

0 comments on commit d12c00f

Please sign in to comment.