Skip to content

Commit

Permalink
add .node in require, to let esbuild take the native module correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrique Pessôa committed Jun 10, 2024
1 parent cbe4b56 commit 0f30c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (global['segfault-raub']) {
} else {
const { getBin } = require('addon-tools-raub');

const core = require(`./${getBin()}/segfault`);
const core = require(`./${getBin()}/segfault.node`);

global['segfault-raub'] = core;
module.exports = core;
Expand Down

0 comments on commit 0f30c00

Please sign in to comment.