v0.30.0-alpha.6
Pre-releaseOverview
This release in the v0.30.0 release introduces a new configuration flag for enabling the polyfilling of import maps or import attributes, and refreshed the starting contents of the @greenwood/init
scaffolding package.
In progress docs available here. Full release blog will come out with the final release.
If using Yarn, you can can upgrade all your Greenwood packages at once
$ yarn upgrade --scope @greenwood --latest
Changelog
https://github.com/ProjectEvergreen/greenwood/issues?q=label%3Av0.30.0+label%3Aalpha.6
- polyfill configurations for import maps and attributes
- improve init package scaffolding baseline starting point
- refine standard CSS plugin intercepting
- provide initialized
compilation
to custom loader script (and resource plugins) - livereload not reloading on SVG (image) file changes consistently
Breaking Changes
Polyfills (Import Maps / Import Attributes)
Import Maps
As Import Maps are now pretty widely supported by browser, their polyfilling has been disabled by default. To enable this for development (only), add this configuration to your greenwood.config.js
export default {
polyfills: {
importMaps: true
}
}
Import Attributes
As Import Attributes (CSS, JSON) are not widely supported across all browsers, an option has been added to greenwood.config.js if you want Greenwood to polyfill these behaviors (essentially inlining the modules contents as a default export
.
export default {
polyfills: {
importAttributes: ['css', 'json'] // choose which ones you want polyfilled
}
}
Known Issues
N / A