Minor Changes
-
BREAKING CHANGE:
targetconfiguration is now configured at the top level with an object format, supportingesversion targets along with browser version targets.Browser targets are configured with string versions such as
target: { chrome: '109', safari: '16.4' }, and scripts can specifyesas a year of2015or higher such astarget: { es: '2020' }.To migrate existing script configuration, replace
scripts.targetoptions likescripts: { target: 'es2020' }withtarget: { es: '2020' }. -
BREAKING CHANGE: Shared compiler options are now provided at the top level of
createAssetServer(). UsesourceMaps,sourceMapSourcePaths, andminifydirectly on the asset server options instead of being nested underscripts. This allows these options to also be used for styles as well as scripts.To migrate existing configuration, move
scripts.minify,scripts.sourceMaps,scripts.sourceMapSourcePathsto the top-level asset server options. -
createAssetServer()now compiles and serves.cssfiles alongside scripts, including local@importrewriting, fingerprinting, and shared compiler options for minification, source maps, and browser compatibility targeting.
Patch Changes
-
Fix matching of dot-prefixed files and directories in
allowanddenyglobs -
Improve asset server import errors to include the resolved file path when a resolved import is later rejected by validation for allow/deny rules, supported file types and
fileMapconfiguration.