diff --git a/lib/pipeline/webpackProcess.js b/lib/pipeline/webpackProcess.js index 916fdb61..f9758c50 100644 --- a/lib/pipeline/webpackProcess.js +++ b/lib/pipeline/webpackProcess.js @@ -43,7 +43,7 @@ class WebpackProcess extends ProcessWrapper { webpackRun(filename, options, includeModules, importsList, detectErrors, realCwd, callback) { const self = this; - glob(fs.dappPath('.embark/versions') + '/*/*', (err, files) => { + glob(fs.dappPath('.embark/versions/*/*'), (err, files) => { let versions; if (err) { console.error(err); @@ -110,7 +110,7 @@ class WebpackProcess extends ProcessWrapper { { test: /\.js$/, loader: "babel-loader", - exclude: /(node_modules|bower_components|\.embark\/versions)/, + exclude: /(node_modules|bower_components|\.embark[\\/]versions)/, options: { presets: [ [