Skip to content

Commit 50c5b27

Browse files
committed
docs: change format to es for new transformations
1 parent 7da2e13 commit 50c5b27

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,20 @@ Create a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/
2828

2929
```js
3030
import afterEffectJsx from "./rollup-plugin-ae-jsx";
31+
import pkg from "./package.json";
3132

3233
export default {
33-
input: "src/index.js",
34+
input: "src/index.ts",
3435
output: {
3536
file: "dist/index.jsx",
36-
format: "cjs",
37+
format: "es",
3738
},
38-
plugins: [afterEffectsJsx()],
39+
external: Object.keys(pkg.dependencies),
40+
plugins: [afterEffectJsx()],
3941
};
4042
```
4143

42-
> - The output extension should be `.jsx` and format `cjs` to ensure After Effects compatible files.
44+
> - The output extension should be `.jsx` and format `es` to ensure After Effects compatible files.
4345
> - `rollup-plugin-ae-jsx` should be placed in `plugins` _after_ any other plugins.
4446
4547
Then call `rollup` either via the [CLI](https://www.rollupjs.org/guide/en/#command-line-reference) or the [API](https://www.rollupjs.org/guide/en/#javascript-api).

0 commit comments

Comments
 (0)