Closed rschristian closed 1 year ago
Latest commit: a232ceabe3bed6560ac4f4a5742f750a005e31a5
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Size Change: +5 B (0%)
Total Size: 806 kB
Filename | Size | Change |
---|---|---|
packages/wmr/wmr.cjs |
767 kB | +5 B (0%) |
Workers must have
.worker
in their name yet this regex didn't test for it. Sonew URL('./foo.js', import.meta.url)
is (incorrectly) treated as a worker.This behavior is still super sketchy and flawed, as a simple
console.log(new URL('./foo.worker.js', import.meta.url))
will trigger (in prod, in dev the user will just get errors) WMR to emit another file, but this at least reduces the chances of users running into it.