Skip to content

Commit 7d8ad64

Browse files
committed
parse json for terser
1 parent 8aef656 commit 7d8ad64

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

package-lock.json

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"devDependencies": {
1414
"@babel/core": "^7.26.9",
1515
"@babel/preset-env": "^7.26.9",
16+
"@rollup/plugin-json": "^6.1.0",
1617
"@rollup/plugin-terser": "^0.4.4",
1718
"babel-jest": "^29.7.0",
1819
"jest": "^29.7.0",

rollup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import terser from '@rollup/plugin-terser';
2+
import json from '@rollup/plugin-json';
23

34
export default {
45
input: 'src/index.js',
@@ -9,6 +10,7 @@ export default {
910
sourcemap: false
1011
},
1112
plugins: [
13+
json(),
1214
terser({
1315
compress: {
1416
drop_console: true,

0 commit comments

Comments
 (0)