Gathering detailed insights and metrics for pnp-webpack-plugin
Gathering detailed insights and metrics for pnp-webpack-plugin
Gathering detailed insights and metrics for pnp-webpack-plugin
Gathering detailed insights and metrics for pnp-webpack-plugin
Transparently adds support for Plug'n'Play to Webpack
npm install pnp-webpack-plugin
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
264 Stars
55 Commits
20 Forks
6 Watching
17 Branches
5 Contributors
Updated on 19 Jul 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-0.7%
841,396
Compared to previous day
Last week
2.6%
4,371,331
Compared to previous week
Last month
8.5%
18,534,708
Compared to previous month
Last year
-33.1%
237,278,672
Compared to previous year
1
5
This plugin is also available for Jest (jest-pnp-resolver), Rollup (rollup-plugin-pnp-resolve), and TypeScript (ts-pnp)
yarn add -D pnp-webpack-plugin
Simply add the plugin to both the resolver
and resolveLoader
:
1const PnpWebpackPlugin = require(`pnp-webpack-plugin`); 2 3module.exports = { 4 resolve: { 5 plugins: [ 6 PnpWebpackPlugin, 7 ], 8 }, 9 resolveLoader: { 10 plugins: [ 11 PnpWebpackPlugin.moduleLoader(module), 12 ], 13 }, 14};
The resolve
entry will take care of correctly resolving the dependencies required by your program, and the resolveLoader
entry will help Webpack find the location of the loaders on the disk. Note that in this case, all loaders will be resolved relative to the package containing your configuration.
In case part of your configuration comes from third-party packages that use their own loaders, make sure they use require.resolve
- this will ensure that the resolution process is portable accross environments (including when Plug'n'Play isn't enabled), and prevent it from relying on undefined behaviors:
1module.exports = { 2 module: { 3 rules: [{ 4 test: /\.js$/, 5 loader: require.resolve('babel-loader'), 6 }] 7 }, 8};
Copyright © 2016 Maël Nison
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 3/21 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
59 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More