@aem-vite/import-rewriter
Advanced tools
Changelog
4.1.0 (2021-12-29)
aemViteCSSImportRewriter
export has been renamed to cssImportRewriter
To better align with community standards, the default export has been changed to a named export called bundlesImportRewriter
.
Changelog
3.0.0 (2021-07-14)
command
option (e5085f8)command
option in favour of plugin enforcementTo reduce any future complexity, you can define when the ES import rewriter will be executed. This can be done as shown in the below example by setting the apply
option to either build
or serve
.
Ensure that enforce
is always set to pre
as it will prevent Vite from transforming things first.
plugins: [
{
...aemViteImportRewriter({ /* ... */ }),
apply: 'build',
enforce: 'pre',
},
]