Commit 23c4114 1 parent be3a4f5 commit 23c4114 Copy full SHA for 23c4114
File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 14
14
},
15
15
"devDependencies" : {
16
16
"@vitejs/plugin-react-refresh" : " ^1.3.1"
17
+ },
18
+ "babel" : {
19
+ "presets" : [
20
+ " @babel/preset-env"
21
+ ]
17
22
}
18
23
}
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ function reactRefreshPlugin(opts) {
102
102
103
103
const isReasonReact = id . endsWith ( '.bs.js' )
104
104
const result = transformSync ( code , {
105
+ babelrc : false ,
105
106
configFile : false ,
106
107
filename : id ,
107
108
parserOpts : {
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ function vueJsxPlugin(options = {}) {
82
82
}
83
83
84
84
const result = babel . transformSync ( code , {
85
+ babelrc : false ,
85
86
ast : true ,
86
87
plugins,
87
88
sourceMaps : needSourceMap ,
You can’t perform that action at this time.
0 commit comments