topsyde-utils 1.0.148 → 1.0.150
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,7 +1,9 @@
|
|
1
|
-
import { Plugin } from "vite";
|
1
|
+
import type { Plugin } from "vite";
|
2
2
|
/**
|
3
3
|
* Creates a Vite plugin that provides compatibility for topsyde-utils in browser environments
|
4
4
|
* by disabling sourcemaps and providing mock implementations of Node.js modules.
|
5
|
+
*
|
6
|
+
* @returns A single Vite plugin with all necessary functionality
|
5
7
|
*/
|
6
8
|
export declare function TopsydeUtilsVitePlugin(): Plugin;
|
7
9
|
export default TopsydeUtilsVitePlugin;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
/**
|
2
2
|
* Creates a Vite plugin that provides compatibility for topsyde-utils in browser environments
|
3
3
|
* by disabling sourcemaps and providing mock implementations of Node.js modules.
|
4
|
+
*
|
5
|
+
* @returns A single Vite plugin with all necessary functionality
|
4
6
|
*/
|
5
7
|
export function TopsydeUtilsVitePlugin() {
|
6
8
|
return {
|
@@ -21,7 +23,7 @@ export function TopsydeUtilsVitePlugin() {
|
|
21
23
|
}
|
22
24
|
return null;
|
23
25
|
},
|
24
|
-
// Provide
|
26
|
+
// Provide virtual module implementations
|
25
27
|
load(id) {
|
26
28
|
if (id === "virtual:path") {
|
27
29
|
return `
|
@@ -50,7 +52,7 @@ export function TopsydeUtilsVitePlugin() {
|
|
50
52
|
}
|
51
53
|
return null;
|
52
54
|
},
|
53
|
-
// Configure aliases and
|
55
|
+
// Configure aliases and optimization
|
54
56
|
config() {
|
55
57
|
return {
|
56
58
|
resolve: {
|
@@ -67,6 +69,6 @@ export function TopsydeUtilsVitePlugin() {
|
|
67
69
|
},
|
68
70
|
};
|
69
71
|
}
|
70
|
-
//
|
72
|
+
// Export as default for compatibility with different import styles
|
71
73
|
export default TopsydeUtilsVitePlugin;
|
72
74
|
//# sourceMappingURL=topsydeUtilsVitePlugin.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"topsydeUtilsVitePlugin.js","sourceRoot":"","sources":["../../../../src/client/vite/plugins/topsydeUtilsVitePlugin.ts"],"names":[],"mappings":"AAEA
|
1
|
+
{"version":3,"file":"topsydeUtilsVitePlugin.js","sourceRoot":"","sources":["../../../../src/client/vite/plugins/topsydeUtilsVitePlugin.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB;IACrC,OAAO;QACN,IAAI,EAAE,6BAA6B;QAEnC,uCAAuC;QACvC,SAAS,CAAC,IAAI,EAAE,EAAE;YACjB,IAAI,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC,EAAE,CAAC;gBAC/C,OAAO;oBACN,IAAI;oBACJ,GAAG,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,yBAAyB;iBAChD,CAAC;YACH,CAAC;QACF,CAAC;QAED,+CAA+C;QAC/C,SAAS,CAAC,EAAE;YACX,IAAI,EAAE,KAAK,cAAc,IAAI,EAAE,KAAK,YAAY,EAAE,CAAC;gBAClD,OAAO,EAAE,CAAC;YACX,CAAC;YACD,OAAO,IAAI,CAAC;QACb,CAAC;QAED,yCAAyC;QACzC,IAAI,CAAC,EAAE;YACN,IAAI,EAAE,KAAK,cAAc,EAAE,CAAC;gBAC3B,OAAO;;;;;;;SAOF,CAAC;YACP,CAAC;YACD,IAAI,EAAE,KAAK,YAAY,EAAE,CAAC;gBACzB,OAAO;;;;;;;;;;;;SAYF,CAAC;YACP,CAAC;YACD,OAAO,IAAI,CAAC;QACb,CAAC;QAED,qCAAqC;QACrC,MAAM;YACL,OAAO;gBACN,OAAO,EAAE;oBACR,KAAK,EAAE;wBACN,6CAA6C;wBAC7C,IAAI,EAAE,cAAc;wBACpB,EAAE,EAAE,YAAY;qBAChB;iBACD;gBACD,YAAY,EAAE;oBACb,OAAO,EAAE,CAAC,eAAe,CAAC;iBAC1B;aACD,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC;AAED,mEAAmE;AACnE,eAAe,sBAAsB,CAAC"}
|
package/package.json
CHANGED