@lynx-js/template-webpack-plugin
0.10.4
Patch Changes
-
Move
cssChunksToMapimplementation from@lynx-js/template-webpack-pluginto@lynx-js/css-serializerfor future reuse. (#2269) -
Updated dependencies [
9033e2d]:- @lynx-js/css-serializer@0.1.4
0.10.3
Patch Changes
-
Fix "Failed to load CSS update file" for lazy bundle (#2150)
-
Fix "TypeError: cannot read property 'call' of undefined" error of lazy bundle HMR. (#2146)
0.10.2
Patch Changes
- Polyfill
lynx.requireModuleAsyncto allow cache same parallel requests. (#2108)
0.10.1
Patch Changes
-
fix: pass updated css from encodeData to resolvedEncodeOptions (#2053)
Previously, the initial CSS was used in resolvedEncodeOptions instead of the potentially updated CSS from encodeData after the beforeEncode hook. This fix ensures resolvedEncodeOptions receives the latest CSS data.
0.10.0
Minor Changes
- Merge all css chunk and generate a
.css.hot-update.jsonfile for each bundle. (#1965)
0.9.2
Patch Changes
-
Set main thread JS basename to
lepusCode.filenamein tasm encode data. It will ensure a filename is reported on MTS error without devtools enabled. (#1949) -
Upgrade
@lynx-js/tasmto0.0.20. (#1943) -
refactor: move web style info generation to the encode phase (#1975)
0.9.1
Patch Changes
- Remove
compiler.hooks.initializeas it's not called in child compilers. (#1898)
0.9.0
Minor Changes
-
BREAKING CHANGE: Remove the
enableParallelElementandpipelineSchedulerConfigoptions. (#1705)Since the thread element resolution is still in experimental stage and may have stability risks, it will be disabled by default after this change.
-
BREAKING CHANGE: Remove the
enableICUoption. (#1800)
0.8.6
Patch Changes
- fix: add appType field for lazy bundle for web (#1738)
0.8.5
Patch Changes
-
Always inline the background script that contains rspack runtime module. (#1582)
-
Updated dependencies [
aaca8f9]:- @lynx-js/webpack-runtime-globals@0.0.6
0.8.4
Patch Changes
- Fix invalid
module.exports=;syntax in app-service.js. (#1501)
0.8.3
Patch Changes
- feat: support elementTemplate for web (#1374)
0.8.2
Patch Changes
- Fix the
Syntax Error: expecting ';'error of chunk splitting (#1279)
0.8.1
Patch Changes
-
feat:
::placeholderwill be compiled topart(input)::placeholder, which means you can use pseudo-element CSS to add placeholder styles to input and textarea. (#1158) -
Enable fine-grained control for
output.inlineScripts(#883)
0.8.0
Minor Changes
- Remove
EncodeCSSOptionsandencodeCSSto ensure consistent encoding options are used across CSS HMR updates and the main template. (#1033)
Patch Changes
-
Avoid generating lazy bundles when there are no chunk name. (#1090)
E.g.: using
import.meta.webpackContext.
0.7.2
Patch Changes
- Updated dependencies [
ccb4254]:- @lynx-js/css-serializer@0.1.3
0.7.1
Patch Changes
-
feat: Merge the absent configurations for
.web.bundle. (#884)Before this change, the configuration of pageConfig in
.web.bundlewascompilerOptions. After this commit, pageConfig will be a combination ofcompilerOptionsandsourceContent.config.
0.7.0
Minor Changes
-
Rename
lepustomainThreadAssetsinbeforeEmithook. (#901) -
Remove the unused
encodeBinaryoption 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:
-
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
WebWebpackPluginfrom@lynx-js/web-webpack-plugin. -
Fix a bug that the
lepusarg ofbeforeEmithook does not contains therootmain chunk of the main thread. (#898)
0.6.11
Patch Changes
-
Be compatible with rspack-manifest-plugin. (#812)
Now only the
[name].lynx.bundleand[name].web.bundlewould exist inmanifest.json.See lynx-family/lynx-stack#763 for details.
-
Avoid CSS encode crash on Web platform. (#814)
0.6.10
Patch Changes
-
Fix CSS import order when
enableCSSSelectoris false. (#609)When the
enableCSSSelectoroption is set to false, style rule priority is inversely related to@importorder(Lynx CSS engine has the incorrect behavior). Reversing the import order to maintain correct priority is required. For example:will convert to:
0.6.9
Patch Changes
- Fix incorrect hash of
background.[contenthash].jsin.lynx.bundlefiles. (#498)
0.6.8
Patch Changes
- fix: add enableCSSInvalidation for encodeCSS of css HMR, this will fix pseudo-class (such as
:active) not working in HMR. (#435)
0.6.7
Patch Changes
- fix: merge different chunk groups for same output filename (#371)
0.6.6
Patch Changes
- expose main.lynx.bundle to compiler (#231)
0.6.5
Patch Changes
- The code of lazy bundle should be minimized. (#177)
0.6.4
Patch Changes
-
Support NPM provenance. (#30)
-
Use WASM when NAPI is not available. (#138)
-
Add
defaultOverflowVisibleoption toLynxTemplatePlugin. (#78) -
Updated dependencies [
c617453]:- @lynx-js/webpack-runtime-globals@0.0.5
- @lynx-js/css-serializer@0.1.2
0.6.3
Patch Changes
-
1abf8f0: Set the default value of
enableNativeListtotrue. -
1abf8f0: Add
entryNamesparameter tobeforeEncodehook. -
1abf8f0: Set the default
targetSdkVersionto 3.2.
0.6.2
Patch Changes
- 1472918: Change the lazy bundle filename to
async/[name].[fullhash].bundle.
0.6.1
Patch Changes
- ad49fb1: Support CSS HMR for ReactLynx
- 1407bac: Avoid special chunk id (e.g. "@scope/some-pkg-react:main-thread") to corrupt main-thread.js
0.6.0
Minor Changes
-
a217b02: BREAKING CHANGE: Require
@lynx-js/css-extract-webpack-pluginv0.4.0. -
0d3b44c: BREAKING CHANGE: Move
beforeEmitandafterEmithooks fromLynxEncodePlugintoLynxTemplatePlugin.Use
LynxTemplatePlugin.getLynxTemplatePluginHooksinstead.
Patch Changes
- 227823b: Use
async/[name]/template.[fullhash].jsfor lazy template.
0.5.7
Patch Changes
- d156485: feat: add the type of
sourceContentfield - 3ca4c67: Add
enableICUto the options of pluginReactLynx, and change the default value tofalse. - Updated dependencies [1f791a3]
- @lynx-js/css-serializer@0.1.1
0.5.6
Patch Changes
-
39efd7c: Change
enableRemoveCSSScopedefaults fromundefinedtotrue, nowenableRemoveCSSScopecan be:true(by default): All CSS files are treated as global CSS.false: All CSS files are treated as scoped CSS, and only take effect in the component that explicitly imports it.undefined: Only use scoped CSS for CSS Modules, and treat other CSS files as global CSS. Scoped CSS is faster than global CSS, thus you can use CSS Modules to speedy up your CSS if there are performance issues.
-
a2f8bad: Avoid extra
loadScriptcalls. -
f1d6095: Add
pipelineSchedulerConfigoption. -
Updated dependencies [3bf5830]
- @lynx-js/webpack-runtime-globals@0.0.4
0.5.5
Patch Changes
- 8dd6cca: Revert "perf(webpack/template): make
generatingTemplateasync"(#493).
0.5.4
Patch Changes
- 89248b7: Delay the generation of templates in development rebuild.
- bf9ec8c: Delete
main-thread.jsin production.
0.5.3
Patch Changes
- 36f8e4c: Add
enableA11yandenableAccessibilityElement. - 84cbdfe: Integrate with
@lynx-js/tasm.
0.5.2
Patch Changes
- Updated dependencies [f5913e5]
- @lynx-js/webpack-runtime-globals@0.0.3
0.1.1
Patch Changes
- 36e140f: Add missing
enableReuseContextflag
0.1.0
Minor Changes
- 84e49f5: update @lynx-js/template-webpack-plugin
- d05e60b: chore: add more exports of template-webpack-plugin
Patch Changes
- f1ddb5a: fix: return the correct entry chunk of background compilation
- Updated dependencies [6c31ddd]
- Updated dependencies [51d94d0]
- Updated dependencies [36e5ddb]
- Updated dependencies [6d05c70]
- @lynx-js/css-serializer@0.1.0
- @lynx-js/webpack-runtime-globals@0.0.2

