Skip to content

Commit

Permalink
use .babelrc.js, compile bundled/non-bundled with loose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Sep 16, 2017
1 parent 0705ee8 commit 824901a
Show file tree
Hide file tree
Showing 5 changed files with 1,744 additions and 743 deletions.
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

15 changes: 15 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
"presets": [
[
"env",
{
"loose": true,
"modules": false
}
]
],
plugins: [
process.env.ROLLUP && 'external-helpers',
process.env.PLUGINS && 'transform-es2015-modules-strip',
].filter(Boolean)
};
5 changes: 1 addition & 4 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ const plugins = [
exclude: 'node_modules/**', // only transpile our source code
externalHelpersWhitelist: [ // include only required helpers
'typeof',
'classCallCheck',
'createClass',
'inherits',
'possibleConstructorReturn'
'inheritsLoose'
]
})
]
Expand Down
Loading

0 comments on commit 824901a

Please sign in to comment.