fix(build): make npm linking work pt. 2 (#16958)
* fix(build): make npm linking work pt. 2
* remove explicit symlinks conf
diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js
index 440812b..2a5f89e 100644
--- a/superset-frontend/webpack.config.js
+++ b/superset-frontend/webpack.config.js
@@ -289,9 +289,9 @@
APP_DIR,
'./node_modules/@superset-ui/chart-controls',
),
+ react: path.resolve('./node_modules/react'),
},
extensions: ['.ts', '.tsx', '.js', '.jsx', '.yml'],
- symlinks: false,
fallback: {
fs: false,
vm: false,
@@ -455,7 +455,6 @@
},
static: path.join(process.cwd(), '../static/assets'),
};
- config.watchOptions = { followSymlinks: true };
// make sure to use @emotion/* modules in the root directory
fs.readdirSync(path.resolve(APP_DIR, './node_modules/@emotion'), pkg => {