mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
Merge branch 'tapable' of github.com:Atinux/nuxt.js into tapable
This commit is contained in:
commit
7be51b410a
@ -44,9 +44,9 @@
|
|||||||
},
|
},
|
||||||
"nyc": {
|
"nyc": {
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"index.js",
|
"test/**",
|
||||||
"node_mdoules/**/*.js",
|
"node_modules/**",
|
||||||
"test/**/*.js"
|
"index.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -4,7 +4,7 @@ const rollupBabel = require('rollup-plugin-babel')
|
|||||||
const rollupAlias = require('rollup-plugin-alias')
|
const rollupAlias = require('rollup-plugin-alias')
|
||||||
const rollupCommonJS = require('rollup-plugin-commonjs')
|
const rollupCommonJS = require('rollup-plugin-commonjs')
|
||||||
const rollupReplace = require('rollup-plugin-replace')
|
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 packageJson = require('./package.json')
|
||||||
|
|
||||||
const dependencies = Object.keys(packageJson.dependencies)
|
const dependencies = Object.keys(packageJson.dependencies)
|
||||||
@ -65,13 +65,8 @@ function genConfig (opts) {
|
|||||||
resolve: ['.js', '.json', '.jsx', '.ts']
|
resolve: ['.js', '.json', '.jsx', '.ts']
|
||||||
}, aliases, opts.alias)),
|
}, aliases, opts.alias)),
|
||||||
|
|
||||||
rollupCommonJS(),
|
|
||||||
|
|
||||||
rollupResolve({ jsnext: true }),
|
|
||||||
|
|
||||||
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
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user