Socket
Socket
Sign inDemoInstall

@aem-vite/import-rewriter

Package Overview
Dependencies
184
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1

4.1.0

Diff

Changelog

Source

4.1.0 (2021-12-29)

Bug Fixes

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

Features

  • restore dynamic import support (b1490d5)

BREAKING CHANGES

  • The default export has been replaced with a named export
  • The 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.

c.shaw
published 4.0.0 •

Changelog

Source

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.

c.shaw
published 3.0.1 •

Changelog

Source

3.0.1 (2021-09-21)

Bug Fixes

  • ensure JSX extensions are captured (19ebb6c)
c.shaw
published 3.0.0 •

Changelog

Source

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',
  },
]
c.shaw
published 2.0.0 •

Changelog

Source

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

c.shaw
published 1.2.1 •

Changelog

Source

1.2.1 (2021-05-18)

Bug Fixes

  • ensure chunk paths are mapped correctly (7daf43b)
  • dev: corrected plugin name (a30cd79)
c.shaw
published 1.2.0 •

Changelog

Source

1.2.0 (2021-05-17)

Bug Fixes

Features

  • added support for native imports (65a0e1b)
c.shaw
published 1.1.2 •

Changelog

Source

1.1.2 (2021-05-04)

Bug Fixes

  • fixed lib output not using commonjs (e42428e)
c.shaw
published 1.1.1 •

Changelog

Source

1.1.1 (2021-05-01)

Bug Fixes

  • resolved missing files in npm package (378e9fc)
c.shaw
published 1.1.0 •

Changelog

Source

1.1.1 (2021-05-01)

Bug Fixes

  • resolved missing files in npm package (378e9fc)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc