Open beorn opened 3 years ago
Have you tried setting the target
in the snowpack.config.js
optimize
section? ie:
optimize: {
target: 'es2107'
}
Have you tried setting the
target
in thesnowpack.config.js
optimize
section? ie:optimize: { target: 'es2107' }
Yeah, I just tried and getting the same error. Previously I was just using snowpack dev
.
Bug Report Quick Checklist
Describe the bug
The files from
snowpack dev
doesn't work in Safari, triggering this error in the Safari/WebKit console (from Parser.cpp in WebKit):I'm guessing it's from an export line that doesn't include a 'from', such as:
Perhaps some extra transpilation needs to happen for Safari by default? Potentially related to https://github.com/snowpackjs/snowpack/discussions/2354 as I tried to set
target
intsconfig.json
, but it was ignored.Expected behavior
I was expecting Safari to work out-of-the-box.