@ws-ui/vite-plugins 1.8.1 → 1.8.3
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/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import importMetaUrlPlugin from './esbuild-plugin-import-meta-url';
|
|
2
2
|
import monacoEditorPlugin from './vite-plugin-monaco-editor';
|
|
3
|
-
|
|
4
|
-
export { importMetaUrlPlugin, monacoEditorPlugin, standaloneEditorPlugin };
|
|
3
|
+
export { importMetaUrlPlugin, monacoEditorPlugin };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import importMetaUrlPlugin from './esbuild-plugin-import-meta-url';
|
|
2
2
|
import monacoEditorPlugin from './vite-plugin-monaco-editor';
|
|
3
|
-
|
|
4
|
-
export { importMetaUrlPlugin, monacoEditorPlugin, standaloneEditorPlugin };
|
|
3
|
+
export { importMetaUrlPlugin, monacoEditorPlugin };
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export default function standaloneEditorPlugin() {
|
|
2
|
-
return {
|
|
3
|
-
name: 'standalone-editor-plugin',
|
|
4
|
-
transformIndexHtml(html, ctx) {
|
|
5
|
-
// Check if the Vite dev server context exists.
|
|
6
|
-
// This is true for 'vite dev' and false for 'vite build'.
|
|
7
|
-
if (ctx.server) {
|
|
8
|
-
return [
|
|
9
|
-
{
|
|
10
|
-
tag: 'link',
|
|
11
|
-
attrs: {
|
|
12
|
-
rel: 'stylesheet',
|
|
13
|
-
// Vite will resolve this path to the correct URL in node_modules/
|
|
14
|
-
href: '@ws-ui/webform-editor/dist/standalone.css',
|
|
15
|
-
},
|
|
16
|
-
// Inject right before the closing </head> tag for early loading
|
|
17
|
-
injectTo: 'head-prepend',
|
|
18
|
-
},
|
|
19
|
-
];
|
|
20
|
-
}
|
|
21
|
-
return html;
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}
|