From 60a93c11760b02052d9b59067a4c606fea68fc85 Mon Sep 17 00:00:00 2001 From: Renan Ferreira Date: Wed, 8 May 2024 11:12:01 -0300 Subject: [PATCH] chore: use short identifier for vanilla-extract --- packages/staking/tsup.config.ts | 4 ++-- packages/ui/rollup.config.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/staking/tsup.config.ts b/packages/staking/tsup.config.ts index dce41311b..1dae206c2 100644 --- a/packages/staking/tsup.config.ts +++ b/packages/staking/tsup.config.ts @@ -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', }, diff --git a/packages/ui/rollup.config.js b/packages/ui/rollup.config.js index b2fb0a7de..897ba0db0 100644 --- a/packages/ui/rollup.config.js +++ b/packages/ui/rollup.config.js @@ -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' }], }),