Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 672 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 672 Bytes

rollup-plugin-require-context2

rollup plugin for resovling webpack require-context.

reference

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.

usage

import requireContext from 'rollup-plugin-require-context2';

export default {
  input: 'main.js',
  output: {
    file: 'bundle.js',
    format: 'iife'
  },
  plugins: [
    requireContext()
  ]
};