Minor Changes
-
Rename
lepus
tomainThreadAssets
inbeforeEmit
hook. (#901) -
Remove the unused
encodeBinary
option ofLynxEncodePlugin
. (#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 ofbeforeEmit
hook does not contains theroot
main chunk of the main thread. (#898)