Merge branch 'tapable' of github.com:Atinux/nuxt.js into tapable

This commit is contained in:
Sébastien Chopin 2017-06-18 13:36:34 +02:00
commit 7be51b410a
2 changed files with 8 additions and 9 deletions

View File

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

View File

@ -4,7 +4,7 @@ const rollupBabel = require('rollup-plugin-babel')
const rollupAlias = require('rollup-plugin-alias')
const rollupCommonJS = require('rollup-plugin-commonjs')
const rollupReplace = require('rollup-plugin-replace')
const rollupResolve = require('rollup-plugin-node-resolve')
const rollupNodeResolve = require('rollup-plugin-node-resolve')
const packageJson = require('./package.json')
const dependencies = Object.keys(packageJson.dependencies)
@ -65,13 +65,8 @@ function genConfig (opts) {
resolve: ['.js', '.json', '.jsx', '.ts']
}, aliases, opts.alias)),
rollupCommonJS(),
rollupResolve({ jsnext: true }),
rollupBabel(Object.assign({
exclude: 'node_modules/**',
runtimeHelpers: true,
plugins: [
['transform-runtime', { 'helpers': false, 'polyfill': false }],
'transform-async-to-generator',
@ -82,6 +77,10 @@ function genConfig (opts) {
]
}, opts.babel)),
rollupNodeResolve({ main: true, jsnext: true }),
rollupCommonJS(),
rollupReplace({
__VERSION__: version
})