-
I want to apply panda css on my design system. While I try to make it, I got a problem with build. What i want is make css interface and override panda css with it. So I tried to use css in my style-lib.
style-lib is a origin css library files that contains panda css. But when I build, I encounter that errors like this, even though I set it external in esbuild
const markExternal = {
name: 'markExternal',
setup(build) {
const externalModules = ['@pandacss/dev', '@pack/style-lib'];
build.onResolve({ filter: new RegExp(`^(${externalModules.join('|')})$`) }, () => ({
external: true,
}));
},
}; when I remove it, it created
// src/preset.ts
import { definePreset } from "@pandacss/dev";
import { tokens } from "./engine";
export const stylePreset = definePreset({
theme: {
extend: {
tokens: {
...tokens(),
},
},
},
});
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found out it is okay when I remove |
Beta Was this translation helpful? Give feedback.
I found out it is okay when I remove
@pack/style-lib
's preset in@pack/style-lib/panda.config.ts
.I just export
@pack/style-lib
's preset and apply it to@pack/ui
and then it works