forked from bcgov/queue-management
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added proper, working babel.config.js to project
Inadvertently a non-functioning, test version of the babel config file was committed with the last PR. Commiting the real version with this.
- Loading branch information
1 parent
0ac61ee
commit 58c7cae
Showing
3 changed files
with
63 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
module.exports = function(api) { | ||
api.cache.using( () => process.env.NODE_ENV !== 'test') | ||
const isTest = api.env('test') | ||
if (isTest) { | ||
if (api.env('test')) { | ||
return { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
useBuiltIns: "usage", | ||
corejs: "3", | ||
targets: { | ||
ie: "11" | ||
} | ||
}, | ||
browsers: [ | ||
'last 10 Chrome versions' | ||
] | ||
}, | ||
useBuiltIns: 'usage', | ||
corejs: 3, | ||
} | ||
] | ||
], | ||
] | ||
} | ||
} | ||
return { | ||
presets: [ | ||
'@vue/app', | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
useBuiltIns: "usage", | ||
corejs: "3", | ||
targets: { | ||
ie: "11" | ||
} | ||
}, | ||
] | ||
] | ||
'@babel/preset-env', | ||
{ | ||
modules: false, | ||
targets: { | ||
browsers: ['> 1%','last 2 versions', 'not ie <= 10'], | ||
}, | ||
useBuiltIns: 'usage', | ||
corejs: 3, | ||
} | ||
], | ||
], | ||
|
||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters