fix: matched alias not found for tailwind-merge

This commit is contained in:
Jonas Perusquia Morales
2026-04-01 14:35:47 -06:00
parent 90195f9209
commit c783125c0f
+3 -2
View File
@@ -2,7 +2,7 @@ import { build, type UserConfig } from "tsdown";
import pkg from "./package.json" with { type: "json" }; import pkg from "./package.json" with { type: "json" };
import c from "picocolors"; import c from "picocolors";
import { watch as fsWatch, readdirSync, rmSync } from "node:fs"; import { watch as fsWatch, readdirSync, rmSync } from "node:fs";
import { join } from "node:path"; import { join, resolve } from "node:path";
import { buildTypes as runTypesBuild } from "./build.types"; import { buildTypes as runTypesBuild } from "./build.types";
const args = process.argv.slice(2); const args = process.argv.slice(2);
@@ -87,6 +87,7 @@ const neverBundle = [
*/ */
async function buildApi() { async function buildApi() {
await build({ await build({
minify, minify,
sourcemap, sourcemap,
// don't use tsdown's broken watch, we'll handle it ourselves // don't use tsdown's broken watch, we'll handle it ourselves
@@ -219,7 +220,7 @@ async function buildUiElements() {
}, },
alias: { alias: {
// not important for elements, mock to reduce bundle // not important for elements, mock to reduce bundle
"tailwind-merge": "./src/ui/elements/mocks/tailwind-merge.ts", "tailwind-merge": resolve(import.meta.dir, "src/ui/elements/mocks/tailwind-merge.ts"),
}, },
onSuccess: async () => { onSuccess: async () => {