Skip to content

Commit dc97aec

Browse files
committed
Replace @rollup/plugin-buble with @rollup/plugin-babel
1 parent 1afc4c6 commit dc97aec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"devDependencies": {
6464
"@babel/core": "^7.17.8",
6565
"@babel/preset-env": "^7.16.11",
66-
"@rollup/plugin-buble": "^0.21.3",
66+
"@rollup/plugin-babel": "^5.3.1",
6767
"@rollup/plugin-commonjs": "^19.0.2",
6868
"@rollup/plugin-node-resolve": "^13.1.3",
6969
"@rollup/plugin-replace": "^2.4.2",

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import buble from '@rollup/plugin-buble'
1+
import { babel } from '@rollup/plugin-babel'
22
import replace from '@rollup/plugin-replace'
33
import resolve from '@rollup/plugin-node-resolve'
44
import commonjs from '@rollup/plugin-commonjs'
@@ -68,7 +68,7 @@ function createEntry(config) {
6868
}))
6969

7070
if (config.transpile !== false) {
71-
c.plugins.push(buble({ transforms: { asyncAwait: false, forOf: false }}))
71+
c.plugins.push(babel({ babelHelpers: 'bundled' }))
7272
}
7373

7474
c.plugins.push(resolve())

0 commit comments

Comments
 (0)