Aakash-kumar-dev

webpack/v5/migrate-library-target-to-library-object

No description available

webpackmigrationcodemod
Public
1,876 executions
0 stars
Run locally
Documentation

This codemod migrates the output.library and output.libraryTarget properties in Webpack configurations to the new format required by Webpack 5. It changes output.library to output.library.name and output.libraryTarget to output.library.type.

Example

Before

ts

After

ts

,

Before

ts

After

ts

,

Before

ts

After

ts

,

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.