skypackjs / skypack-cdn

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

`import.meta.url` doesn't work #367

Open yukulele opened 6 months ago

yukulele commented 6 months ago

Skypack seems to convert import.meta.url into import_meta.url where import_meta is initialized with an {} empty object making import.meta.url undefined.

Example: https://github.com/fend25/lib_importmetaurl_dot/blob/master/index.js is converted to https://cdn.skypack.dev//-/lib_importmetaurl_dot@v0.0.1-46EnAJCydEbac03RpXeD/dist=es2019,mode=imports/optimized/lib_importmetaurl_dot.js