Skip to content

Commit 8a85c86

Browse files
committed
fix: stringify issue
1 parent 8e99fc6 commit 8a85c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-bundler/src/resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class Resolver {
6565
});
6666
} else if (!isPlainObject(packageJson.exports)) {
6767
throw ResolverError.forPackage(id, {
68-
explanation: `invalid value '${String(packageJson.exports)}' for property 'exports' in file '${packageJsonPath}'`
68+
explanation: `invalid value '${JSON.stringify(packageJson.exports)}' for property 'exports' in file '${packageJsonPath}'`
6969
});
7070
} else if (Object.keys(packageJson.exports).length === 0) {
7171
throw ResolverError.forPackage(id, {

0 commit comments

Comments
 (0)