You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25
Original file line number
Diff line number
Diff line change
@@ -346,6 +346,31 @@ jobs:
346
346
console.log(stdout)
347
347
```
348
348
349
+
### Use ESM `import`
350
+
351
+
To import an ESM file, you'll need to reference your script by an absolute path and ensure you have a `package.json` file with `"type": "module"` specified.
352
+
353
+
For a script in your repository `src/print-stuff.js`:
354
+
```js
355
+
export default function printStuff() { console.log('stuff') }
0 commit comments