mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-23 11:44:10 -05:00
* 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
21 lines
536 B
JavaScript
21 lines
536 B
JavaScript
const systemjsBehaviours = {
|
|
getExternal: ({ config: cfg }) => {
|
|
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;
|
|
},
|
|
getOutputFile: ({ pkg }) => pkg.systemjs,
|
|
getOutputName: () => undefined,
|
|
enabled: ({ pkg }) => !!pkg.systemjs,
|
|
};
|
|
|
|
module.exports = systemjsBehaviours;
|