Skip to content

Commit c746960

Browse files
committed
chore: remove deprecated api from readme
1 parent 3134202 commit c746960

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Create a `rollup.config.js` file at the root of the project with the following c
2929
```js
3030
const { createPlugins } = require("rollup-plugin-atomic");
3131

32-
const plugins = createPlugins(["ts", "js"], true);
32+
const plugins = createPlugins(["ts", "babel"]);
3333

3434
module.exports = {
3535
input: "src/main.ts",
@@ -74,6 +74,12 @@ You can pass an input plugin with their supported option:
7474
createPlugins(["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
7985
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`:
9399
```js
94100
const { createPlugins, createConfig } = require("rollup-plugin-atomic");
95101

96-
const plugins = createPlugins(["ts", "js"]);
102+
const plugins = createPlugins(["ts", "babel"]);
97103

98104
const config = createConfig(
99105
"src/main.ts",

0 commit comments

Comments
 (0)