Skip to content

library type is umd the remote reference module code it not generated #4294

@dingchaoyan1983

Description

@dingchaoyan1983

Describe the bug

when I use

library: {
type: 'umd',
export: packageJson.name,
name: packageJson.name,
},

the generated code for umd is:

        /***/
        "webpack/container/reference/hostapp"/*!*****************************************************************!*\

!*** external "hostapp@http://localhost:3000/mf-manifest.json" !
*
*************************************************************/
(module) {

            "use strict";
            module.exports = __WEBPACK_EXTERNAL_MODULE_webpack_container_reference_hostapp__;

            /***/
        },

what wrong with this ,how to fix it

Reproduction

library

Used Package Manager

npm

System Info

System:
    OS: macOS 12.7.4
    CPU: (8) arm64 Apple M1
    Memory: 175.89 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 20.11.1 - /Users/dingchao/.nvm/versions/node/v20.11.1/bin/node
    Yarn: 1.22.22 - /Users/dingchao/.nvm/versions/node/v20.11.1/bin/yarn
    npm: 10.2.4 - /Users/dingchao/.nvm/versions/node/v20.11.1/bin/npm
    pnpm: 10.18.0 - /Users/dingchao/.nvm/versions/node/v20.11.1/bin/pnpm
  Browsers:
    Chrome: 143.0.7499.193
    Safari: 15.6.1

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions