We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0f94b9 commit a3cd086Copy full SHA for a3cd086
src/index.js
@@ -27,7 +27,17 @@ function prevalPlugin(babel) {
27
28
comments.find(isPrevalComment).value = ' this file was prevaled'
29
30
- const {code: string} = transformFromAst(path.node)
+ const {code: string} = transformFromAst(
31
+ path.node,
32
+ null,
33
+ /* istanbul ignore next (babel 6 vs babel 7 check) */
34
+ /^6\./.test(babel.version)
35
+ ? {}
36
+ : {
37
+ babelrc: false,
38
+ configFile: false,
39
+ },
40
+ )
41
const replacement = getReplacement({string, fileOpts, babel})
42
43
const moduleExports = Object.assign(
0 commit comments