You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.
Moving this issue by @maxmilton from sapper-template-rollup, since I'm about to delete it in favour of the rollup branch on this repo:
After an epic debugging session this morning trying to get Closure Compiler working with this project I ran into some showstoppers.
The service worker will compile with only small changes, however, compiling the other JS bundles is another story. Due to the use of dynamic import, import(), the compiler ran into issues.
@ampproject/rollup-plugin-closure-compiler can't parse import() because it's using acorn which doesn't support it out of the box. I've created an issue over there suggesting they use acorn-dynamic-import to add support: ampproject/rollup-plugin-closure-compiler#48.
Even after I was able to implement a workaround with @ampproject/rollup-plugin-closure-compiler locally, I discovered Closure Compiler itself can't parse import() at all and throws an error preventing the build. Opened an issue for that too: google/closure-compiler#2770.
So as it stands, both of these are blockers preventing us from using Closure Compiler right now.
Moving this issue by @maxmilton from sapper-template-rollup, since I'm about to delete it in favour of the
rollup
branch on this repo:After an epic debugging session this morning trying to get Closure Compiler working with this project I ran into some showstoppers.
The service worker will compile with only small changes, however, compiling the other JS bundles is another story. Due to the use of dynamic import,
import()
, the compiler ran into issues.@ampproject/rollup-plugin-closure-compiler
can't parseimport()
because it's using acorn which doesn't support it out of the box. I've created an issue over there suggesting they useacorn-dynamic-import
to add support: ampproject/rollup-plugin-closure-compiler#48.Even after I was able to implement a workaround with
@ampproject/rollup-plugin-closure-compiler
locally, I discovered Closure Compiler itself can't parseimport()
at all and throws an error preventing the build. Opened an issue for that too: google/closure-compiler#2770.So as it stands, both of these are blockers preventing us from using Closure Compiler right now.
FYI the progress I made is in https://github.com/MaxMilton/sapper-template-rollup/tree/feat/use-closure-compiler.
The text was updated successfully, but these errors were encountered: