Skip to content

Conversation

@sheremet-va
Copy link
Member

Description

This PR adds support for bare imports of packages that export a TS entry point:

import pkg from '@monorepo/ts' // <-- exports .ts file
export default defineConfig({
  ...pkg.sharedConfig,
})

Currently, vite resolves the .ts file but keeps it external which breaks in Node:

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /react-monorepo-ts/packages/components/src/test.ts

TODO

  • Tests

@bluwy
Copy link
Member

bluwy commented Nov 12, 2024

fwiw this looks similar to #17323

@sheremet-va
Copy link
Member Author

Superseded by #18637

@sheremet-va sheremet-va closed this Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants