You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supports loading TypeScript for .ts and ES modules for .js files natively in the browser for easy development workflows.
Builds on top of the fetch hook in SystemJS supported by both the system.js and s.js builds.
The source transform is skipped for all System.register sources, thereby allowing interop of System modules, ES modules and TypeScript.
Specifically does not provide configuration hooks, because no type checking is performed and this is designed to handle current syntax only.
If a syntax or feature is supported in any browser, it should be supported here but polyfills are a non-goal. Feature requests and PRs welcome to improve support.
Usage
npm install systemjs-babel
<scriptsrc="systemjs/dist/s.js"></script><scriptsrc="dist/systemjs-babel.js"></script><script>// TypeScript modules supported with ".ts" extensionSystem.import('./ts-module.ts');// ES modulesSystem.import('./es-module.js');</script>
Explicit file extensions are required for loading dependencies. For TypeScript this means including the .ts extension for relative dependency imports just like Deno.
Bare specifiers are mapped with import maps, so file extensions remain optional.