webpack-polyfill

0.1.1 • Public • Published

webpack-polyfill

There is an api available in webpack for modules. Unfortunately if you have a universal application that is not built with webpack using that API will break your application. This polyfill allows for limited use of the webpack module API without running your code through webpack. Support functions are:

  • require.ensure
  • require.context
  • require.resolveWeak

NOTE: It is recommended you do NOT use this and instead build your server properly with webpack. Unfortunately it may not always possible to do this because of your project's political or legacy requirements.

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-polyfill

Weekly Downloads

1

Version

0.1.1

License

CC0-1.0

Last publish

Collaborators

  • izaakschroeder