Files
nebula.js/commands/build/lib/systemjs.js
Tobias Åström 71e053bff7 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
2024-10-15 10:29:46 +02:00

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;