https://github.com/panoply/rollup-plugin-jsonc
:trollface: Rollup plugin that supports both JSONC and JSON files
https://github.com/panoply/rollup-plugin-jsonc
json jsonc rollup rollup-plugin
Last synced: about 2 months ago
JSON representation
:trollface: Rollup plugin that supports both JSONC and JSON files
- Host: GitHub
- URL: https://github.com/panoply/rollup-plugin-jsonc
- Owner: panoply
- License: wtfpl
- Created: 2020-05-30T07:31:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-03T06:11:02.000Z (almost 3 years ago)
- Last Synced: 2026-03-29T01:27:13.207Z (3 months ago)
- Topics: json, jsonc, rollup, rollup-plugin
- Language: JavaScript
- Homepage:
- Size: 2.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# rollup-plugin-jsonc
[Rollup](https://rollupjs.org) plugin to support JSON and JSONC (json with comments) file types.
## Why?
Because the rollup hall monitor said [no](https://github.com/rollup/plugins/issues/44) :trollface:
## Install
```cli
i rollup-plugin-jsonc --save-dev
```
## Usage
```js
import jsonc from "rollup-plugin-jsonc";
export default {
input: "src/index.js",
output: {
dir: "output",
format: "cjs",
},
plugins: [
jsonc(),
],
};
```
## License
[WTFPL](#LICENSE)