Skip to content

Commit

Permalink
remove unnecessary ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
greym0uth committed May 20, 2022
1 parent b572756 commit 902cf4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function vitePluginWasmPack(
* crateName === 'test'
*/

let jsPath = path.join('./node_modules', isNodeModule ? cratePath : crateName, jsName);
let jsPath = path.join('./node_modules', crateName, jsName);
if (isNodeModule) {
jsPath = path.join(pkgPath, jsName);
}
Expand Down

0 comments on commit 902cf4f

Please sign in to comment.