@ws-ui/vite-plugins 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vite-plugin-monaco-editor/index.d.ts +1 -1
- package/dist/vite-plugin-monaco-editor/index.js +3 -3
- package/dist/vite-plugin-monaco-editor/languageWork.d.ts +1 -1
- package/dist/vite-plugin-monaco-editor/utils.d.ts +1 -1
- package/dist/vite-plugin-monaco-editor/utils.js +1 -1
- package/dist/vite-plugin-monaco-editor/workerMiddleware.d.ts +1 -1
- package/dist/vite-plugin-monaco-editor/workerMiddleware.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import esbuild from 'esbuild';
|
|
2
2
|
import * as path from 'path';
|
|
3
3
|
import * as fs from 'fs';
|
|
4
|
-
import { languageWorksByLabel } from './languageWork';
|
|
5
|
-
import { workerMiddleware, cacheDir, getFilename, getWorkPath, } from './workerMiddleware';
|
|
6
|
-
import { getWorks, isCDN, resolveMonacoPath } from './utils';
|
|
4
|
+
import { languageWorksByLabel } from './languageWork.js';
|
|
5
|
+
import { workerMiddleware, cacheDir, getFilename, getWorkPath, } from './workerMiddleware.js';
|
|
6
|
+
import { getWorks, isCDN, resolveMonacoPath } from './utils.js';
|
|
7
7
|
export default function monacoEditorPlugin(options = {}) {
|
|
8
8
|
const languageWorkers = options.languageWorkers ||
|
|
9
9
|
Object.keys(languageWorksByLabel);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Connect, ResolvedConfig } from 'vite';
|
|
2
|
-
import { IMonacoEditorOpts, IWorkerDefinition } from './types';
|
|
2
|
+
import { IMonacoEditorOpts, IWorkerDefinition } from './types.js';
|
|
3
3
|
export declare function getFilenameByEntry(entry: string): string;
|
|
4
4
|
export declare function getFilename(work: IWorkerDefinition): string;
|
|
5
5
|
export declare const cacheDir = "node_modules/.monaco/";
|