Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle inlining does not work when bundling a library #8004

Open
maxammann opened this issue Apr 25, 2022 · 1 comment
Open

Bundle inlining does not work when bundling a library #8004

maxammann opened this issue Apr 25, 2022 · 1 comment

Comments

@maxammann
Copy link

馃悰 bug report

馃帥 Configuration (.babelrc, package.json, cli command)

Inlining a bundle as a blob URL does not work when creating a library.

馃 Expected Behavior

The referenced web worker should be inlined.

馃槸 Current Behavior

The following invalid code is generated:

let $747425b437e121da$var$worker = new Worker(new URL("e20747cbda02e6c5", import.meta.url));
$747425b437e121da$var$worker.postMessage('test');

馃拋 Possible Solution

?

馃敠 Context

I'm trying to bundle a library with a web worker

馃捇 Code Sample

  "targets": {
    "module": {
    }
  },
  • Run parcel build index.js.

馃實 Your Environment

Software Version(s)
Parcel 2.5.0
Node 14
npm/Yarn -
Operating System Linux
@maxammann
Copy link
Author

Still a problem I suppose

@github-actions github-actions bot removed the Stale Inactive issues label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants