Wepback plugin to auto-externalize dependencies available in import-maps
npm install import-map-externals-webpack-pluginA plugin that auto-externalizes dependencies that are available in an import map.
``sh
npm i -D import-map-externals-webpack-plugin
Usage
`js
// webpack.config.js
const { ImportMapExternalsPlugin } = require('import-map-externals-webpack-plugin');module.exports = {
plugins: [
new ImportMapExternalsPlugin({
importMapUrl: "https://react.microfrontends.app/importmap.json"
});
]
}
`$3
The following options can be passed to the ImportMapExternalsPlugin constructor:
-
importMapUrl`: a fully qualified, fetchable URL that contains valid import map json