feat: support web preview in rspeedy dev (#1891)
Updated dependencies []:
Bump Rsbuild v1.5.17. (#1889)
feat: support web preview in rspeedy dev (#1893)
Updated dependencies []:
Should apply dev.hmr and dev.liveReload to Rsbuild config. (#1882)
Support CLI flag --root to specify the root of the project. (#1836)
Bump Rsbuild v1.5.12 with Rspack v1.5.7. (#1708)
Fix the "lynx.getJSModule is not a function" error on Web platform (#1830)
Support server.compress (#1799)
Support server.cors (#1808)
Use output.chunkLoading: 'lynx' for environments.web. (#1737)
Support resolve.extensions (#1759)
Set the default value of output.cssModules.localIdentName to [local]-[hash:base64:6]. (#1783)
Support server.proxy. (#1745)
Support command and env parameters in the function exported by lynx.config.js. (#1669)
Support resolve.dedupe. (#1671)
This is useful when having multiple duplicated packages in the bundle:
Support resolve.aliasStrategy for controlling priority between tsconfig.json paths and resolve.alias (#1722)
Bump Rsbuild v1.5.4 with Rspack v1.5.2. (#1644)
Updated dependencies [d7c5da3]:
Disable lazyCompilation by default. (#1647)
Bump Rsbuild v1.5.2 with Rspack v1.5.1. (#1624)
Add output.dataUriLimit.* for fine-grained control of asset inlining. (#1648)
Deprecate source.alias, use resolve.alias instead. (#1610)
Note that resolve.alias has lower priority than the deprecated source.alias.
Bump Rsbuild v1.5.0 with Rspack v1.5.0. (#1591)
BREAKING CHANGE: Remove the ./register exports from @lynx-js/rspeedy. (#1547)
This should not affect most users.
Support resolve.alias. (#1610)
Support rspeedy build --watch (#1579)
Updated dependencies [d7d0b9b, 1952fc1]:
Support caching Lynx native events when chunk splitting is enabled. (#1370)
When performance.chunkSplit.strategy is not all-in-one, Lynx native events are cached until the BTS chunk is fully loaded and are replayed when that chunk is ready. The firstScreenSyncTiming flag will no longer change to jsReady anymore.
Support exporting Promise and function in lynx.config.ts. (#1590)
Fix missing publicPath using when rspeedy dev --mode production. (#1310)
Updated dependencies [aaca8f9]:
output.inlineScripts defaults to false when chunkSplit strategy is not 'all-in-one' (#1504)Remove the experimental provider option. (#1432)
Add output.filename.wasm and output.filename.assets options. (#1449)
fix deno compatibility (#1412)
Should call the api.onCloseBuild hook after the build finished. (#1446)
Bump Rsbuild v1.4.15. (#1423)
Support using function in output.filename.*. (#1449)
.js extensions when loading configuration with Node.js builtin type stripping. (#1407)performance.profile when DEBUG=rspeedy. (#1307)Fix rspeedy build --mode development failed. (#1252)
Bump Rsbuild v1.4.5 with Rspack v1.4.5 (#1239)
Updated dependencies [0a3c89d]:
Bump Rsbuild v1.4.3 with Rspack v1.4.2. (#1204)
See Announcing Rspack 1.4 for more details.
Deprecated output.distPath.intermediate (#1154)
This option is never read and will be removed in the future version.
Enable fine-grained control for output.inlineScripts (#883)
docs: remove chunks: 'all' in comments (#1168)
Set optimization.emitOnErrors when DEBUG is enabled. (#1000)
This is useful for debugging PrimJS Syntax error.
Fix the "SyntaxError: invalid redefinition of parameter name" error. (#949)
Remove the default output.iife: false from Rspack.
The default value of output.inlineScripts should be true. (#915)
Updated dependencies [c210b79]:
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:
Bump Rsbuild v1.3.21 with Rspack v1.3.11. (#863)
Updated dependencies [5b67bde]:
Support source.preEntry. (#750)
Add a script before the entry file of each page. This script will be executed before the page code. It can be used to execute global logics, such as injecting polyfills, setting global styles, etc.
example:
Bump Rsbuild v1.3.20 with Rspack v1.3.10. (#799)
Add callerName option to createRspeedy. (#757)
It can be accessed by Rsbuild plugins through api.context.callerName, and execute different logic based on this identifier.
Support performance.buildCache. (#766)
Updated dependencies [fbc4fbb]:
Bump Rsbuild v1.3.17 with Rspack v1.3.9. (#708)
Support performance.profile. (#691)
Support CLI flag --mode to specify the build mode. (#723)
Enable native Rsdoctor plugin by default. (#688)
Set tools.rsdoctor.experiments.enableNativePlugin to false to use the old JS plugin.
See Rsdoctor - 1.0 for more details.
Bump Rsbuild v1.3.14 with Rspack v1.3.8. (#630)
Support CLI option --no-env to disable loading of .env files (#483)
Bump Rsbuild v1.3.8 with Rspack v1.3.5. (#579)
Bundle Rspeedy with Rslib for faster start-up times. (#395)
This would be a BREAKING CHANGE for using global version of Rspeedy.
Please ensure that you update your globally installed version of Rspeedy:
Bump Rsbuild v1.3.2 with Rspack v1.3.1 (#446)
BREAKING CHANGE: Added explicit TypeScript peer dependency requirement of 5.1.6 - 5.8.x. (#480)
This formalizes the existing TypeScript version requirement in peerDependencies (marked as optional since it is only needed for TypeScript configurations). The actual required TypeScript version has not changed.
Note: This may cause installation to fail if you have strict peer dependency checks enabled.
Node.js v22.7+ users can bypass TypeScript installation using --experimental-transform-types or --experimental-strip-types flags. Node.js v23.6+ users don't need any flags. See Node.js - TypeScript for details.
Support CLI flag --base to specify the base path of the server. (#387)
Support CLI flag --environment to specify the name of environment to build (#462)
Select the most appropriate network interface. (#457)
This is a port of webpack/webpack-dev-server#5411.
Support Node.js v23.6+ native TypeScript. (#481)
See Node.js - TypeScript for more details.
Support CLI flag --env-mode to specify the env mode to load the .env.[mode] file. (#453)
Support dev.hmr and dev.liveReload. (#458)
Updated dependencies [df63722, df63722]:
Support using -debugids in output.sourceMap.js. (#342)
See Source Map Debug ID Proposal for more details.
Use chunkLoading: 'import-scripts' for Web platform (#352)
Support output.distPath.*. (#366)
See Rsbuild - distPath for all available options.
Support performance.printFileSize (#336)
Whether to print the file sizes after production build.
Support dev.progressBar (#307)
Whether to display progress bar during compilation.
Defaults to true.
support load .env file by default (#233)
Support server.strictPort (#303)
When a port is occupied, Rspeedy will automatically increment the port number until an available port is found.
Set strictPort to true and Rspeedy will throw an exception when the port is occupied.
Bump Rsbuild v1.2.19 with Rspack v1.2.8 (#168)
Add mergeRspeedyConfig function for merging multiple Rspeedy configuration object. (#169)
Bump Rsdoctor v1.0.0-rc.0 (#186)
Support configure the base path of the server. (#196)
By default, the base path of the server is /, and users can access lynx bundle through http://<host>:<port>/main.lynx.bundle
If you want to access lynx bundle through http://<host>:<port>/foo/main.lynx.bundle, you can change server.base to /foo
example:
Updated dependencies [b026c8b]:
Support NPM provenance. (#30)
Fix error "'wmic' is not recognized as an internal or external command" (#91)
Bump Rsbuild v1.2.15 with Rspack v1.2.7. (#44)
Updated dependencies [c617453]:
[name].[platform].bundle.output.minify.jsOptions.exclude.3319e0f: BREAKING CHANGE: Use cssnano by default.
We enable CSS minification in v0.7.0 and use Lightning CSS by default. But there are cases that Lightning CSS produce CSS that cannot be used in Lynx.
Now, the default CSS minifier is switched to cssnano using @rsbuild/plugin-css-minimizer.
You can switch to other tools by using:
See @rsbuild/plugin-css-minimizer for details.
3319e0f: BREAKING CHANGE: Remove output.minify.cssOptions.
You can use custom options with @rsbuild/plugin-css-minimizer:
dev.assetPrefix to ensure it accurately reflects the server.port when the specified port is already in use.e2e23e2: Deprecated output.filename.template, use output.filename.bundle instead.
e2e23e2: BREAKING CHANGE: Change the default output.filename to [name].lynx.bundle.
a589e2e: BREAKING CHANGE: Enable CSS minification by default.
You may turn it off using output.minify.css: false:
Or you may use @rsbuild/plugin-css-minimizer to use cssnano as CSS minimizer.
525554c: BREAKING CHANGE: Bump ts-blank-space to ^0.6.0.
Drop support for legacy module namespaces, see microsoft/TypeScript#51825 for details.
output.minify.css and output.minify.cssOptions.source.assetsInclude to allow the inclusion of additional files to be processed as static assets5ead4b8: Support type: 'reload-server' in dev.watchFiles.
type: 'reload-page' will reload the Lynx page when it detects changes in the specified files.type: 'reload-server' will restart the development server when it detects changes in the specified files.be9b003: Add source.exclude.
2643477: Add performance.removeConsole.
cb337de: Add source.decorators.
You may use source.decorators.version: '2022-03' for using Stage 3 decorator proposal.
Or use source.decorators.version: 'legacy' for using TypeScript's experimentalDecorators: true.
See How does this proposal compare to other versions of decorators? for details.
template.js of lazy bundle to avoid build error.exit to plugin api.