mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Alternative to #14110 This PR changes the way how we load plugins to be compatible with ES6 async `import`s. This allows us to load plugins even inside the browser but it comes at a downside: We now have to change the `compile` API to return a `Promise`... So most of this PR is rewriting all of the call sites of `compile` to expect a promise instead of the object. --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
12 lines
242 B
TypeScript
12 lines
242 B
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
export default defineConfig({
|
|
format: ['esm', 'cjs'],
|
|
clean: true,
|
|
minify: true,
|
|
cjsInterop: true,
|
|
dts: true,
|
|
entry: ['src/index.ts'],
|
|
noExternal: ['internal-postcss-fix-relative-paths'],
|
|
})
|