@babel/plugin-transform-modules-systemjs
This plugin transforms ECMAScript modules to SystemJS. Note that only the syntax of import/export statements (import "./mod.js"
) and import expressions (import('./mod.js')
) is transformed, as Babel is unaware of different resolution algorithms between implementations of ECMAScript modules and SystemJS.
Out
System.register([], function(_export, _context) {
setters: [],
execute: function() {
_export("default", 42);
});
Without options:
{
"plugins": ["@babel/plugin-transform-modules-systemjs"]