Skip to content

Commit

Permalink
fix: json files should handled by @rollup/plugin-json (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Aug 3, 2023
1 parent b94a19d commit 79ea1bd
Show file tree
Hide file tree
Showing 7 changed files with 1,272 additions and 1,202 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-llamas-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pkgr/rollup": patch
---

fix: json files should handled by @rollup/plugin-json
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@
"@types/debug": "^4.1.8",
"@types/imagemin": "^8.0.1",
"@types/is-glob": "^4.0.2",
"@types/jest": "^29.5.2",
"@types/lodash-es": "^4.17.7",
"@types/jest": "^29.5.3",
"@types/lodash-es": "^4.17.8",
"@types/micromatch": "^4.0.2",
"@types/node": "^20.4.0",
"@types/prettier": "^2.7.3",
"jest": "^29.6.0",
"patch-package": "^7.0.0",
"@types/node": "^20.4.6",
"jest": "^29.6.2",
"patch-package": "^8.0.0",
"rimraf": "^5.0.1",
"ts-jest": "^29.1.1",
"tsx": "^3.12.7",
Expand Down
4 changes: 2 additions & 2 deletions packages/imagemin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"lib"
],
"dependencies": {
"fast-glob": "^3.3.0",
"fast-glob": "^3.3.1",
"imagemin": "^8.0.1",
"imagemin-gifsicle": "^7.0.0",
"imagemin-jpegtran": "^7.0.0",
Expand All @@ -37,7 +37,7 @@
"imagemin-upng": "^4.0.0",
"imagemin-webp": "^8.0.0",
"is-glob": "^4.0.3",
"tslib": "^2.6.0"
"tslib": "^2.6.1"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 5 additions & 5 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@
"@pkgr/umd-globals": "^0.8.3",
"@pkgr/utils": "^2.4.2",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-url": "^8.0.1",
"builtin-modules": "^3.3.0",
"commander": "^11.0.0",
"core-js": "^3.31.1",
"core-js": "^3.32.0",
"debug": "^4.3.4",
"esbuild": "^0.18.11",
"esbuild": "^0.18.17",
"is-glob": "^4.0.3",
"jsox": "^1.2.118",
"lodash-es": "^4.17.21",
"micromatch": "^4.0.5",
"rollup": "^3.26.1",
"rollup": "^3.27.1",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-unassert": "^0.6.0",
"rollup-plugin-vue": "^6.0.0",
"rollup-plugin-vue-jsx-compat": "^0.0.6",
"tslib": "^2.6.0",
"tslib": "^2.6.1",
"unassert": "^2.0.2"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/rollup/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ ConfigOptions = {}): RollupOptions[] => {
define: defineValues,
minify: prod,
loaders: {
'.json': 'json',
'.js': 'jsx',
},
...esbuildOptions,
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
],
"dependencies": {
"cross-spawn": "^7.0.3",
"fast-glob": "^3.3.0",
"fast-glob": "^3.3.1",
"is-glob": "^4.0.3",
"open": "^9.1.0",
"picocolors": "^1.0.0",
"tslib": "^2.6.0"
"tslib": "^2.6.1"
},
"publishConfig": {
"access": "public"
Expand Down
2,439 changes: 1,253 additions & 1,186 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 79ea1bd

Please sign in to comment.