An open API service indexing awesome lists of open source software.

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

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)