MCPcopy Create free account
hub / github.com/SAP/ui5-builder / logStringBundlingError

Method logStringBundlingError

lib/lbt/bundle/Builder.js:545–551  ·  view source on GitHub ↗
(moduleName)

Source from the content-addressed store, hash-verified

543 }
544
545 logStringBundlingError(moduleName) {
546 log.error(
547 "Module " + moduleName + " requires top level scope and can only be embedded as a string " +
548 "(requires 'eval'), which is not supported with specVersion 4.0 and higher. " +
549 "For more information, see the UI5 CLI documentation " +
550 "https://ui5.github.io/cli/stable/pages/Builder/#javascript-files-requiring-top-level-scope");
551 }
552
553 async checkForStringBundling(moduleName) {
554 if (!this.allowStringBundling && /\.js$/.test(moduleName)) {

Callers 2

rewriteAMDModulesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected