Skip to content

[Bug]: ModuleFederation needs globalThis but polyfill chunks executed later #3593

@nanianlisao

Description

@nanianlisao

Version

latest

Details

The minimum configuration is as follows:

moduleFederation: {
    options: {},
  },
  output: {
    polyfill: 'entry',
    overrideBrowserslist: ['chrome 70'],
  },

At this time, corejs injection does not take effect.

In addition, this seems to be a problem with rspack, webpack is ok

Reproduce link

no

Reproduce Steps

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions