Skip to content

Commit

Permalink
remove modern mode babel target change
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed May 27, 2020
1 parent e6e85d0 commit df9b13a
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions babel.config.js
@@ -1,19 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const vueCliPreset = require('@vue/cli-plugin-babel/preset')

module.exports = api => {
api.cache.using(() => process.env.VUE_CLI_MODERN_BUILD)
api.cache.using(() => process.env.NODE_ENV)

const isModern = process.env.VUE_CLI_MODERN_BUILD === 'true'

if (isModern) {
delete process.env.VUE_CLI_MODERN_BUILD
}
const config = vueCliPreset(api)
if (isModern) {
process.env.VUE_CLI_MODERN_BUILD = 'true'
}

return config
module.exports = {
presets: ['@vue/cli-plugin-babel/preset']
}

0 comments on commit df9b13a

Please sign in to comment.