pnp-node-externals
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Plug'n'Play Webpack Node Externals

This is the pnp support version of webpack-node-externals.

However, it does not provide additional options, such as including certain modules in the bundle with allowlist.

When using this package, all imports are not included in the bundle.

Quick usage

$ yarn add pnp-node-externals --dev

In your webpack.config.js

const pnpNodeExternals = require('pnp-node-externals')
 
module.exports = {
  // ...
  target: 'node',
  externals: [
    pnpNodeExternals(),
  ]
}

Reference

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i pnp-node-externals

    Weekly Downloads

    5

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    1.95 kB

    Total Files

    4

    Last publish

    Collaborators

    • tonyfromundefined