rollup plugin for resovling webpack require-context.
repo: https://github.com/elcarim5efil/rollup-plugin-require-context
issue: elcarim5efil#17
Due to this repo has not been updated for quite long time, and have created an issue these days. Hope it will fix very soon. So i have created my own repo to temperary fix this issue for now.
import requireContext from 'rollup-plugin-require-context2';
export default {
input: 'main.js',
output: {
file: 'bundle.js',
format: 'iife'
},
plugins: [
requireContext()
]
};