* 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
@babel/plugin-transform-modules-amd
This plugin transforms ES2015 modules to AMD
See our website @babel/plugin-transform-modules-amd for more information.
Install
Using npm:
npm install --save-dev @babel/plugin-transform-modules-amd
or using yarn:
yarn add @babel/plugin-transform-modules-amd --dev