Skip to content

Commit 23c4114

Browse files
authored
fix: ignore babelrc (#2766)
fix #2722
1 parent be3a4f5 commit 23c4114

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

packages/playground/react/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@
1414
},
1515
"devDependencies": {
1616
"@vitejs/plugin-react-refresh": "^1.3.1"
17+
},
18+
"babel": {
19+
"presets": [
20+
"@babel/preset-env"
21+
]
1722
}
1823
}

packages/plugin-react-refresh/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function reactRefreshPlugin(opts) {
102102

103103
const isReasonReact = id.endsWith('.bs.js')
104104
const result = transformSync(code, {
105+
babelrc: false,
105106
configFile: false,
106107
filename: id,
107108
parserOpts: {

packages/plugin-vue-jsx/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function vueJsxPlugin(options = {}) {
8282
}
8383

8484
const result = babel.transformSync(code, {
85+
babelrc: false,
8586
ast: true,
8687
plugins,
8788
sourceMaps: needSourceMap,

0 commit comments

Comments
 (0)