Patch Changes
-
Introduce
@lynx-js/externals-loading-webpack-plugin. It will help you to load externals built by@lynx-js/lynx-bundle-rslib-config. (#1924)// webpack.config.js import { ExternalsLoadingPlugin } from '@lynx-js/externals-loading-webpack-plugin'; export default { plugins: [ new ExternalsLoadingPlugin({ mainThreadLayer: 'main-thread', backgroundLayer: 'background', externals: { lodash: { url: 'http://lodash.lynx.bundle', background: { sectionPath: 'background' }, mainThread: { sectionPath: 'main-thread' }, }, }, }), ], };