Skip to content

Question: Does tsdown support compiling Web Worker files? #491

@atox996

Description

@atox996

Clear and concise description of the problem

Hello tsdown team,

I am currently exploring tsdown for library development and would like to know if tsdown supports compiling Web Worker files directly.
Specifically, can tsdown handle new Worker(new URL('./worker.ts', import.meta.url), { type: 'module' }) syntax or similar patterns?

If this is not currently supported, are there any plugins or recommended approaches to achieve this?
Would the team consider enhancing tsdown to support Web Worker compilation in the future?

Thank you for your attention. I look forward to your reply.

Suggested solution

support compiling Web Worker files

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions