This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@rvshare/shims-replacement

0.1.4 • Public • Published

@rvshare/shims-replacement

webpack module replacements for shims/polyfill packages. This is used to replace shims in third party modules with native implementations, which in turn are polyfilled independently in the application.

Inspiration: https://twitter.com/lencioni/status/1199719613509980160

Source: https://gist.github.com/lencioni/6bccd9e5071271da4175776de29f25d0

Usage

// your webpack.config file
const shimsReplacements = require ('@rvshare/shims-replacement')

plugins: [
    ...shimsReplacements().map(
    ([regex, filePath]) => new webpack.NormalModuleReplacementPlugin(regex, filePath),
    ),
]

Readme

Keywords

none

Package Sidebar

Install

npm i @rvshare/shims-replacement

Weekly Downloads

2

Version

0.1.4

License

none

Unpacked Size

4.88 kB

Total Files

24

Last publish

Collaborators

  • giantrotta24
  • zjwhitehead