Skip to content

Add target: "universal" #6525

@sokra

Description

@sokra

Do you want to request a feature or report a bug?
feature

What is the current behavior?
targets are pretty restrictive and a web bundle can't be used in node or webworker.
If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
The universal target includes runtime code that runs in web, webworker and node.js. The code can be a bit bigger to support all of them.

If this is a feature request, what is motivation or use case for changing the behavior?

  • Create UMD bundles that work in all enviroments
  • Create bundles with chunks shared between web and webworker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To be discussed

    Status

    Priority - Medium

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions