fix: fix flow type declaration (#17049)

* fix: fix flow type declaration

* chore: fix prettier
This commit is contained in:
Justin Starry
2021-05-05 17:50:55 +08:00
committed by GitHub
parent 34599ad57d
commit a8f84a5622
5 changed files with 22148 additions and 96 deletions

View File

@ -30,8 +30,11 @@ function generateConfig(configType, format) {
plugins: bundle ? [] : ['@babel/plugin-transform-runtime'],
}),
replace({
'process.env.NODE_ENV': JSON.stringify(env),
'process.env.BROWSER': JSON.stringify(browser),
preventAssignment: true,
values: {
'process.env.NODE_ENV': JSON.stringify(env),
'process.env.BROWSER': JSON.stringify(browser),
},
}),
],
onwarn: function (warning, rollupWarn) {