Releases: preactjs/preact-cli
[email protected]
Minor Changes
-
#1798
96fc0f3Thanks @rschristian! - TypeScript is now an optional peer dependency, rather than a direct dependency, ofpreact-cli.If you use TypeScript in your projects (
.tsor.tsx), you will need to have your own version of TypeScript installed and added to yourpackage.json. This gives you greator control over the version of TypeScript used and most already have TypeScript listed as a dependency anyways.For those not using TypeScript, no change is needed, and this should make your
node_modulesdirectory a bit smaller (~20% w/ barebones dependency list).
[email protected]
Patch Changes
-
#1785
a4968eeThanks @rschristian! - If--prerenderUrlsfile exists on the disk, but it cannot be processed (thrown errors, incorrect format, etc), the build should error out rather than continue with a warning. -
#1794
047837dThanks @teodragovic! - Output CSS source map on build
[email protected]
Patch Changes
- #1774
05ba4b2Thanks @rschristian! - Injects necessary Node options config into new projects if user's Node version is 16+
[email protected]
Patch Changes
-
#1770
a526a00Thanks @rschristian! - Fix for devServer info output possibly not matching up against devServer config -
#1761
fb100b3Thanks @rschristian! - Support proxied loaders w/getLoadersByName()method in users'preact.config.js -
#1336
bea4f50Thanks @developit! - Temp files generated bypreact-cliare now unique to a build, allowing for concurrent instances to run at the same time.
@preact/[email protected]
Patch Changes
- #1763
3c371f7Thanks @rschristian! - Fix for possible type error inasync-loader
[email protected]
Patch Changes
-
#1756
a41d498Thanks @rschristian! - Improves prerender error message's output and positioning -
#1760
a789c9dThanks @rschristian!- Fixed bug in which
--esmwas not enabled by default for production builds on v3.4.2 - Fixed bug in which
--brotliwould overwrite existing assets
- Fixed bug in which
[email protected]
Patch Changes
-
#1749
691a4e2Thanks @AlexanderShushunov! - Add support for avif images format -
#1736
396aec8Thanks @rschristian! - Fix for CSS assets sometimes being mistakenly labeled as 'scripts' in the push-manifest. -
#1735
099876bThanks @rschristian! - Restrictspreact.config.js'senvtypes into a more idiomatic subset -
#1754
227bfb7Thanks @rschristian! - Corrects status code when there is a fatal Webpack error in production builds -
#1741
82662afThanks @rschristian! - Fix for source maps containing incorrect paths
[email protected]
Patch Changes
- #1711
5eb5d00Thanks @rschristian! - Fix ensures that the load-manifest is only attempted to be built in prod. It serves no use in dev (as preloading is limited to prod) and can create a race condition when used alongside HMR.
[email protected]
Minor Changes
-
#1674
0346549Thanks @rschristian! - Supports consuming "proxy" from package.json to proxy API requests in watch mode -
#1671
8d3bd42Thanks @rschristian! - Any environment variables prefixed with 'PREACT_APP_' will automatically be available for reference and use in your application without having to configureDefinePluginany more. Furthermore, if a.envfile exists in the root of your application, any variables it defines will automatically be available for use.Huge shout out to robinvdvleuten who provided this functionality through the
preact-cli-plugin-env-varspackage in the past.
Patch Changes
-
#1667
a56d904Thanks @rschristian! - Allows users to author prerender-urls.js as ESM once again -
#1693
6385ec1Thanks @rschristian! - Bumps dependencies to latest versions where possible and applicable. -
#1680
fcd0375Thanks @rschristian! - Fixed bug in push-manifest that would result in undefined entries -
#1670
7afd8bbThanks @rschristian! - Corrects 'build --json' ouput location and 'apple-touch-icon' will respect the publicPath automatically -
#1700
a60f8dfThanks @rschristian! - Removes the archived & non-recommended 'material' template from 'preact list' output -
#1426
7d33cd1Thanks @VanTanev! - Improves prerender error message when offending use of browser globals cannot be found -
#1705
f9ef9b1Thanks @rschristian! - Fixes HMR /--refreshflag in watch mode
[email protected]
Patch Changes
-
#1659
d452863Thanks @rschristian! - Correctspush-manifest.jsongeneration in non-ESM builds -
#1658
6af4e9dThanks @rschristian! - Clarifies when the--templateflag is necessary in the CLI help information.