You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's Changed
New Features 🎉
feat(app-tools): simplify the default HTML meta tags to UTF-8 charset and width=device-width, initial-scale=1 viewport. Remove the default zoom restrictions, shrink-to-fit, viewport-fit, x-ua-compatible, renderer, layoutmode, imagemode, wap-font-scale, and format-detection settings. Existing applications using these defaults will receive the new tags after upgrading and rebuilding. Configure html.meta explicitly if the application needs any of the removed settings, such as viewport-fit=cover for edge-to-edge layouts or format-detection: telephone=no to disable phone number detection. by @zllkjc in #9170
feat: support a build-time ssgParams export alongside a conventional page's data loader to generate static paths from route parameters. Combine generated paths with explicit SSG route lists, giving explicit options precedence for duplicate URLs. Global SSG settings apply to every entry unless an entry map is provided. by @zllkjc in #9167
feat(server-core): set Cache-Control for static files served by the production server. Build assets with a content hash get public, max-age=31536000, immutable, other static files get no-cache. Static files also get an ETag computed from their content and answer If-None-Match with 304. Configure or disable it with server.staticCacheControl. by @ramazansancar in #9100
Bug Fixes 🐞
fix: upgrade @modern-js/polyfill-lib to remove diff from its production dependencies. by @zllkjc in #9184
fix(app-tools): treat a build command followed only by --help or -h (for example modern build --help or modern dev -h) as printing help, so it no longer empties the output directory or regenerates node_modules/.modern-js. The plugin lifecycle order is unchanged. by @byte-lyh in #9180
fix(app-tools, utils): centralize CLI plugin loading in compatibleRequire. Fall back to ESM imports only when require reports an incompatible ESM module, including modules with top-level await. Preserve other loading errors without retrying, avoiding misleading Windows URL scheme errors, and report the actual ESM execution error if the fallback fails. by @zllkjc in #9168
fix: normalize Windows paths in generated route component imports, including custom entry directories and paths containing non-ASCII characters. by @GiveMe-A-Name in #9198
Other Changes ✨
Use an explicit callable signature for the isFunction type guard when enabling TypeScript project discovery in the repository linter. by @GiveMe-A-Name in #9178
Remove an obsolete ambient type reference to the unavailable module-tools package. by @GiveMe-A-Name in #9179