MCPcopy
hub / github.com/webpack/webpack / isInlineEnabled

Function isInlineEnabled

lib/optimize/InlineExports.js:150–155  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

148 * @returns {boolean} true when inlining is enabled for this module
149 */
150const isInlineEnabled = (module) =>
151 Boolean(
152 module.buildInfo &&
153 /** @type {import("../Module").BuildInfo} */
154 (module.buildInfo).inlineExports
155 );
156
157/**
158 * Check whether an import to `module` for `ids` resolves to an inlined value.

Callers 2

isExportInlinedFunction · 0.85
getConditionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected