@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.
@@ -1,3 +1,3 @@
1
1
  import { Plugin } from 'vite';
2
- import { IMonacoEditorOpts } from './types';
2
+ import { IMonacoEditorOpts } from './types.js';
3
3
  export default function monacoEditorPlugin(options?: IMonacoEditorOpts): Plugin;
@@ -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,4 +1,4 @@
1
- import { IWorkerDefinition } from './types';
1
+ import { IWorkerDefinition } from './types.js';
2
2
  export declare const languageWorkAttr: IWorkerDefinition[];
3
3
  declare const languageWorksByLabel: {
4
4
  [language: string]: IWorkerDefinition;
@@ -1,4 +1,4 @@
1
- import { IMonacoEditorOpts, IWorkerDefinition } from './types';
1
+ import { IMonacoEditorOpts, IWorkerDefinition } from './types.js';
2
2
  /**
3
3
  * Return a resolved path for a given Monaco file.
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import * as path from 'path';
2
- import { languageWorksByLabel } from './languageWork';
2
+ import { languageWorksByLabel } from './languageWork.js';
3
3
  /**
4
4
  * Return a resolved path for a given Monaco file.
5
5
  */
@@ -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/";
@@ -1,4 +1,4 @@
1
- import { getWorks, isCDN, resolveMonacoPath } from './utils';
1
+ import { getWorks, isCDN, resolveMonacoPath } from './utils.js';
2
2
  import esbuild from 'esbuild';
3
3
  import * as fs from 'fs';
4
4
  import * as path from 'path';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ws-ui/vite-plugins",
3
3
  "private": false,
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",