win compat

This commit is contained in:
Michael Bradley, Jr 2018-07-30 15:36:05 -05:00 committed by Iuri Matias
parent 314edadb57
commit d0555fe23c

View File

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