broccoli-json-module
v1.0.0 broccoli-plugin json es6 modules
broccoli-json-module
Converts JSON files to ES6 modules. .json
files will be transpiled into .js
files with the json contents as the default export.
A file named config.json
with contents {}
will be transformed into config.js
with contents export default {};
.
Installation
npm install --save-dev broccoli-json-module
Usage
var json = require('broccoli-json-module');
tree = json(tree);
npm i broccoli-json-module
Metadata
- MIT
- Whatever
- Gordon L. Hempton
- released 1/25/2017