Here are the problems that are easy to encounter in development.
pnpm i
# get dist
pnpm build
cd dist/tw-element
# set cur tw-element to global `node_modules`
pnpm link --global
# for esm we also need link tw-element for dist
pnpm link --global tw-element
# go to your project, link to `tw-element`
cd your-project
pnpm link --global tw-element
More info see pnpm link.
We should not write Chinese comments in scss files.
It will generate warning @charset "UTF-8";
in the header of css file when built with vite.
More info see #3219.