Skip to content

Commit

Permalink
Ensure untranspiled node 4+ compat for the v2 webpack plugin. (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick authored Nov 1, 2017
1 parent 0d07c57 commit 7ecec75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/workbox-webpack-plugin/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const swBuild = require('workbox-build');
const path = require('path');
const url = require('url');
Expand Down Expand Up @@ -63,7 +65,7 @@ class WorkboxBuildWebpackPlugin {
}

if (compilation.options.output.publicPath) {
const {publicPath} = compilation.options.output;
const publicPath = compilation.options.output.publicPath;
const compiledAssets = [];
for (let key in compilation.assets) {
if (Object.prototype.hasOwnProperty.call(compilation.assets, key)) {
Expand Down

0 comments on commit 7ecec75

Please sign in to comment.