mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-25 04:07:56 +00:00
fix(build): restore polyfill shims for shared folder imports
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
// Buffer polyfill shim for vite-plugin-node-polyfills
|
||||
import { Buffer } from 'buffer';
|
||||
export { Buffer };
|
||||
export default Buffer;
|
||||
@@ -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 : {};
|
||||
@@ -0,0 +1,9 @@
|
||||
// Process polyfill shim for vite-plugin-node-polyfills
|
||||
const processShim = {
|
||||
env: {},
|
||||
browser: true,
|
||||
version: '',
|
||||
versions: {},
|
||||
};
|
||||
|
||||
export default processShim;
|
||||
Reference in New Issue
Block a user