@tomjs/vite-plugin-vscode 2.5.5 → 2.6.0
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/README.md +1 -1
- package/README.zh_CN.md +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @tomjs/vite-plugin-vscode
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@tomjs/vite-plugin-vscode)   [](https://www.npmjs.com/package/@tomjs/vite-plugin-vscode)   [](https://www.jsdocs.io/package/@tomjs/vite-plugin-vscode)
|
|
4
4
|
|
|
5
5
|
**English** | [中文](./README.zh_CN.md)
|
|
6
6
|
|
package/README.zh_CN.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @tomjs/vite-plugin-vscode
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@tomjs/vite-plugin-vscode)   [](https://www.npmjs.com/package/@tomjs/vite-plugin-vscode)   [](https://www.jsdocs.io/package/@tomjs/vite-plugin-vscode)
|
|
4
4
|
|
|
5
5
|
[English](./README.md) | **中文**
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -92,4 +92,4 @@ interface PluginOptions {
|
|
|
92
92
|
|
|
93
93
|
declare function useVSCodePlugin(options?: PluginOptions): Plugin[];
|
|
94
94
|
|
|
95
|
-
export { useVSCodePlugin as default, useVSCodePlugin };
|
|
95
|
+
export { ExtensionOptions, PluginOptions, WebviewOption, useVSCodePlugin as default, useVSCodePlugin };
|
package/dist/index.d.ts
CHANGED
|
@@ -92,4 +92,4 @@ interface PluginOptions {
|
|
|
92
92
|
|
|
93
93
|
declare function useVSCodePlugin(options?: PluginOptions): Plugin[];
|
|
94
94
|
|
|
95
|
-
export { useVSCodePlugin as default, useVSCodePlugin };
|
|
95
|
+
export { ExtensionOptions, PluginOptions, WebviewOption, useVSCodePlugin as default, useVSCodePlugin };
|
package/dist/index.js
CHANGED
|
@@ -184,7 +184,7 @@ function genProdWebviewCode(cache, webview) {
|
|
|
184
184
|
const cacheCode = (
|
|
185
185
|
/* js */
|
|
186
186
|
`const htmlCode = {
|
|
187
|
-
${Object.keys(cache).map((s) =>
|
|
187
|
+
${Object.keys(cache).map((s) => `'${s}': \`${handleHtmlCode(cache[s])}\`,`).join("\n")}
|
|
188
188
|
};`
|
|
189
189
|
);
|
|
190
190
|
const code = (
|
package/dist/index.mjs
CHANGED
|
@@ -191,7 +191,7 @@ function genProdWebviewCode(cache, webview) {
|
|
|
191
191
|
const cacheCode = (
|
|
192
192
|
/* js */
|
|
193
193
|
`const htmlCode = {
|
|
194
|
-
${Object.keys(cache).map((s) =>
|
|
194
|
+
${Object.keys(cache).map((s) => `'${s}': \`${handleHtmlCode(cache[s])}\`,`).join("\n")}
|
|
195
195
|
};`
|
|
196
196
|
);
|
|
197
197
|
const code = (
|