diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b446f52..c7a6b57 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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
diff --git a/lib/create-esm-loader.js b/lib/create-esm-loader.js
index 5ad1d7d..0901009 100644
--- a/lib/create-esm-loader.js
+++ b/lib/create-esm-loader.js
@@ -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 = {}) {