fix(build): enable hot reloading of linked packages (#16867)

This commit is contained in:
Ville Brofeldt 2021-09-28 16:21:17 +02:00 committed by GitHub
parent 27a40d2a67
commit 9ac55d9afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ export default function setupColors(
extraSequentialColorSchemes: SequentialScheme[] = [],
) {
registerColorSchemes(
// @ts-ignore
getCategoricalSchemeRegistry(),
[
...superset,
@ -66,6 +67,7 @@ export default function setupColors(
'supersetColors',
);
registerColorSchemes(
// @ts-ignore
getSequentialSchemeRegistry(),
[...sequentialCommon, ...sequentialD3, ...extraSequentialColorSchemes],
'superset_seq_1',

View File

@ -455,6 +455,7 @@ if (isDevMode) {
},
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 => {