Skip to content

Releases: aem-vite/import-rewriter

v4.1.0

29 Dec 14:00
Compare
Choose a tag to compare

4.1.0 (2021-12-29)

Bug Fixes

  • ensure css bundles aren't omitted (3a5fc78)

Features

  • restore dynamic import support (b1490d5)

v4.0.0

28 Dec 02:32
Compare
Choose a tag to compare

4.0.0 (2021-12-28)

Bug Fixes

  • resolve import transformation (05df22b)
  • resolve sourcemap warning during builds (9a7e0c1)

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

21 Sep 01:30
Compare
Choose a tag to compare

3.0.1 (2021-09-21)

Bug Fixes

  • ensure JSX extensions are captured (19ebb6c)

v3.0.0

14 Jul 13:50
Compare
Choose a tag to compare

3.0.0 (2021-07-14)

Code Refactoring

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',
  },
]

v2.0.0

13 Jun 08:41
Compare
Choose a tag to compare

2.0.0 (2021-06-13)

Features

  • automatic path rewiting with cache support (4054ff3)
  • resolve import entry path for AEM (8d51559)

BREAKING CHANGES

  • Main entry points are now rewritten

All instances of the main entry point that need to refer back to the AEM ClientLib are automatically rewritten

v1.2.1

18 May 14:58
Compare
Choose a tag to compare

1.2.1 (2021-05-18)

Bug Fixes

  • ensure chunk paths are mapped correctly (7daf43b)
  • dev: corrected plugin name (a30cd79)

v1.2.0

17 May 01:30
Compare
Choose a tag to compare

1.2.0 (2021-05-17)

Bug Fixes

Features

  • added support for native imports (65a0e1b)

v1.1.2

04 May 01:34
Compare
Choose a tag to compare

1.1.2 (2021-05-04)

Bug Fixes

  • fixed lib output not using commonjs (e42428e)

v1.1.1

01 May 14:19
Compare
Choose a tag to compare

1.1.1 (2021-05-01)

Bug Fixes

  • resolved missing files in npm package (378e9fc)

v1.1.0

01 May 13:57
7cee4c3
Compare
Choose a tag to compare

1.1.0 (2021-05-01)

Features