You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,18 +28,20 @@ Create a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/
28
28
29
29
```js
30
30
importafterEffectJsxfrom"./rollup-plugin-ae-jsx";
31
+
importpkgfrom"./package.json";
31
32
32
33
exportdefault {
33
-
input:"src/index.js",
34
+
input:"src/index.ts",
34
35
output: {
35
36
file:"dist/index.jsx",
36
-
format:"cjs",
37
+
format:"es",
37
38
},
38
-
plugins: [afterEffectsJsx()],
39
+
external:Object.keys(pkg.dependencies),
40
+
plugins: [afterEffectJsx()],
39
41
};
40
42
```
41
43
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.
43
45
> -`rollup-plugin-ae-jsx` should be placed in `plugins`_after_ any other plugins.
44
46
45
47
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