Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
fix: Suppress warnings for electron builds
Browse files Browse the repository at this point in the history
closes #1160
  • Loading branch information
nchanged committed Mar 19, 2018
1 parent 95868e3 commit 1cf3638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/PathMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ export class PathMaster {
let entryRoot;
let jsNext = false;
let browserOverrides;
if (this.context.target !== "server") {
if (this.context.target !== "server" && this.context.target !== "electron") {
if (json.browser && !this.context.isBrowserTarget()) {
this.context.fuse.producer.addWarning("json.browser",
`Library "${name}" contains "browser" field. Set .target("browser") to avoid problems with your browser build!`);
Expand Down

0 comments on commit 1cf3638

Please sign in to comment.