UNPKG

@feature-hub/core

Version:

Create scalable web applications using micro frontends.

14 lines 878 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.invalidFeatureAppModule = invalidFeatureAppModule; function invalidFeatureAppModule(url, moduleType, moduleLoader) { let message = `The Feature App module at the url ${JSON.stringify(url)} ${moduleType ? `with the module type ${JSON.stringify(moduleType)}` : `with no specific module type`} is invalid. A Feature App module must have a Feature App definition as default export. A Feature App definition is an object with at least a \`create\` method.`; if (moduleLoader && moduleLoader.length > 1 && !moduleType) { message += ' Hint: The provided module loader expects an optional second parameter `moduleType`. It might need to be provided for this Feature App.'; } return message; } //# sourceMappingURL=feature-app-manager-messages.js.map