Closed 3cp closed 1 year ago
The behaviour might be a combined effect of our setup and latest parcel.
Thanks @3cp we should be able to remove that line. Or maybe prod sourcemap should be added back.
Bypassed it with proper sourcemap setup for parcel testing build. Previously sourcemap is off for testing build.
Note the
//# sourceMappingURL=index.mjs.map
out of nowhere for some Aurelia exports.For example, here the "aurelia" package. The
index.mjs
file has//# sourceMappingURL=index.mjs.map
at the end, but the fileindex.mjs.map
is missing. I assume we didn't want sourceMap for the production build, so the last line inindex.mjs
should be removed. @bigoponI guess the missing map file confused Parcel, so it kept some of the
//#...
line in the code. I also noted all our au2 packages have this missing map file, but Parcel didn't add the extra//#...
line for all of the exports. (Might be just for the first exports from an au2 package).I manually removed that line from "aurelia" package's
dist/esm/index.mjs
and it did let Parcel removing that generated//#...
line. Is this something you can cleanup in au2 monorepo? @bigopon