MCPcopy
hub / github.com/webpack/webpack / isNeutralPlatform

Method isNeutralPlatform

lib/RuntimeTemplate.js:127–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 }
126
127 isNeutralPlatform() {
128 return (
129 !this.compilation.compiler.platform.web &&
130 !this.compilation.compiler.platform.node
131 );
132 }
133
134 /**
135 * Whether the bundle targets node and web at once (universal `["node", "web"]` + `output.module`), like `isUniversalTarget` in `WebpackOptionsApply`.

Callers 4

generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected