babel-plugin-nodejs-import-images
will be transformed to
const img = require('fs').readFileSync('./img.jpg')
so you can use it like this
const app = app
will be transformed to
const img = require('fs').readFileSync('./img.jpg')
so you can use it like this
const app = app
npm i babel-plugin-nodejs-import-images
15
1.0.0
MIT