Skip to content

Commit 88eecb2

Browse files
committed
fix node imports to use namespace
1 parent bfa54a6 commit 88eecb2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/start/src/config/fs-routes/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { init, parse } from "es-module-lexer";
22
import esbuild from "esbuild";
33
import fg from "fast-glob";
4-
import fs from "fs";
4+
import fs from "node:fs";
55
import micromatch from "micromatch";
6-
import { posix } from "path";
6+
import { posix } from "node:path";
77
import { pathToRegexp } from "path-to-regexp";
88

99
import { normalizePath } from "vite";

packages/start/src/config/lazy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { PluginItem } from "@babel/core";
22
import babel from "@babel/core";
33
import * as t from "@babel/types";
4-
import { sep as osSep } from "path";
5-
import { basename, relative, sep } from "path/posix";
4+
import { sep as osSep } from "node:path";
5+
import { basename, relative, sep } from "node:path/posix";
66
import type { PluginOption } from "vite";
77
import { VITE_ENVIRONMENTS } from "./constants.ts";
88

0 commit comments

Comments
 (0)