Skip to content

Commit 2d17b79

Browse files
committed
update rollup 2
1 parent de8dc73 commit 2d17b79

File tree

3 files changed

+116
-801
lines changed

3 files changed

+116
-801
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@babel/core": "^7.26.0",
2727
"@babel/plugin-external-helpers": "^7.25.9",
2828
"@babel/preset-env": "^7.26.0",
29+
"@rollup/plugin-babel": "^6.0.4",
2930
"babel-jest": "^29.7.0",
3031
"blob-stream": "^0.1.2",
3132
"brace": "^0.11.1",
@@ -42,9 +43,8 @@
4243
"pdfjs-dist": "^2.14.305",
4344
"prettier": "1.19.1",
4445
"pug": "^3.0.3",
45-
"rollup": "^1.27.0",
46-
"rollup-plugin-babel": "^4.3.3",
47-
"rollup-plugin-cpy": "^2.0.1"
46+
"rollup": "^2.79.2",
47+
"rollup-plugin-copy": "^3.5.0"
4848
},
4949
"dependencies": {
5050
"crypto-js": "^4.2.0",

rollup.config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pkg from './package.json';
2-
import babel from 'rollup-plugin-babel';
3-
import copy from 'rollup-plugin-cpy';
2+
import { babel } from '@rollup/plugin-babel';
3+
import copy from 'rollup-plugin-copy';
44

55
const external = [
66
'stream',
@@ -35,6 +35,7 @@ export default [
3535
},
3636
plugins: [
3737
babel({
38+
babelHelpers: 'bundled',
3839
babelrc: false,
3940
presets: [
4041
[
@@ -49,8 +50,9 @@ export default [
4950
]
5051
}),
5152
copy({
52-
files: ['lib/font/data/*.afm', 'lib/mixins/data/*.icc'],
53-
dest: 'js/data'
53+
targets: [
54+
{ src: ['lib/font/data/*.afm', 'lib/mixins/data/*.icc'], dest: 'js/data' },
55+
]
5456
})
5557
]
5658
},
@@ -66,6 +68,7 @@ export default [
6668
},
6769
plugins: [
6870
babel({
71+
babelHelpers: 'bundled',
6972
babelrc: false,
7073
presets: [
7174
[
@@ -92,6 +95,7 @@ export default [
9295
},
9396
plugins: [
9497
babel({
98+
babelHelpers: 'bundled',
9599
babelrc: false,
96100
presets: [
97101
[

0 commit comments

Comments
 (0)