Files
nebula.js/commands/build/lib/systemjs.js
Tobias Åström d227626473 chore: fix mixin and external mod (#1817)
* chore: fix mixin and external mod

* chore: add back to root

* chore: add systemjs build of stardust

* chore: trigger diff

* fix: remove typo import
2025-10-02 18:55:27 +02:00

21 lines
599 B
JavaScript

const systemjsBehaviours = {
getExternal: ({ config: cfg }) => {
const defaultExternal = [
'@nebula.js/stardust',
'picasso.js',
'picasso-plugin-q',
'react',
'react-dom',
'@qlik-trial/sprout-css-modules',
/^(?!@qlik-trial\/qmfe-data-client-parcels)(@qlik-trial\/qmfe-)/,
];
const { external } = cfg.systemjs || {};
return Array.isArray(external) ? external : defaultExternal;
},
getOutputFile: ({ pkg }) => pkg.systemjs,
getOutputName: () => undefined,
enabled: ({ pkg }) => !!pkg.systemjs,
};
module.exports = systemjsBehaviours;