Releases: aem-vite/import-rewriter
Releases · aem-vite/import-rewriter
v4.1.0
v4.0.0
4.0.0 (2021-12-28)
Bug Fixes
BREAKING CHANGES
- Dynamic imports are no longer rewritten
Please ensure that the base
path in your Vite configuration matches your ClientLib proxy path as Vite will automatically prefix imports using it.
v3.0.1
v3.0.0
3.0.0 (2021-07-14)
Code Refactoring
- removed
command
option (e5085f8)
Features
- added static asset rewriter for css (9068bcc)
BREAKING CHANGES
- Removed
command
option in favour of plugin enforcement
To 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',
},
]