Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pnp-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pnp-webpack-plugin - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

index.js

@@ -110,1 +110,5 @@ let pnp;

};
module.exports.tsLoaderOptions = (options = {}) => pnp ? Object.assign({}, options, {
resolveModuleName: require('ts-pnp').resolveModuleName,
}) : options;

7

package.json
{
"name": "pnp-webpack-plugin",
"version": "1.1.0",
"version": "1.2.0",
"description": "plug'n'play resolver for Webpack",

@@ -22,3 +22,6 @@ "license": "MIT",

"pnp"
]
],
"dependencies": {
"ts-pnp": "^1.0.0"
}
}

@@ -50,2 +50,22 @@ # <img src="https://raw.githubusercontent.com/webpack/media/master/logo/icon-square-small.png" height="40" align="right" /> [Plug'n'Play](https://github.com/yarnpkg/rfcs/pull/101) resolver for Webpack

### `ts-loader` integration
This plugin as an integration to easily add support for TypeScript in your applications through `ts-loader`. In order to do this, just do the following:
```js
const PnpWebpackPlugin = require(`pnp-webpack-plugin`);
module.exports = {
module: {
rules: [{
test: /\.ts$/,
loader: require.resolve('ts-loader'),
options: PnpWebpackPlugin.tsLoaderOptions(),
}],
},
};
```
If you have any options you want to pass to `ts-loader`, just pass them as parameter of the `tsLoaderOptions` function and it will take care of forwarding them properly.
## License (MIT)

@@ -52,0 +72,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc