Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 07e34eb

Browse files
committed
fix: wrong order of outputPath cond
1 parent cd84081 commit 07e34eb

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

.husky/commit-msg

100644100755
File mode changed.

.husky/pre-commit

100644100755
File mode changed.

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
"*.js": ["prettier --write", "eslint --fix", "cspell"],
2+
"*.js": ["prettier --write", "eslint --fix"],
33
"*.{json,md,yml,css,ts}": ["prettier --write"],
44
};

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function loader(content) {
1717
return `
1818
try {
1919
process.dlopen(module, ${JSON.stringify(
20-
typeof outputPath !== "undefined" ? _compiler.options.output.path : outputPath,
20+
outputPath || _compiler.options.output.path
2121
)} + require("path").sep + __webpack_public_path__ + ${JSON.stringify(name)}${
2222
typeof flags !== "undefined" ? `, ${JSON.stringify(options.flags)}` : ""
2323
});

0 commit comments

Comments
 (0)