Skip to content
This repository was archived by the owner on Sep 9, 2021. It is now read-only.
This repository was archived by the owner on Sep 9, 2021. It is now read-only.

use sharedWorker inline has the same filename #324

@huyansheng3

Description

@huyansheng3

the sharedworker for mutile tab,when every time inline URL.createObjectURL will produce new hash url, every tab will has a new sharedworker.

const source = 'importScript("https://anotherhost/worker.js")';
const url = 'data:application/javascript;base64,' + btoa(source);
const worker = new SharedWorker(url);

Base64 encoding gives a permanent URL until the source code changes. maybe should support this ?

  • Operating System:
  • Node Version:
  • NPM Version:
  • webpack Version:
  • worker-loader Version:

Feature Proposal

Feature Use Case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions