This reverts #16211 We found some unexpected interactions with using `@apply` and CSS variables in multi-root setups like CSS modules or Vue inline `<style>` blocks that were broken due to that change. We plan to re-enable this soon and include a proper fix for those scenarios. ## Test plan - Updated snapshots - Tested using the CLI in a new project: <img width="1523" alt="Screenshot 2025-02-10 at 13 08 42" src="https://github.com/user-attachments/assets/defe0858-adb3-4d61-9d2c-87166558fd68" /> --------- Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
34 lines
903 B
TypeScript
34 lines
903 B
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
export default defineConfig([
|
|
{
|
|
format: ['esm'],
|
|
minify: true,
|
|
dts: true,
|
|
entry: {
|
|
lib: 'src/index.ts',
|
|
plugin: 'src/plugin.ts',
|
|
colors: 'src/compat/colors.ts',
|
|
'default-theme': 'src/compat/default-theme.ts',
|
|
'flatten-color-palette': 'src/compat/flatten-color-palette.ts',
|
|
},
|
|
define: {
|
|
'process.env.FEATURES_ENV': JSON.stringify(process.env.FEATURES_ENV ?? 'insiders'),
|
|
},
|
|
},
|
|
{
|
|
format: ['cjs'],
|
|
minify: true,
|
|
dts: true,
|
|
entry: {
|
|
plugin: 'src/plugin.cts',
|
|
lib: 'src/index.cts',
|
|
colors: 'src/compat/colors.cts',
|
|
'default-theme': 'src/compat/default-theme.cts',
|
|
'flatten-color-palette': 'src/compat/flatten-color-palette.cts',
|
|
},
|
|
define: {
|
|
'process.env.FEATURES_ENV': JSON.stringify(process.env.FEATURES_ENV ?? 'insiders'),
|
|
},
|
|
},
|
|
])
|