0.2.0 • Published 4 years ago

pnp-node-externals v0.2.0

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

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

0.2.0

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago