Skip to content

Commit cd8cdbc

Browse files
authored
Merge pull request #744 from CodinGame/lmn/fix-standalone-languages
Fix standalone languages
2 parents 21c4067 + 2e5a6ab commit cd8cdbc

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= <[email protected]>
3+
Date: Tue, 25 Nov 2025 19:06:58 +0100
4+
Subject: [PATCH] fix: add basic language contribution as entry
5+
6+
to make sure it exists in the output
7+
---
8+
build/esm/rollup.config.mjs | 1 +
9+
1 file changed, 1 insertion(+)
10+
11+
diff --git a/build/esm/rollup.config.mjs b/build/esm/rollup.config.mjs
12+
index 37b08bd5..1e18bb2f 100644
13+
--- a/build/esm/rollup.config.mjs
14+
+++ b/build/esm/rollup.config.mjs
15+
@@ -27,6 +27,7 @@ export default defineConfig({
16+
edcoreMain: join(root, './src/editor/edcore.main.ts'),
17+
editorApi: join(root, './src/editor/editor.api.ts'),
18+
editorWorker: join(root, './src/editor/editor.worker.ts'),
19+
+ basiclanguages: join(root, './src/basic-languages/monaco.contribution.ts'),
20+
...getNlsEntryPoints(),
21+
},
22+

rollup/rollup.monaco.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ export default rollup.defineConfig([
194194
default: './' + worker
195195
}
196196
},
197-
main: 'index.js',
198-
module: 'index.js',
197+
main: './' + main,
198+
module: './' + main,
199199
dependencies: {
200200
'monaco-editor': `npm:${EDITOR_API_PACKAGE_NAME}@^${pkg.version}`,
201201
...dependencies
@@ -215,13 +215,9 @@ export default rollup.defineConfig([
215215
]
216216
}
217217
})
218-
)),
219-
{
218+
)), {
220219
input: {
221-
index: path.resolve(BASIC_LANGUAGE_DIR, '_.contribution.js')
222-
},
223-
treeshake: {
224-
preset: 'smallest'
220+
index: path.resolve(BASIC_LANGUAGE_DIR, 'monaco.contribution.js')
225221
},
226222
output: {
227223
minifyInternalExports: false,

0 commit comments

Comments
 (0)