diff --git a/packages/web-features/index.ts b/packages/web-features/index.ts index 54ae8ee16c0..8196ca6ceba 100644 --- a/packages/web-features/index.ts +++ b/packages/web-features/index.ts @@ -1,7 +1,7 @@ import { readFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; -import { WebFeaturesData } from "./types"; +import { WebFeaturesData } from "./types.js"; const jsonPath = fileURLToPath(new URL("./data.json", import.meta.url)); const { browsers, features, groups, snapshots } = JSON.parse( diff --git a/packages/web-features/tsconfig.json b/packages/web-features/tsconfig.json index 5b8a54dccaf..ce629192711 100644 --- a/packages/web-features/tsconfig.json +++ b/packages/web-features/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "target": "ES2016", - "module": "ESNext", - "moduleResolution": "Bundler", + "module": "node18", + "moduleResolution": "node16", "typeRoots": ["./node_modules/@types"], "declaration": true, "types": ["node"]