github lynx-family/lynx-stack @lynx-js/template-webpack-plugin@0.7.0

latest releases: @lynx-js/offscreen-document@0.1.4, @lynx-js/cache-events-webpack-plugin@0.0.2, @lynx-js/web-constants@0.16.0...
3 months ago

Minor Changes

  • Rename lepus to mainThreadAssets in beforeEmit hook. (#901)

  • Remove the unused encodeBinary option of LynxEncodePlugin. (#880)

Patch Changes

  • Support output.inlineScripts, which controls whether to inline scripts into Lynx bundle (.lynx.bundle). (#874)

    Only background thread scripts can remain non-inlined, whereas the main thread script is always inlined.

    example:

    import { defineConfig } from '@lynx-js/rspeedy';
    
    export default defineConfig({
      output: {
        inlineScripts: false,
      },
    });
  • refactor: code clean (#897)

    rename many internal apis to make logic be clear:

    multi-thread: startMainWorker -> prepareMainThreadAPIs -> startMainThread -> createMainThreadContext(new MainThreadRuntime)
    all-on-ui: prepareMainThreadAPIs -> startMainThread -> createMainThreadContext(new MainThreadRuntime)

  • Add WebEncodePlugin. (#904)

    This is previously known as WebWebpackPlugin from @lynx-js/web-webpack-plugin.

  • Fix a bug that the lepus arg of beforeEmit hook does not contains the root main chunk of the main thread. (#898)

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.