From b32175693fad1f07dfdc1aace07028bb6233d32b Mon Sep 17 00:00:00 2001 From: Alexandre Pereira Date: Tue, 27 Aug 2024 17:38:47 +0100 Subject: [PATCH] refactor(imports): missing `node:` protocol for builtins --- .vscode/settings.json | 2 -- other/build-server.ts | 4 ++-- vite.config.ts | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 0c9a71c5..6f6b0bf8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,10 +7,8 @@ "@react-email/**", "react-router-dom", "react-router", - "stream/consumers", "node:stream/consumers", "node:test", - "console", "node:console" ], "workbench.editorAssociations": { diff --git a/other/build-server.ts b/other/build-server.ts index 0e03bf48..896b0f62 100644 --- a/other/build-server.ts +++ b/other/build-server.ts @@ -1,5 +1,5 @@ -import path from 'path' -import { fileURLToPath } from 'url' +import path from 'node:path' +import { fileURLToPath } from 'node:url' import esbuild from 'esbuild' import fsExtra from 'fs-extra' import { globSync } from 'glob' diff --git a/vite.config.ts b/vite.config.ts index 6a16d4e1..242db830 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,7 +12,7 @@ export default defineConfig({ cssMinify: MODE === 'production', rollupOptions: { - external: [/node:.*/, 'stream', 'crypto', 'fsevents'], + external: [/node:.*/, 'fsevents'], }, assetsInlineLimit: (source: string) => {