sku@14.3.0
Minor Changes
General
-
Add Port and Strict Port toggle for Start and Serve (#1232)
Previously
sku servewould allow you to choose the port to use with--port. This is now available onsku start.Start development server using port 8080:
sku start --port 8080
By default, if this port is unavailable a new port will be chosen. If you'd instead prefer to the command to fail, the
--strict-portin now available.Fails if port not available:
sku serve --port 8080 --strict-port
-
Support root resolution of
.jsxand.cjsfiles (#1219) -
setup-hostsipv6 hosts are now added alongside their ipv4 counterpart (#1221)
Vite Bundler
Various improvements were made to sku's Vite support. However, it is still not production ready. (#1269)
General
- Ensure bundled pre-render entrypoint has a consistent name, regardless of the configured
renderEntry. - Change render entrypoint file
apito match that ofwebpackrendering. - Add the
vite-tsconfig-pathsplugin. This allowsviteto respect the base path and path aliases in thetsconfig.json. - Support multi-language applications via Vocab.
- Enable
cspfunctionality.
Build
- Ensure
publicPathis prepended to asset URLs imported by Vanilla Extract stylesheets. - Strip assertions during production build.
- All asset files now get added directly to the
distfolder instead of being nested. - Aligns
publicPathlogic to mimic Webpack behaviour.
Start
- Enabled
httpsDevServer. - Improved error handling during static render.
- Enabled
devServerMiddleware. - Opens default browser on server start.
- Force HTTP/1 when enabling https dev server.
Loadable
- The loadable code has been moved to
@sku-lib/vite.
Patch Changes
-
Remove
env-cidependency (#1248) -
Disable Node experimental warnings to reduce log noise (#1236)
-
Updated the following dependencies that were stuck on versions that supported CJS to their latest ESM-only version: (#1249)
escape-string-regexp:^4.0.0->^5.0.0find-up:^5.0.0->^7.0.0get-port:^5.0.0->^7.1.0indent-string:^4.0.0->^5.0.0open:^7.3.1->^10.1.2pretty-ms:^7.0.1->^9.2.0wrap-ansi:^7.0.0->^9.0.0
-
CLI: Speed up command execution by asynchronously loading commands at runtime (#1245)
-
Re-order root resolution file extensions in order of most common to least common file types (#1219)
Files with no extension will now be resolved in the following order:
.ts->.tsx->.mts->.cts->.js->.jsx->.mjs->.cjs->.json -
sku init: Update template to use a named export forApp(#1262) -
deps: Updatewebpack-related dependencies (#1259)@pmmmwh/react-refresh-webpack-plugin:^0.5.15->^0.6.0babel-loader:^9.1.2->^10.0.0css-loader:^6.7.1->^7.1.2cssnano:^6.0.0->^7.0.7react-refresh:^0.14.0->^0.17.0webpack:^5.52.0->^5.99.8webpack-merge:^5.8.0->^6.0.1
-
Update
lint-stageddependency to^16.0.0(#1248) -
configure: Emit resolve sku config path to generated ESLint config (#1243) -
lint|format: Avoid redundantly loading ESLint config (#1243) -
Updated dependencies [
1fc74a6]:- @sku-lib/vite@0.1.0