8000 fix(Quantum): Limit process replacement for browser only · fuse-box/fuse-box@7066967 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 7066967

Browse files
committed
fix(Quantum): Limit process replacement for browser only
1 parent 93d51a6 commit 7066967

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/quantum/plugin/modifications/GlobalProcessReplacement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { QuantumCore } from "../QuantumCore";
33

44
export class GlobalProcessReplacement {
55
public static perform(core: QuantumCore, file: FileAbstraction) {
6-
if (!file.processVariableDefined) {
6+
if (!file.processVariableDefined && core.opts.isTargetBrowser()) {
77
file.globalProcess.forEach(item => {
88
item.replaceWithString(undefined);
99
});

src/quantum/plugin/modifications/GlobalProcessVersionReplacement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { QuantumCore } from "../QuantumCore";
33

44
export class GlobalProcessVersionReplacement {
55
public static perform(core: QuantumCore, file: FileAbstraction) {
6-
if (!file.processVariableDefined) {
6+
if (!file.processVariableDefined && core.opts.isTargetBrowser()) {
77
if (file.globalProcessVersion.size) {
88
file.renderedHeaders.push(`var process = { version : "" };`);
99
}

0 commit comments

Comments
 (0)
0