gulp icon indicating copy to clipboard operation
gulp copied to clipboard

TypeScript Module `gulpfile.mts` Not Supported

Open movahhedi opened this issue 3 years ago • 2 comments

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.

movahhedi avatar Nov 15 '22 08:11 movahhedi

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

phated avatar Nov 15 '22 17:11 phated

@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.

Haringat avatar Feb 21 '23 15:02 Haringat