Skip to content

Commit 6fadbb9

Browse files
committed
fix: fix typeof comparison in rollupAdapter
Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ca27718 commit 6fadbb9

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

package-lock.json

Lines changed: 1 addition & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dev-server-rollup/src/rollupAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const OUTSIDE_ROOT_REGEXP = /\/__wds-outside-root__\/([0-9]+)\/(.*)/;
3333
* Wraps rollup error in a custom error for web dev server.
3434
*/
3535
function wrapRollupError(filePath: string, context: Context, error: any) {
36-
if (typeof error == null || typeof error !== 'object') {
36+
if (error == null || typeof error !== 'object') {
3737
return error;
3838
}
3939

0 commit comments

Comments
 (0)