tailor icon indicating copy to clipboard operation
tailor copied to clipboard

SystemJS instead of AMD?

Open vigneshshanmugam opened this issue 8 years ago • 5 comments

We should start discussing about this soon since SystemJS supports native modules and supports lots of useful feature like custom hooks/resolvers.

vigneshshanmugam avatar Jan 30 '17 21:01 vigneshshanmugam

this would most likely help with getting better error messages out of the bundles too

dazld avatar Jan 31 '17 08:01 dazld

But wasn't the case that native modules are still not supported by browsers?

Does this ticket mean we handle the module loading for now using SystemJS and once the modules are supported natively by all browsers (I think only Safari supports currently in unstable), utilising browsers for this?

addityasingh avatar Feb 01 '17 22:02 addityasingh

Yes native modules are supported only on safari tech preview and MS Edge. The idea here is to load modules using SystemJS instead of AMD and use native modules if its present.

vigneshshanmugam avatar Feb 01 '17 22:02 vigneshshanmugam

Cool. Makes sense

addityasingh avatar Feb 01 '17 22:02 addityasingh

a quick look through some issues and the API suggests that we can get the original error, which is going to help a lot with error tracking and hooking into reporting.

dazld avatar Feb 02 '17 08:02 dazld