Skip to content

Commit

Permalink
chore: use short identifier for vanilla-extract
Browse files Browse the repository at this point in the history
  • Loading branch information
renanvalentin committed May 8, 2024
1 parent 176dca7 commit 60a93c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/staking/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ const tsupConfig = defineConfig([
esbuildPlugins: [
// eslint-disable-next-line new-cap
ScssModulesPlugin() as never,
vanillaExtractPlugin({ esbuildOptions: { loader: { '.css': 'empty' } } }),
vanillaExtractPlugin({ esbuildOptions: { loader: { '.css': 'empty' } }, identifiers: 'short' }),
svgr({ icon: true, plugins: [svgrJsx] }),
],
external: Object.keys(peerDependencies),
format: ['esm', 'cjs'],
format: ['cjs'],
loader: {
'.png': 'dataurl',
},
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default () => ({
commonjs(),
image(),
svgr({ icon: true }),
vanillaExtractPlugin(),
vanillaExtractPlugin({
identifiers: 'short',
}),
copy({
targets: [{ src: 'src/assets/icons/*', dest: 'dist/assets/icons' }],
}),
Expand Down

0 comments on commit 60a93c1

Please sign in to comment.