Don't use polyfill anymore

This commit is contained in:
Sébastien Chopin 2017-01-11 22:18:47 +01:00
parent 6de6c0e16b
commit ac9412b908
4 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,5 @@
'use strict'
require('es6-object-assign').polyfill()
import 'es6-promise/auto'
import Vue from 'vue'
import { app, router<%= (store ? ', store' : '') %> } from './index'
import { getMatchedComponents, getMatchedComponentsInstances, flatMapComponents, getContext, promisify, getLocation, compile } from './utils'

View File

@ -1,6 +1,5 @@
'use strict'
require('es6-object-assign').polyfill()
import Vue from 'vue'
import Meta from 'vue-meta'
import router from './router.js'

View File

@ -289,7 +289,7 @@ function createWebpackMiddlewares () {
clientConfig.entry.app = _.flatten(['webpack-hot-middleware/client?reload=true', clientConfig.entry.app])
clientConfig.plugins.push(
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
new webpack.NoEmitOnErrorsPlugin()
)
const clientCompiler = webpack(clientConfig)
// Add the middlewares to the instance context

View File

@ -18,7 +18,7 @@ export default function ({ isClient, isServer }) {
let config = {
devtool: 'source-map',
entry: {
vendor: ['vue', 'vue-router', 'vue-meta', 'es6-promise', 'es6-object-assign']
vendor: ['vue', 'vue-router', 'vue-meta']
},
output: {
publicPath: urlJoin(this.options.router.base, '/_nuxt/')