Skip to content

Commit

Permalink
refactor(imports): missing node: protocol for builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
alcpereira committed Aug 27, 2024
1 parent cd98ab2 commit b321756
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
"@react-email/**",
"react-router-dom",
"react-router",
"stream/consumers",
"node:stream/consumers",
"node:test",
"console",
"node:console"
],
"workbench.editorAssociations": {
Expand Down
4 changes: 2 additions & 2 deletions other/build-server.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default defineConfig({
cssMinify: MODE === 'production',

rollupOptions: {
external: [/node:.*/, 'stream', 'crypto', 'fsevents'],
external: [/node:.*/, 'fsevents'],
},

assetsInlineLimit: (source: string) => {
Expand Down

0 comments on commit b321756

Please sign in to comment.