Add ts.worker for ESM variant

pull/2748/head
Alex Dima 7 years ago
parent 50517cad24
commit 5d8e7bfc6a

@ -0,0 +1,15 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import * as worker from 'monaco-editor-core/esm/vs/editor/editor.worker';
import { TypeScriptWorker } from './tsWorker';
self.onmessage = () => {
// ignore the first message
worker.initialize((ctx, createData) => {
return new TypeScriptWorker(ctx, createData)
});
};

@ -1,6 +1,7 @@
{
"compilerOptions": {
"module": "esnext",
"moduleResolution": "node",
"outDir": "../release/esm",
"target": "es5",
"lib": [

@ -1,6 +1,7 @@
{
"compilerOptions": {
"module": "amd",
"moduleResolution": "node",
"outDir": "../release/dev",
"target": "es5",
"lib": [

Loading…
Cancel
Save