Webpack To Rspack/Remove Tsconfigpathsplugin Paths Plugin

/icons/calendar.svg

Last update

Oct 11, 2024

Handles the migration of the TsconfigPathsPlugin web pack plug into an included plugin in rspack.

Before

const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
module.exports = {
resolve: {
plugins: [new TsconfigPathsPlugin({})],
},
};

After

module.exports = {
resolve: {
tsConfig: {},
},
};

,This codemod turns X into Y. It also does Z. Note: this is a contrived example. Please modify it.

Before

const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
module.exports = {
resolve: {
plugins: [new TsconfigPathsPlugin.TsconfigPathsPlugin()],
},
};

After

module.exports = {
resolve: {
tsConfig: {},
},
};

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now