import babelrc as json code example Example: babel json loader $ npm install --save-dev babel-plugin-inline-json-import