Skip to content

Commit

Permalink
Run tests on Node 18 minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
sebamarynissen committed May 31, 2024
1 parent 0049a59 commit ff77a3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:

strategy:
matrix:
node-version: [14, 16, 18, 20]
node-version: [18, 20, 22]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
Expand Down
3 changes: 3 additions & 0 deletions lib/create-esm-loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// # create-esm-loader.js
import path from 'node:path';
import { isMainThread } from 'node:worker_threads';

console.log(isMainThread);

// # createLoader(config)
export default function createLoader(config = {}) {
Expand Down

0 comments on commit ff77a3e

Please sign in to comment.