Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix(demo): Provide Promise poylfill via ProvidePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Feb 28, 2018
1 parent 5cf20d4 commit 47661c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demo/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './polyfills.js'
// import './polyfills.js'

import Vue from 'vue'
import router from './router/'
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ module.exports = {
extensions: ['.js', '.json', '.css', '.scss', '.vue']
},
plugins: [
new webpack.ProvidePlugin({
Promise: 'core-js/fn/promise'
}),
new CleanWebpackPlugin(['public']),
new webpack.optimize.CommonsChunkPlugin({
name: 'app',
Expand Down

0 comments on commit 47661c3

Please sign in to comment.