fix(core): update

This commit is contained in:
2024-06-02 16:42:42 +02:00
parent e52ce7af61
commit 17e03e9790
16 changed files with 331 additions and 160 deletions

15
ts_web/plugins.ts Normal file
View File

@@ -0,0 +1,15 @@
// @push.rocks scope
import * as smartenv from '@push.rocks/smartenv';
export {
smartenv,
}
// lets setup dependencies
const smartenvInstance = new smartenv.Smartenv();
await smartenvInstance.getSafeNodeModule<typeof import('stream/web')>('stream/web', async (moduleArg) => {
globalThis.ReadableStream = moduleArg.ReadableStream;
globalThis.WritableStream = moduleArg.WritableStream;
globalThis.TransformStream = moduleArg.TransformStream;
})