Skip to content

Commit f16ebf0

Browse files
author
Loïc Mangeonjean
committed
fix: bundle all files when there is a notebook renderer
1 parent e341efd commit f16ebf0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/extension-tools.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,12 @@ export async function getExtensionResources(
232232
fs: typeof nodeFs,
233233
cwd: string
234234
): Promise<ExtensionResource[]> {
235-
if (manifest.browser != null || manifest.contributes?.typescriptServerPlugins != null) {
235+
if (
236+
manifest.browser != null ||
237+
manifest.contributes?.typescriptServerPlugins != null ||
238+
(manifest.contributes?.notebookRenderer != null &&
239+
manifest.contributes.notebookRenderer.length > 0)
240+
) {
236241
// there is some js in the extension, it's impossible to predict which file will be used, bundle everything
237242
return (
238243
await glob('**/*', {

0 commit comments

Comments
 (0)