Skip to content

Commit

Permalink
Add notice for Vite usage
Browse files Browse the repository at this point in the history
  • Loading branch information
niksy committed May 8, 2023
1 parent d7b9f24 commit 2bef579
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ module.exports = {

<summary>Show me</summary>

Vite config uses combination of Rollup and esbuild plugins.
Vite config uses combination of Rollup and esbuild plugins. It’s **important**
to use dynamic import when using CommonJS configuration so ESM version of
modules is picked up. This allows Vite bundling to use our mocking
implementation and implement heuristics such as proper tree-shaking and dead
code removal marking.

```js
const inject = require('@rollup/plugin-inject');
Expand Down

0 comments on commit 2bef579

Please sign in to comment.