From c452bff217e4104b12c01ea461569f416770839e Mon Sep 17 00:00:00 2001 From: AdrianGonz97 <31664583+AdrianGonz97@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:18:52 -0400 Subject: [PATCH] tweak --- rolldown.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rolldown.config.js b/rolldown.config.js index 5c43d88c..7b054999 100644 --- a/rolldown.config.js +++ b/rolldown.config.js @@ -28,13 +28,13 @@ function getConfig(project) { const external = [ // As of now, Rolldown doesn't transform cjs `require` calls into esm imports, so we need to // manually externalize packages that use cjs. - /^commander\w*/g, - /^picocolors\w*/g, - /^postcss\w*/g, - /^recast\w*/g, + /commander/, + /picocolors/, + /postcss/, + /recast/, // TODO: investigate why Rolldown is transforming dedent into malformed code - /^dedent\w*/g, - /^@svelte-cli\/core\w*/g + /dedent/, + /@svelte-cli\/core/ ]; /** @type {Plugin[]} */