mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -05:00
fix: support qlik/api (#1789)
This commit is contained in:
@@ -67,7 +67,7 @@ const config = ({
|
||||
mode = 'production',
|
||||
format = 'umd',
|
||||
cwd = process.cwd(),
|
||||
argv = { sourcemap: true, codeSplit: false },
|
||||
argv = { sourcemap: true, codeSplit: false, inlineDynamic: false },
|
||||
core,
|
||||
behaviours: {
|
||||
getExternal = getExternalDefault,
|
||||
@@ -134,7 +134,7 @@ const config = ({
|
||||
} else {
|
||||
outputConfig.dir = path.resolve(dir, outputFile.split('/')[0]);
|
||||
}
|
||||
if (format === 'umd') {
|
||||
if (format === 'umd' || argv.inlineDynamic) {
|
||||
outputConfig.inlineDynamicImports = true;
|
||||
}
|
||||
return outputConfig;
|
||||
|
||||
@@ -60,6 +60,11 @@ const options = {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
inlineDynamic: {
|
||||
description: 'Sets inlineDynamicImports to true for all builds to help with certain dependencies',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
};
|
||||
|
||||
// nebula build --watch - watch umd bundle
|
||||
|
||||
@@ -7,7 +7,6 @@ const systemjsBehaviours = {
|
||||
'react',
|
||||
'react-dom',
|
||||
/^(?!@qlik-trial\/qmfe-data-client-parcels)(@qlik-trial\/qmfe-)/,
|
||||
/^@qlik\/api\//,
|
||||
];
|
||||
const { external } = cfg.systemjs || {};
|
||||
return Array.isArray(external) ? external : defaultExternal;
|
||||
|
||||
Reference in New Issue
Block a user