@gasket/plugin-typescript
Version:
Gasket plugin for TypeScript support
19 lines (11 loc) • 618 B
Markdown
Gasket plugin for TypeScript support.
This plugin is only used by presets for `create-gasket-app` and is not installed for apps.
In order to support `type: module` applications with TypeScript imports need to include extensions. A workaround for the current state of ESM support is to utilize `.js` extensions in TypeScript files. This pattern may seem strange but the TypeScript compiler is able to resolve these imports and compile the code correctly.
```typescript
// server.ts
// Actual file is gasket.ts
import gasket from './gasket.js';
```