Skip to content

Commit

Permalink
fix: Stop overriding the default webpack resolve algorithm
Browse files Browse the repository at this point in the history
* By default webpack resolve/modules contains the placeholder 'node_modules'
  which recursively checks each dependency for their own node_modules
  directory. The current config does not contain this so no recursive
  resolution occurs.

* No need for the override at all so removing from all webpack configs
  • Loading branch information
phantomjinx committed Nov 17, 2023
1 parent f2230e9 commit 623e27b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/kubernetes-api-app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ module.exports = () => {
/Failed to parse source map/,
],
resolve: {
modules: [path.resolve(__dirname, 'node_modules'), path.resolve(__dirname, '../../node_modules')],
extensions: ['.js', '.ts', '.tsx', '.jsx'],
alias: {
'react-native': 'react-native-web',
Expand Down
1 change: 0 additions & 1 deletion packages/management-api-app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ module.exports = () => {
/Failed to parse source map/,
],
resolve: {
modules: [path.resolve(__dirname, 'node_modules'), path.resolve(__dirname, '../../node_modules')],
extensions: ['.js', '.ts', '.tsx', '.jsx'],
alias: {
'react-native': 'react-native-web',
Expand Down
1 change: 0 additions & 1 deletion packages/oauth-app/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ module.exports = () => {
/Failed to parse source map/,
],
resolve: {
modules: [path.resolve(__dirname, 'node_modules'), path.resolve(__dirname, '../../node_modules')],
extensions: ['.js', '.ts', '.tsx', '.jsx'],
alias: {
'react-native': 'react-native-web',
Expand Down
1 change: 0 additions & 1 deletion packages/online-shell/webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ const common = mode => {
/Failed to parse source map/,
],
resolve: {
modules: [path.resolve(__dirname, 'node_modules'), path.resolve(__dirname, '../../node_modules')],
extensions: ['.js', '.ts', '.tsx', '.jsx'],
alias: {
'react-native': 'react-native-web',
Expand Down

0 comments on commit 623e27b

Please sign in to comment.