Skip to content

Commit

Permalink
fix: Issue with new version of babel (#191) (#193)
Browse files Browse the repository at this point in the history
The required module in babel v7.0.0 needs to be imported with .default.
  • Loading branch information
christophpre authored and develar committed Aug 30, 2018
1 parent 504b8f6 commit 1ddf534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electron-webpack/src/configurators/js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createBabelLoader(configurator: WebpackConfigurator) {
}],
]
const plugins = [
require("@babel/plugin-syntax-dynamic-import"),
require("@babel/plugin-syntax-dynamic-import").default,
]

if (configurator.type !== "main" && configurator.hasDependency("element-ui")) {
Expand Down

0 comments on commit 1ddf534

Please sign in to comment.