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
2929``` js
3030const { createPlugins } = require (" rollup-plugin-atomic" );
3131
32- const plugins = createPlugins ([" ts" , " js " ], true );
32+ const plugins = createPlugins ([" ts" , " babel " ] );
3333
3434module .exports = {
3535 input: " src/main.ts" ,
@@ -74,6 +74,12 @@ You can pass an input plugin with their supported option:
7474createPlugins ([" ts" , {noEmitOnError: false , tsconfig: " ./lib/tsconfig.json" })
7575```
7676
77+ For adding extra plugins, you can:
78+ ``` ts
79+ import multyentry from ' @rollup/plugin-multi-entry'
80+ createPlugins ([" ts" , multyentry ())
81+ ` ` `
82+
7783### createConfig
7884
7985You 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`:
9399` ` ` js
94100const { createPlugins , createConfig } = require (" rollup-plugin-atomic" );
95101
96- const plugins = createPlugins ([" ts" , " js " ]);
102+ const plugins = createPlugins ([" ts" , " babel " ]);
97103
98104const config = createConfig (
99105 " src/main.ts" ,
You can’t perform that action at this time.
0 commit comments