mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2026-05-24 16:00:16 -04:00
13 lines
450 B
JavaScript
13 lines
450 B
JavaScript
const systemjsBehaviours = {
|
|
getExternal: ({ config: cfg }) => {
|
|
const defaultExternal = ['@nebula.js/stardust', 'picasso.js', 'picasso-plugin-q', 'react', 'react-dom'];
|
|
const { external } = cfg.systemjs || {};
|
|
return Array.isArray(external) ? external : defaultExternal;
|
|
},
|
|
getOutputFile: ({ pkg }) => pkg.systemjs,
|
|
getOutputName: () => undefined,
|
|
enabled: ({ pkg }) => !!pkg.systemjs,
|
|
};
|
|
|
|
module.exports = systemjsBehaviours;
|