Skip to content

Commit

Permalink
fix: ignore babelrc (#2766)
Browse files Browse the repository at this point in the history
fix #2722
  • Loading branch information
underfin committed Mar 31, 2021
1 parent be3a4f5 commit 23c4114
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/playground/react/package.json
Expand Up @@ -14,5 +14,10 @@
},
"devDependencies": {
"@vitejs/plugin-react-refresh": "^1.3.1"
},
"babel": {
"presets": [
"@babel/preset-env"
]
}
}
1 change: 1 addition & 0 deletions packages/plugin-react-refresh/index.js
Expand Up @@ -102,6 +102,7 @@ function reactRefreshPlugin(opts) {

const isReasonReact = id.endsWith('.bs.js')
const result = transformSync(code, {
babelrc: false,
configFile: false,
filename: id,
parserOpts: {
Expand Down
1 change: 1 addition & 0 deletions packages/plugin-vue-jsx/index.js
Expand Up @@ -82,6 +82,7 @@ function vueJsxPlugin(options = {}) {
}

const result = babel.transformSync(code, {
babelrc: false,
ast: true,
plugins,
sourceMaps: needSourceMap,
Expand Down

0 comments on commit 23c4114

Please sign in to comment.