mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Always inline dynamic imports when bundling extensions (#11100)
This ensures that the Extensions SDK always generates a single `index.js`.
This commit is contained in:
committed by
GitHub
parent
e258f3d288
commit
e009f52f1f
@@ -186,12 +186,14 @@ function getRollupOutputOptions(type: ExtensionType, output: string, options: Bu
|
||||
return {
|
||||
file: output,
|
||||
format: 'es',
|
||||
inlineDynamicImports: true,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
file: output,
|
||||
format: 'cjs',
|
||||
exports: 'default',
|
||||
inlineDynamicImports: true,
|
||||
sourcemap: options.sourceMaps,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user