A webpack plugin that post-compiles specified node_modules packages (e.g., those listed in `compileDependencies` or marked with `postCompile`) using the same loaders as your application source, enabling trasformation of dependencies like Babel or TypeScript. Version 1.2.3 is current; active development with infrequent releases. Compared to alternatives like `webpack-loader`, it uses `package.json` config to declare which packages need post-compilation, supporting micromatch patterns (>=1.0.0) and multiple configuration methods. Requires Webpack >=3.
npm install webpack-post-compile-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows minimal configuration with webpack to post-compile a specific node module using babel-loader.
Update config to use micromatch patterns if needed, or keep boolean `true`.
Use `compileDependencies` or `compilePaths` options.
Use a positive `include` pattern in the loader rule that matches the packages you want to compile (e.g., include the app directory and then exclude only non-post-compile node_modules).
List all transitive dependencies that need post-compilation in `compileDependencies` or ensure they have `postCompile` in their package.json.
Run `npm install micromatch@^4.0.0` or reinstall the package.
Adjust the loader rule to include the package: `include: [path.resolve(__dirname, 'node_modules/some-module')]`.
Use `new PostCompilePlugin()`.