fix(build): restore polyfill shims for shared folder imports

This commit is contained in:
2026-02-11 03:14:45 +03:00
parent 6010ace1b0
commit fa5c89128d
4 changed files with 19 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
// Buffer polyfill shim for vite-plugin-node-polyfills
import { Buffer } from 'buffer';
export { Buffer };
export default Buffer;
+2
View File
@@ -0,0 +1,2 @@
// Global polyfill shim for vite-plugin-node-polyfills
export default typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};
+9
View File
@@ -0,0 +1,9 @@
// Process polyfill shim for vite-plugin-node-polyfills
const processShim = {
env: {},
browser: true,
version: '',
versions: {},
};
export default processShim;