Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 69505ca

Browse files
authoredMar 23, 2024··
[v2] fix rollup config for cjs (#873)
1 parent d7d4a14 commit 69505ca

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎rollup.config.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ function external(id) {
1818
return !id.startsWith('.') && !id.startsWith(root)
1919
}
2020

21-
function getEsbuild(format) {
21+
function getEsbuild() {
2222
return esbuild({
23-
format,
2423
target: 'es2018',
2524
supported: { 'import-meta': true },
2625
tsconfig: path.resolve('./tsconfig.json'),
@@ -64,7 +63,7 @@ function createESMConfig(input, output) {
6463
delimiters: ['\\b', '\\b(?!(\\.|/))'],
6564
preventAssignment: true,
6665
}),
67-
getEsbuild('esm'),
66+
getEsbuild(),
6867
],
6968
}
7069
}
@@ -82,7 +81,7 @@ function createCommonJSConfig(input, output) {
8281
delimiters: ['\\b', '\\b(?!(\\.|/))'],
8382
preventAssignment: true,
8483
}),
85-
getEsbuild('cjs'),
84+
getEsbuild(),
8685
],
8786
}
8887
}

0 commit comments

Comments
 (0)
Please sign in to comment.