Skip to content

5.0.0-rc.3 fails with tslib #11613

@philcockfield

Description

@philcockfield

Bug report

What is the current behavior?

Running [email protected] fails when importing rxjs (which uses tslib):

image


If the current behavior is a bug, please provide the steps to reproduce.

Details of this error are reproducible in https://github.com/philcockfield/webpack5-tslib-error
The demo repo is a minimal webpack configuration using ts-loader that imports rxjs. It also behaves this way with vanilla JS and babel loaders.


What is the expected behavior?
The page loads with no errors. This demo repo works fine with [email protected] and then cleanly fails by flipping the version up to 5.0.0-rc.3

image


Other relevant information:
webpack version: 5.0.0-rc.3, 5.0.0-rc.4
Node.js version: 12.16.3
Operating System: MacOS (10.15.7)
Additional tools: -

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions