-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I use ts for my gulpfile, but some of the plugins i use (gulp-imagemin specifically), are esm.
So having a way to use both would be useful, as otherwise when one tries to run gulp, they get something like this:
[18:15:57] Requiring external module ts-node/register
TypeError: Unknown file extension ".ts" for /home/monyarm/Documents/gulp-gameoptimizer/gulpfile.ts
at new NodeError (node:internal/errors:371:5)
at Loader.defaultGetFormat [as _getFormat] (node:internal/modules/esm/get_format:71:15)
at Loader.getFormat (node:internal/modules/esm/loader:105:42)
at Loader.getModuleJob (node:internal/modules/esm/loader:243:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Loader.import (node:internal/modules/esm/loader:177:17)
at importModuleDynamicallyWrapper (node:internal/vm/module:437:15) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
unematiii, DJAlPee and rtritto
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status