feat: add host config to config and galaxy (#1628)

* feat: add host config to config and galaxy

* chore: externalize qmfe-api in systemjs package

* fix: config

* fix: update tests

* chore: update comment and add qlik/api to externals
This commit is contained in:
Tobias Åström
2024-10-15 10:29:46 +02:00
committed by GitHub
parent 5aeae2db53
commit 71e053bff7
5 changed files with 25 additions and 1 deletions

View File

@@ -1,6 +1,14 @@
const systemjsBehaviours = {
getExternal: ({ config: cfg }) => {
const defaultExternal = ['@nebula.js/stardust', 'picasso.js', 'picasso-plugin-q', 'react', 'react-dom'];
const defaultExternal = [
'@nebula.js/stardust',
'picasso.js',
'picasso-plugin-q',
'react',
'react-dom',
'@qlik-trial/qmfe-api',
'@qlik/api',
];
const { external } = cfg.systemjs || {};
return Array.isArray(external) ? external : defaultExternal;
},