Skip to content

Commit

Permalink
Add support for importing JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmurphy committed Aug 19, 2019
1 parent 6f48ef6 commit 1695eeb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.0] - 2019-08-19

### Added

- Added support for importing `.json` files with `rollup-plugin-json`.

## [0.3.0] - 2019-07-29

### Added
Expand Down
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"rollup": "^1.17.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.0.1",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.1.1",
"tiny-glob": "^0.2.6",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import builtinModules from 'builtin-modules';
import { rollup, OutputOptions, InputOptions } from 'rollup';
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';
import nodeResolve from 'rollup-plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
import glob from 'tiny-glob';
Expand Down Expand Up @@ -79,6 +80,7 @@ async function createRollupConfig({
},
nodeResolve({ extensions }),
commonjs(),
json(),
babel({
babelrc: false,
exclude: 'node_modules/**',
Expand Down

0 comments on commit 1695eeb

Please sign in to comment.