File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Create a `rollup.config.js` file at the root of the project with the following c
29
29
``` js
30
30
const { createPlugins } = require (" rollup-plugin-atomic" );
31
31
32
- const plugins = createPlugins ([" ts" , " js " ], true );
32
+ const plugins = createPlugins ([" ts" , " babel " ] );
33
33
34
34
module .exports = {
35
35
input: " src/main.ts" ,
@@ -74,6 +74,12 @@ You can pass an input plugin with their supported option:
74
74
createPlugins ([" ts" , {noEmitOnError: false , tsconfig: " ./lib/tsconfig.json" })
75
75
```
76
76
77
+ For adding extra plugins, you can:
78
+ ``` ts
79
+ import multyentry from ' @rollup/plugin-multi-entry'
80
+ createPlugins ([" ts" , multyentry ())
81
+ ` ` `
82
+
77
83
### createConfig
78
84
79
85
You can use ` createConfig ` to create the configs you need. This is a simple wrapper around the rollup config.
@@ -93,7 +99,7 @@ An example that uses `createConfig`:
93
99
` ` ` js
94
100
const { createPlugins , createConfig } = require (" rollup-plugin-atomic" );
95
101
96
- const plugins = createPlugins ([" ts" , " js " ]);
102
+ const plugins = createPlugins ([" ts" , " babel " ]);
97
103
98
104
const config = createConfig (
99
105
" src/main.ts" ,
You can’t perform that action at this time.
0 commit comments