Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 618 Bytes

File metadata and controls

18 lines (11 loc) · 618 Bytes

@gasket/plugin-typescript

Gasket plugin for TypeScript support.

Installation

This plugin is only used by presets for create-gasket-app and is not installed for apps.

Typescript & ESM

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.

// server.ts

// Actual file is gasket.ts
import gasket from './gasket.js';