Skip to content

Commit

Permalink
fix: dlopen relative part problem in mac system
Browse files Browse the repository at this point in the history
  • Loading branch information
maxizhang committed May 23, 2024
1 parent a0ed6c7 commit 8f8661c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export default function loader(content) {

return `
try {
process.dlopen(module, __dirname + require("path").sep + __webpack_public_path__ + ${JSON.stringify(
process.dlopen(module, require("path").join(__dirname, __webpack_public_path__, ${JSON.stringify(
name
)}${
)})${
typeof options.flags !== "undefined"
? `, ${JSON.stringify(options.flags)}`
: ""
Expand Down

0 comments on commit 8f8661c

Please sign in to comment.