Skip to content

Support for workers and service workers #17

@austincummings

Description

@austincummings
// Web worker
new Worker("./worker.ts");
// Service worker
navigator.serviceWorker.register("./sw.ts");

These types of dependencies may end up being something that comes for free if esbuild adds support for these syntaxes, but I figured I would create an issue to propose this here too for consideration.

evanw/esbuild#312
evanw/esbuild#1602

Edit:
Could maybe even pull in this plugin that looks to add support for new Worker, and then add a similar plugin for service workers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions