Create @babel/plugin-proposal-dynamic-import (#9552)
* Create @babel/plugin-proposal-dynamic-import * Use airbnb/babel-plugin-dynamic-import-node Do not duplicate code, which will unavoidably lead to bugs being fixed in one plugin and not in the other. * Update error message * Add error callback to amd interop * Update babel-plugin-dynamic-import-node
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
export function lazyLoadOperation () {
|
||||
return import('./x')
|
||||
.then(function (x) {
|
||||
x.y();
|
||||
});
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
System.register([], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
function lazyLoadOperation() {
|
||||
return _context.import('./x').then(function (x) {
|
||||
x.y();
|
||||
});
|
||||
}
|
||||
|
||||
_export("lazyLoadOperation", lazyLoadOperation);
|
||||
|
||||
return {
|
||||
setters: [],
|
||||
execute: function () {}
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user