Skip to content

Commit 1695eeb

Browse files
committed
Add support for importing JSON files
1 parent 6f48ef6 commit 1695eeb

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.4.0] - 2019-08-19
11+
12+
### Added
13+
14+
- Added support for importing `.json` files with `rollup-plugin-json`.
15+
1016
## [0.3.0] - 2019-07-29
1117

1218
### Added

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"rollup": "^1.17.0",
4747
"rollup-plugin-babel": "^4.3.3",
4848
"rollup-plugin-commonjs": "^10.0.1",
49+
"rollup-plugin-json": "^4.0.0",
4950
"rollup-plugin-node-resolve": "^5.2.0",
5051
"rollup-plugin-terser": "^5.1.1",
5152
"tiny-glob": "^0.2.6",

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import builtinModules from 'builtin-modules';
99
import { rollup, OutputOptions, InputOptions } from 'rollup';
1010
import babel from 'rollup-plugin-babel';
1111
import commonjs from 'rollup-plugin-commonjs';
12+
import json from 'rollup-plugin-json';
1213
import nodeResolve from 'rollup-plugin-node-resolve';
1314
import { terser } from 'rollup-plugin-terser';
1415
import glob from 'tiny-glob';
@@ -79,6 +80,7 @@ async function createRollupConfig({
7980
},
8081
nodeResolve({ extensions }),
8182
commonjs(),
83+
json(),
8284
babel({
8385
babelrc: false,
8486
exclude: 'node_modules/**',

0 commit comments

Comments
 (0)