Skip to content

Commit

Permalink
Update rollup.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Gennnji authored Jan 29, 2020
1 parent 48a96fd commit e5fbc75
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rollup.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ This creates `main.js` and `vendor.js`.
#### Terminal

```bash
npm install -D rollup-plugin-json
npm install -D @rollup/plugin-json
```

#### rollup.config.js

```js
import json from 'rollup-plugin-json'
import json from '@rollup/plugin-json'

export default {
input: 'src/main.js',
Expand All @@ -97,12 +97,12 @@ export default {

#### Terminal
```bash
npm install --save-dev rollup-plugin-node-resolve
npm install -D @rollup/plugin-node-resolve
```

#### rollup.config.js
```js
import resolve from 'rollup-plugin-node-resolve'
import resolve from '@rollup/plugin-node-resolve'

export default {
input: 'src/main.js',
Expand All @@ -121,13 +121,13 @@ When you run a npm run build, no warning is emitted and contains the imported mo
#### Terminal

```bash
npm install -D rollup-plugin-node-resolve
npm install -D @rollup/plugin-node-resolve
```

#### rollup.config.js

```js
import resolve from 'rollup-plugin-node-resolve'
import resolve from '@rollup/plugin-node-resolve'

export default {
input: 'src/main.js',
Expand Down Expand Up @@ -157,7 +157,7 @@ npm install -D rollup-plugin-babel
#### rollup.config.js

```js
import resolve from 'rollup-plugin-node-resolve'
import resolve from '@rollup/plugin-node-resolve'
import babel from 'rollup-plugin-babel'

export default {
Expand Down

0 comments on commit e5fbc75

Please sign in to comment.