This commit is contained in:
Pooya Parsa 2017-06-18 15:29:46 +04:30
parent 5a3aed3bc1
commit c61f40e16d
2 changed files with 7 additions and 8 deletions

View File

@ -44,9 +44,9 @@
}, },
"nyc": { "nyc": {
"exclude": [ "exclude": [
"index.js", "test/**",
"node_mdoules/**/*.js", "node_modules/**",
"test/**/*.js" "index.js"
] ]
}, },
"scripts": { "scripts": {

View File

@ -65,13 +65,8 @@ function genConfig (opts) {
resolve: ['.js', '.json', '.jsx', '.ts'] resolve: ['.js', '.json', '.jsx', '.ts']
}, aliases, opts.alias)), }, aliases, opts.alias)),
rollupNodeResolve({ main: true, jsnext: true }),
rollupCommonJS(),
rollupBabel(Object.assign({ rollupBabel(Object.assign({
exclude: 'node_modules/**', exclude: 'node_modules/**',
runtimeHelpers: true,
plugins: [ plugins: [
['transform-runtime', { 'helpers': false, 'polyfill': false }], ['transform-runtime', { 'helpers': false, 'polyfill': false }],
'transform-async-to-generator', 'transform-async-to-generator',
@ -82,6 +77,10 @@ function genConfig (opts) {
] ]
}, opts.babel)), }, opts.babel)),
rollupNodeResolve({ main: true, jsnext: true }),
rollupCommonJS(),
rollupReplace({ rollupReplace({
__VERSION__: version __VERSION__: version
}) })