gulp
gulp copied to clipboard
TypeScript Module `gulpfile.mts` Not Supported
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.
Duplicate of https://github.com/gulpjs/interpret/issues/94 - this likely won't get implemented for gulp 5 unless a community member steps up
@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.