Skip to content

Commit be0ec51

Browse files
committed
Build issue
1 parent e36d95b commit be0ec51

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
12
var __create = Object.create;
23
var __defProp = Object.defineProperty;
34
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "MIT",
88
"scripts": {
99
"lint": "eslint --fix *.js",
10-
"build": "esbuild index.js --bundle --platform=node --target=node24 --format=esm --outfile=dist/index.js",
10+
"build": "esbuild index.js --bundle --platform=node --target=node24 --format=esm --outfile=dist/index.js --banner:js=\"import { createRequire } from 'module'; const require = createRequire(import.meta.url);\"",
1111
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js src --config=jest.config.cjs",
1212
"test-debug": "node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --runInBand src --config=jest.config.cjs",
1313
"deploy-wip": "rimraf dist/index.js && npm run build && git ac wip && git push",

0 commit comments

Comments
 (0)