Skip to content

Commit c452bff

Browse files
committed
tweak
1 parent 69a8b11 commit c452bff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rolldown.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ function getConfig(project) {
2828
const external = [
2929
// As of now, Rolldown doesn't transform cjs `require` calls into esm imports, so we need to
3030
// manually externalize packages that use cjs.
31-
/^commander\w*/g,
32-
/^picocolors\w*/g,
33-
/^postcss\w*/g,
34-
/^recast\w*/g,
31+
/commander/,
32+
/picocolors/,
33+
/postcss/,
34+
/recast/,
3535
// TODO: investigate why Rolldown is transforming dedent into malformed code
36-
/^dedent\w*/g,
37-
/^@svelte-cli\/core\w*/g
36+
/dedent/,
37+
/@svelte-cli\/core/
3838
];
3939

4040
/** @type {Plugin[]} */

0 commit comments

Comments
 (0)