0.1.4 • Published 4 years ago

@rvshare/shims-replacement v0.1.4

Weekly downloads
2
License
-
Repository
-
Last release
4 years ago

@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),
    ),
]
0.1.4

4 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.1-canary.4

4 years ago

0.0.1-canary.3

4 years ago

0.0.1-canary.0

4 years ago