Still need to include default editor worker

This commit is contained in:
Nick Mowen 2022-12-17 15:48:45 -07:00
parent 94e30b9914
commit 30ba285c9e
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ RUN npm install
COPY web/ ./ COPY web/ ./
RUN npm run build \ RUN npm run build \
&& mv dist/BASE_PATH/monacoeditorwork/yaml.worker.bundle.js dist/assets/ \ && mv dist/BASE_PATH/monacoeditorwork/* dist/assets/ \
&& rm -rf dist/BASE_PATH && rm -rf dist/BASE_PATH
# Collect final files in a single layer # Collect final files in a single layer

View File

@ -11,7 +11,7 @@ export default defineConfig({
}, },
plugins: [preact(), monacoEditorPlugin.default({ plugins: [preact(), monacoEditorPlugin.default({
customWorkers: [{ label: 'yaml', entry: 'monaco-yaml/yaml.worker' }], customWorkers: [{ label: 'yaml', entry: 'monaco-yaml/yaml.worker' }],
languageWorkers: [], // we don't use any of the default languages languageWorkers: ['editorWorkerService'], // we don't use any of the default languages
})], })],
test: { test: {
environment: 'jsdom', environment: 'jsdom',