rollup-plugin-require-context2

1.0.1 • Public • Published

rollup-plugin-require-context2

rollup plugin for resovling webpack require-context.

reference

repo: https://github.com/elcarim5efil/rollup-plugin-require-context

issue: https://github.com/elcarim5efil/rollup-plugin-require-context/issues/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()
  ]
};

Package Sidebar

Install

npm i rollup-plugin-require-context2

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.31 kB

Total Files

8

Last publish

Collaborators

  • sonnyshen