Skip to content

Commit 4790e54

Browse files
committed
build: use esnext only in esm browser
Fix #329
1 parent 872bc70 commit 4790e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function createEntry(
9292
compilerOptions: {
9393
// same for d.ts files
9494
declaration: format === 'es' && isBrowser && !minify,
95-
target: format === 'iife' || format === 'cjs' ? 'es5' : 'esnext',
95+
target: format === 'es' && !isBrowser ? 'esnext' : 'es5',
9696
},
9797
},
9898
})

0 commit comments

Comments
 (0)