Skip to content

Commit

Permalink
fix: build script pkgName parsing error (#546)
Browse files Browse the repository at this point in the history
* fix: build script pkgName parsing error

* fix: build script pkgName parsing error

* fix: build script pkgName parsing error

* chore: prettier code
  • Loading branch information
ErKeLost committed Mar 11, 2024
1 parent 3f60dd1 commit 0d6582f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-node-binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const BUILD_TIMERS = {}
* @returns {Promise<WasRebuilt>} A Promise that resolves to true if the package was rebuilt, false otherwise.
*/
async function build(pkgName, deps, changedFile, loadFiles) {
const name = pkgName.split('/')[1]
const name = pkgName?.split('/')[1] || pkgName
const log = debug(`rolldown:${name}`)

if (!changedFile) {
Expand Down

0 comments on commit 0d6582f

Please sign in to comment.