Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
* Fixed babel.config
  • Loading branch information
smwbtech committed Feb 17, 2020
1 parent fb69ea5 commit 2b8326b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- stage: testing
if: branch in (master, dev)
script: # if this is not set, it will run npm run test
- npm i
- npm ci
- npm run test:unit
- npm run build
- npm run lib
Expand Down
8 changes: 7 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ const presets = [
]
];

if (process.env.NODE_ENV === 'production') presets.unshift(['minify']);
if (process.env.NODE_ENV === 'production')
presets.unshift([
'minify',
{
builtIns: false
}
]);

module.exports = {
presets,
Expand Down

0 comments on commit 2b8326b

Please sign in to comment.