Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add ability for worker module creation #974

Open
Assignees
copilot-swe-agent
@Karnith

Description

@Karnith

The current code for worker in FsaNodeSyncAdapterWorker only creates a worker from url string: line#24

If this would be changed to:

letworker;if(url&&typeofurl==='string'&&url.includes('type=module')){worker=newWorker(url,{type:'module'})}else{worker=newWorker(url);};

it would allow for the fsa-to-node module to be used in frameworks where import is the only way to grab the worker file (vite for example).
The import would look like:

importMyWokerfrom'../worker?worker&url'

which gets morphed to the url string/src/worker.ts?type=module&worker_file and expects the worker initialization to have the worker options of type module passed top it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp