Comments (11)
I actually used the preview version of Safari, the latest stable version has a "unexpected keyword export", which I guess it because of modules not being supported in workers or something similar.
As it works as expected in other browsers, this just seems too bad, but no way to figure out what could cause it
This might be an issue with the Safari preview then, I'll wait to see if the Safari team will fix the issue.
The "unexpected keyword export", is because using modules in workers just got added this year in Chrome, Firefox, and Safari, and since Safari only gets one update a year, the current stable Safari won't be getting support for modules in workers by maybe next month, when the Safari preview is moved to stable.
from bundlejs.
Unfortunately, I don't own a Mac so, I can't test on Safari, however, I'd like to know more about this issue, could you please describe what happens, before this error appears on Safari.
from bundlejs.
I'm not really sure how to describe the issue, but I can show the recording:
Screen.Recording.2021-09-13.at.16.30.21.mov
The fourth time I tried and refreshed it actually did work:
I tried opening the devtools to the line of that error, but I guess the file is too big as it crashed my browser every time I tried to open it.
from bundlejs.
Yeah, don't try to inspect the code with devtools, it's about a MB (GZIPPED) in total of just pure code, it will crash basically every browsers devtools.
Also, I heard Safari is very iffy in terms of reliability, so, sometimes it works, sometimes it doesn't. When I built https://bundle.js.org, I built using the lowest common denominator, making sure all the API's I used were also compatible with Safari, so, I'm not sure why Safari would be having such issues. Could please monitor this issue, to see if it occurs again? I'll close this issue for now, but if you are able to replicate the initial issue, I'll reopen it.
from bundlejs.
The video is a reproduction @okikio, I can reproduce it ~4/5 times
from bundlejs.
The video is a reproduction @okikio, I can reproduce it ~4/5 times
That's so odd, why does it do that? Would it be possible to try out https://bundle.js.org on the Safari beta? Just to confirm it isn't a bug with Safari.
from bundlejs.
I actually used the preview version of Safari, the latest stable version has a "unexpected keyword export", which I guess it because of modules not being supported in workers or something similar.
As it works as expected in other browsers, this just seems too bad, but no way to figure out what could cause it
from bundlejs.
I'm reopening this issue, it seems @natemoo-re already solved a similar issue, in the Astro build repl.
from bundlejs.
Not positive that #5 fixes the original issue, but it does seem to fix the "unexpected keyword export" issue in Firefox!
Edit I'm having trouble reproducing the original issue on Safari v14. Not sure why!
from bundlejs.
Not positive that #5 fixes the original issue, but it does seem to fix the "unexpected keyword export" issue in Firefox!
Edit I'm having trouble reproducing the original issue on Safari v14. Not sure why!
@Haroenv Specified that on Safari it wouldn't work 4/5 tries, so, it may just be Safari being iffy
from bundlejs.
@Haroenv I've fixed the worker module, as I've merged your pull request @natemoo-re
from bundlejs.
Related Issues (20)
- Size reported of bundle is off HOT 3
- getRequest [Failed at request] HOT 4
- Incorrent treeshake size in badge/API HOT 3
- API error HOT 22
- BUG: Treeshake doesn't work for badges HOT 11
- Strange behavior when using multiplug badges HOT 7
- Possible badge caching issue HOT 6
- Fetch the versions mentioned in package.json. HOT 4
- Fail to bundle `npm/lib/cli-entry.js` and `@npmcli/arborist` HOT 6
- Generates an incorrect URL for a Redux Toolkit nested entry point HOT 3
- Failed to build node-libcurl ("Couldn't load") HOT 1
- no longer works by default (with unpkg) HOT 3
- Build failed for `[email protected]` HOT 2
- [FIXED] Cross-Origin Read Blocking made the badges unavailable on Github Readmes HOT 3
- Build fails for `[email protected]` HOT 2
- Config externals shortcut HOT 1
- Exclude `await import('[...'])` in bundle size? HOT 2
- ✘ [ERROR] Do not know how to load path: http-url:{JS_FILE_PATH} HOT 5
- Failed for tippy.js HOT 5
- Can't load [email protected]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundlejs.