Skip to content

Commit 4e1e7e0

Browse files
committed
change limitations
1 parent f862c8d commit 4e1e7e0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,15 @@ npm install rollup-plugin-ae-jsx --save-dev
2727
Create a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/en/#configuration-files), import the plugin, and add it to the `plugins` array:
2828

2929
```js
30-
import afterEffectJsx from './rollup-plugin-ae-jsx';
30+
import afterEffectJsx from "./rollup-plugin-ae-jsx";
3131

3232
export default {
33-
input: 'src/index.js',
33+
input: "src/index.js",
3434
output: {
35-
file: 'dist/index.jsx',
36-
format: 'cjs'
35+
file: "dist/index.jsx",
36+
format: "cjs",
3737
},
38-
plugins: [
39-
afterEffectsJsx()
40-
]
38+
plugins: [afterEffectsJsx()],
4139
};
4240
```
4341

@@ -48,9 +46,9 @@ Then call `rollup` either via the [CLI](https://www.rollupjs.org/guide/en/#comma
4846

4947
## Limitations
5048

51-
Since After Effects compatible JSON isn't valid JavaScript, transformations must be done on the output code as a string rather than the AST. This means success is dependant on the formatting of the code.
52-
53-
While not perfect, it works well enough for our use, but errors may occur adapting it to work with your own code.
49+
- Output code must be in a single file
50+
- Makes some manual transformations outside of the AST
51+
- Pretty experimental!
5452

5553
## Meta
5654

0 commit comments

Comments
 (0)