@storybook/addon-styling-webpack
Version:
A base addon for configuring popular styling tools in Webpack
36 lines (34 loc) • 787 B
JavaScript
import { defineConfig } from 'tsup';
export default defineConfig(() => [
{
entry: ['src/index.ts', 'src/preset.ts'],
outDir: './dist',
splitting: true,
format: ['esm'],
dts: true,
treeshake: true,
sourcemap: false,
/*
keep this line commented until https://github.com/egoist/tsup/issues/1270 is resolved
clean: options.watch ? false : true,
*/
clean: false,
platform: 'browser',
esbuildOptions(options) {
options.conditions = ['module'];
},
},
{
entry: ['src/postinstall.ts'],
outDir: './bin',
splitting: true,
format: ['esm'],
treeshake: true,
target: 'node22',
clean: false,
platform: 'node',
esbuildOptions(options) {
options.conditions = ['module'];
},
},
]);