using my boilerplate yuh

This commit is contained in:
Sriram Hariharan
2023-02-22 22:51:38 -06:00
parent 21d7056aae
commit bce2717088
91 changed files with 32400 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
import path from 'path';
import ModuleScopePlugin from 'react-dev-utils/ModuleScopePlugin';
export const moduleResolutionPlugins = [
// this will make sure that webpack uses the tsconfig path aliases
new TsconfigPathsPlugin({
configFile: path.resolve('src', 'tsconfig.json'),
}),
// this will make sure that we don't import anything outside of the src directory from the src directory
new ModuleScopePlugin(path.resolve('src'), path.resolve('package.json')),
];