@@ -29,19 +29,6 @@ const EXTERNAL_HUBBLE_SRC = join(LIB_DIR, '../../hubble.gl');
29
29
30
30
const port = 8080 ;
31
31
32
- // add alias to serve from kepler src, resolve libraries so there is only one copy of them
33
- const RESOLVE_LOCAL_ALIASES = {
34
- react : `${ NODE_MODULES_DIR } /react` ,
35
- 'react-dom' : `${ NODE_MODULES_DIR } /react-dom` ,
36
- 'react-redux' : `${ NODE_MODULES_DIR } /react-redux/lib` ,
37
- 'styled-components' : `${ NODE_MODULES_DIR } /styled-components` ,
38
- 'react-intl' : `${ NODE_MODULES_DIR } /react-intl` ,
39
- // Suppress useless warnings from react-date-picker's dep
40
- 'tiny-warning' : `${ SRC_DIR } /utils/src/noop.ts` ,
41
- // kepler.gl and loaders.gl need to use same apache-arrow
42
- 'apache-arrow' : `${ NODE_MODULES_DIR } /apache-arrow`
43
- } ;
44
-
45
32
const getThirdPartyLibraryAliases = useKeplerNodeModules => {
46
33
const node_modules_dir = useKeplerNodeModules ? NODE_MODULES_DIR : BASE_NODE_MODULES_DIR ;
47
34
@@ -54,9 +41,7 @@ const getThirdPartyLibraryAliases = useKeplerNodeModules => {
54
41
// Suppress useless warnings from react-date-picker's dep
55
42
...( useKeplerNodeModules ? { 'tiny-warning' : `${ SRC_DIR } /utils/src/noop.ts` } : { } ) ,
56
43
// kepler.gl and loaders.gl need to use same apache-arrow
57
- 'apache-arrow' : `${ node_modules_dir } /apache-arrow` ,
58
- // all react-ai-assist needs to be resolved from samenode_modules
59
- 'react-ai-assist' : `${ node_modules_dir } /react-ai-assist`
44
+ 'apache-arrow' : `${ node_modules_dir } /apache-arrow`
60
45
} ;
61
46
} ;
62
47
@@ -103,6 +88,8 @@ function addAliases(externals, args) {
103
88
resolveAlias [ '@openassistant/ui' ] = join ( LIB_DIR , '../openassistant/packages/ui/src' ) ;
104
89
resolveAlias [ '@openassistant/echarts' ] = join ( LIB_DIR , '../openassistant/packages/echarts/src' ) ;
105
90
resolveAlias [ '@openassistant/geoda' ] = join ( LIB_DIR , '../openassistant/packages/geoda/src' ) ;
91
+ resolveAlias [ '@openassistant/duckdb' ] = join ( LIB_DIR , '../openassistant/packages/duckdb/src' ) ;
92
+ resolveAlias [ '@openassistant/common' ] = join ( LIB_DIR , '../openassistant/packages/common/src' ) ;
106
93
resolveAlias [ '@kepler.gl/ai-assistant' ] = join ( SRC_DIR , 'ai-assistant/src' ) ;
107
94
}
108
95
0 commit comments