mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Don't use polyfill anymore
This commit is contained in:
parent
6de6c0e16b
commit
ac9412b908
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -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/')
|
||||
|
Loading…
Reference in New Issue
Block a user