github lynx-family/lynx-stack @lynx-js/lynx-bundle-rslib-config@0.0.2

latest releases: @lynx-js/react-rsbuild-plugin@0.12.2, @lynx-js/web-core@0.19.2, @lynx-js/web-worker-runtime@0.19.2...
11 hours ago

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' },
            },
          },
        }),
      ],
    }

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.