@@ -20,6 +20,8 @@ You can write a gulpfile using a language that requires transpilation, like Type
|
20 | 20 | * For TypeScript, rename to `gulpfile.ts` and install the [ts-node][ts-node-module] module. |
21 | 21 | * For Babel, rename to `gulpfile.babel.js` and install the [@babel/register][babel-register-module] module. |
22 | 22 | |
| 23 | +__Most new versions of node support most features that TypeScript or Babel provide, except the `import`/`export` syntax. When only that syntax is desired, rename to `gulpfile.esm.js` and install the [esm][esm-module] module.__ |
| 24 | + |
23 | 25 | For a more advanced dive into this topic and the full list of supported extensions, see our [gulpfile transpilation][gulpfile-transpilation-advanced] documentation. |
24 | 26 | |
25 | 27 | ## Splitting a gulpfile |
@@ -33,3 +35,4 @@ Node's module resolution allows you to replace your `gulpfile.js` file with a di
|
33 | 35 | [gulpfile-transpilation-advanced]: ../documentation-missing.md |
34 | 36 | [ts-node-module]: https://www.npmjs.com/package/ts-node |
35 | 37 | [babel-register-module]: https://www.npmjs.com/package/@babel/register |
| 38 | +[esm-module]: https://www.npmjs.com/package/esm |