Skip to content

Commit

Permalink
es5 experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Apr 22, 2019
1 parent 3702992 commit 44b01c9
Show file tree
Hide file tree
Showing 7 changed files with 2,785 additions and 1,857 deletions.
14 changes: 14 additions & 0 deletions .babelrc
@@ -0,0 +1,14 @@
{
"presets": [
[
"@babel/preset-env",
{
"corejs": 2,
"useBuiltIns": "usage",
"targets": {
"ie": 11
}
}
]
]
}
23 changes: 23 additions & 0 deletions config/rollup.es5.config.js
@@ -0,0 +1,23 @@
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import babel from 'rollup-plugin-babel'
import { uglify } from 'rollup-plugin-uglify'
import { minify } from 'uglify-es'

export default {
input: './src/index.js',
output: {
file: 'es5/index.js',
format: 'umd',
name: 'hyperactiv',
sourcemap: true
},
plugins: [
resolve(),
commonjs(),
babel({
exclude: 'node_modules/**'
}),
uglify({}, minify)
]
}
2 changes: 2 additions & 0 deletions es5/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions es5/index.js.map

Large diffs are not rendered by default.

0 comments on commit 44b01c9

Please sign in to comment.