简体   繁体   中英

Aurelia Skeleton export unbundled

Is there a way to export the project unbundled? I have a javascript error that happens in the prod environment but not in Dev and it would be nice to be able to debug human readable javascript/typescript instead of the uglified bundled code.

I'm using the jspm/gulp/typescript skeleton.

Here is a temporary answer, that I'm not exactly happy with... Mainly because things aren't working how they should .

If you add "sourceMaps": 'inline' to the options listed in build/bundles.js AND ALSO copy the src folder over to the export folder, then you should get some sourcemap support. It doesn't seem to be working completely though for me, but it might be good enough to work with.

The fact that I tell the bundler to put the sourcemaps inline (and when I base64 decode the sourcemap it seems it is actually inline) but then I still have to add the contents of src directory to make it work doesn't seem right.

It'll look something like this:

在此处输入图片说明

I'm not sure if the issue is on the Aurelia side or the System Builder side though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM