gulpjs / gulp

A toolkit to automate & enhance your workflow
https://gulpjs.com
MIT License
33.01k stars 4.23k forks source link

TypeScript Module `gulpfile.mts` Not Supported #2705

Open movahhedi opened 2 years ago

movahhedi commented 2 years ago

I want to use TypeScript with a .mjs (module) Gulpfile. So I renamed my gulpfile to gulpfile.mts, but it says No gulpfile found. TypeScript says it supports the .mts extension here. The above applies to gulpfile.esm.ts and gulpfile.babel.mts and gulpfile.babel.mjs too.

phated commented 2 years ago

Duplicate of https://github.com/gulpjs/interpret/issues/94 - this likely won't get implemented for gulp 5 unless a community member steps up

Haringat commented 1 year ago

@movahhedi Would you mind elaborating the advantage of this? In typescript you can just use ESM syntax and have it be transpiled to commonjs for Node/gulp consumption.