Skip to content

Add first-party support for TypeScript (type stripped) Configuration Files, Data Files, and Template Types #4194

@zachleat

Description

@zachleat

From #3616 and #4007

In preparation for Node.js stable to ship TypeScript stripping as an unflagged feature

Node.js has shipped type stripping in Node 22.6: https://nodejs.org/api/typescript.html

We already provide support for TypeScript in Eleventy v3.x via Node.js Type Stripping, Deno, and tsx, documented here: https://www.11ty.dev/docs/languages/typescript/

Default Configuration File Names

  • eleventy.config.ts
  • eleventy.config.mts
  • eleventy.config.cts
  • Not .tsx

Default Data File Names

  • *.11tydata.ts
  • *.11tydata.mts
  • *.11tydata.cts
  • Not .tsx

Default TypeScript Template File Names

  • *.11ty.ts
  • *.11ty.mts
  • *.11ty.cts
  • Not .tsx

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions