Skip to content

Commit 1a6113f

Browse files
committed
provide Promise polyfill for tests in PhantomJS
1 parent 6730768 commit 1a6113f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
const fullDir = path.join(__dirname, dir)
1111
const entry = path.join(fullDir, 'app.js')
1212
if (fs.statSync(fullDir).isDirectory() && fs.existsSync(entry)) {
13-
entries[dir] = entry
13+
entries[dir] = ['es6-promise/auto', entry]
1414
}
1515

1616
return entries

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"chromedriver": "^2.21.2",
4646
"cross-spawn": "^5.0.1",
4747
"css-loader": "^0.26.1",
48+
"es6-promise": "^4.0.5",
4849
"eslint": "^3.0.1",
4950
"eslint-config-vue": "^2.0.1",
5051
"eslint-plugin-flow-vars": "^0.5.0",

0 commit comments

Comments
 (0)