Skip to content

Commit

Permalink
reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Jan 22, 2025
1 parent a82a7f4 commit 1c23201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuekit/src/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function buildJS(args) {

} catch ({ errors }) {
const [err] = errors
const error = { text: err.message || err.text, ...err.location, ...err.position }
const error = { text: err.message || err.text, ...(err.location || err.position) }
error.title = error.text.includes('resolve') ? 'Import error' : 'Syntax error'
delete error.file
throw error
Expand Down

0 comments on commit 1c23201

Please sign in to comment.