mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
build: update webpack for npm linking plugins (#11253)
This commit is contained in:
@@ -30,5 +30,6 @@
|
||||
"./node_modules/*superset-ui*/**/types/**/*",
|
||||
// and the type defs of their dependencies
|
||||
"./node_modules/*superset-ui*/**/node_modules/**/*.d.ts"
|
||||
]
|
||||
],
|
||||
"exclude": ["./node_modules/*superset-ui*/**/node_modules/@superset-ui/**/*"]
|
||||
}
|
||||
|
||||
@@ -265,12 +265,19 @@ const config = {
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
modules: [APP_DIR, 'node_modules'],
|
||||
alias: {
|
||||
src: path.resolve(APP_DIR, './src'),
|
||||
'react-dom': '@hot-loader/react-dom',
|
||||
stylesheets: path.resolve(APP_DIR, './stylesheets'),
|
||||
images: path.resolve(APP_DIR, './images'),
|
||||
spec: path.resolve(APP_DIR, './spec'),
|
||||
// force using absolute import path of the @superset-ui/core and @superset-ui/chart-controls
|
||||
// so that we can `npm link` viz plugins without linking these two base packages
|
||||
'@superset-ui/core': path.resolve(
|
||||
APP_DIR,
|
||||
'./node_modules/@superset-ui/core',
|
||||
),
|
||||
'@superset-ui/chart-controls': path.resolve(
|
||||
APP_DIR,
|
||||
'./node_modules/@superset-ui/chart-controls',
|
||||
),
|
||||
},
|
||||
extensions: ['.ts', '.tsx', '.js', '.jsx'],
|
||||
symlinks: false,
|
||||
|
||||
Reference in New Issue
Block a user