This release is mostly focused on maintaining and improving existing features. The one new feature lets you opt-out of externalizing certain WordPress dependencies (if you are using @roots/bud-preset-wordpress or @roots/sage). For more information check out the updated @roots/bud-preset-wordpress docs.
Potentially breaking change
@roots/sage: previously bud.splitChunks('single')
was called for production builds. This is no longer the default for two reasons:
- If you have an editor entrypoint and an app entrypoint (common), it is possible that editor dependencies could be extracted into the common chunk. This can lead to Acorn enqueuing those dependencies for both
app
andeditor
, even if they were only used in one (since the shared vendor module contains references to the dependencies). - This is very easy to address as part of your application and that approach is preferred. Especially now that top-level async/await is available for bud.js application modules.
- If you really want a vendors chunk, just call
bud.splitChunks()
or pass the--splitChunks
flag.
What’s Changed
docs: improve docs by @kellymears in 📕 docs: improve docs by kellymears · Pull Request #2368 · roots/bud · GitHub
fix(patch): register command type error after extension uninstall by @kellymears in https://github.com/roots/bud/pull/2372
improve(minor): internals & tests by @kellymears in https://github.com/roots/bud/pull/2373
chore(none): cleanup by @kellymears in https://github.com/roots/bud/pull/2376
deps(patch): bump vitest from 0.32.2 to 0.33.0 by @dependabot in https://github.com/roots/bud/pull/2375
deps(deps): bump @babel/core from 7.22.5 to 7.22.9 by @dependabot in https://github.com/roots/bud/pull/2374
deps(deps): bump ts-loader from 9.4.3 to 9.4.4 by @dependabot in https://github.com/roots/bud/pull/2356
deps(deps): bump @babel/runtime from 7.22.5 to 7.22.6 by @dependabot in https://github.com/roots/bud/pull/2355
deps(minor): upgrade by @kellymears in https://github.com/roots/bud/pull/2377
fix(none): readme generation by @kellymears in https://github.com/roots/bud/pull/2378
fix(none): nightly release by @kellymears in https://github.com/roots/bud/pull/2383
fix: parallelism by @kellymears in https://github.com/roots/bud/pull/2386
improve: build performance by @kellymears in https://github.com/roots/bud/pull/2387
deps(deps): bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in https://github.com/roots/bud/pull/2384
deps(deps): bump esbuild from 0.18.13 to 0.18.14 by @dependabot in https://github.com/roots/bud/pull/2379
improve: error handling by @kellymears in https://github.com/roots/bud/pull/2388
deps(deps): bump esbuild-wasm from 0.18.13 to 0.18.14 by @dependabot in https://github.com/roots/bud/pull/2380
feat(minor): configurable wordpress externals by @kellymears in https://github.com/roots/bud/pull/2389
fix(patch):
--editor
warning when--editor
not used by @kellymears in https://github.com/roots/bud/pull/2390fix(patch): multi-compiler uncaught errors in dev by @kellymears in https://github.com/roots/bud/pull/2392
docs: fix @roots/bud-sass installation docs by @xeader in https://github.com/roots/bud/pull/2391
improve: stricter typings by @kellymears in https://github.com/roots/bud/pull/2393
types(patch): strict typings by @kellymears in https://github.com/roots/bud/pull/2394
improve: typings & tests by @kellymears in https://github.com/roots/bud/pull/2395
types(none): improve typechecking by @kellymears in https://github.com/roots/bud/pull/2396
docs(none): wordpress enqueues by @kellymears in https://github.com/roots/bud/pull/2397
fix(patch): fix casing in dashboard of Dev by @kellymears in https://github.com/roots/bud/pull/2398
improve(minor): no split chunks (@roots/sage) by @kellymears in https://github.com/roots/bud/pull/2399
New Contributors
- @xeader made their first contribution in https://github.com/roots/bud/pull/2391
Full Changelog: https://github.com/roots/bud/compare/v6.14.3...v6.15.0