Skip to content

Commit

Permalink
fix: Ensuring react and react-dom are not included as external de…
Browse files Browse the repository at this point in the history
…pendencies (#247)
  • Loading branch information
fabiospampinato authored and develar committed Jan 15, 2019
1 parent b28bec4 commit d2433f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/electron-webpack/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ export class WebpackConfigurator {
private computeExternals() {
const whiteListedModules = new Set(this.electronWebpackConfiguration.whiteListedModules || [])
if (this.isRenderer) {
whiteListedModules.add("react")
whiteListedModules.add("react-dom")
whiteListedModules.add("vue")
}

Expand Down

0 comments on commit d2433f6

Please sign in to comment.