skypackjs / skypack-cdn

An issue tracker for the CDN
107 stars 5 forks source link

skypack fails on code with private fields #364

Open trusktr opened 11 months ago

trusktr commented 11 months ago

Reproduction:

import('https://cdn.skypack.dev/lume/dist/index.js').then(console.log)

Error:

[Package Error] "lume@v0.3.0-alpha.28" could not be built. 
[1/5] Verifying package is valid…
[2/5] Installing dependencies from npm…
[3/5] Building package using esinstall…
Running esinstall...
Failed to load node_modules/lume/dist/core/ChildTracker.js
  Unexpected token (24:8) in lume/dist/core/ChildTracker.js
Install failed.
Install failed.

The reason is #private syntax.

Skypack needs a tooling update.

I wish we had a vanilla ESM server that would never break on syntax.