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' }], }),