We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
dai-shi
Learn more about funding links in repositories.
Report abuse
1 parent d7d4a14 commit 69505caCopy full SHA for 69505ca
rollup.config.js
@@ -18,9 +18,8 @@ function external(id) {
18
return !id.startsWith('.') && !id.startsWith(root)
19
}
20
21
-function getEsbuild(format) {
+function getEsbuild() {
22
return esbuild({
23
- format,
24
target: 'es2018',
25
supported: { 'import-meta': true },
26
tsconfig: path.resolve('./tsconfig.json'),
@@ -64,7 +63,7 @@ function createESMConfig(input, output) {
64
63
delimiters: ['\\b', '\\b(?!(\\.|/))'],
65
preventAssignment: true,
66
}),
67
- getEsbuild('esm'),
+ getEsbuild(),
68
],
69
70
@@ -82,7 +81,7 @@ function createCommonJSConfig(input, output) {
82
81
83
84
85
- getEsbuild('cjs'),
86
87
88
0 commit comments