diff --git a/packages/@tailwindcss-browser/package.json b/packages/@tailwindcss-browser/package.json index 420c2faf7d41..aef639cf3f8d 100644 --- a/packages/@tailwindcss-browser/package.json +++ b/packages/@tailwindcss-browser/package.json @@ -3,8 +3,8 @@ "version": "4.0.0", "description": "A utility-first CSS framework for rapidly building custom user interfaces.", "license": "MIT", - "main": "./dist/index.mjs", - "browser": "./dist/index.mjs", + "main": "./dist/index.global.js", + "browser": "./dist/index.global.js", "repository": { "type": "git", "url": "https://github.com/tailwindlabs/tailwindcss.git", @@ -19,7 +19,7 @@ "test:ui": "playwright test" }, "exports": { - ".": "./dist/index.mjs", + ".": "./dist/index.global.js", "./package.json": "./package.json" }, "files": [ diff --git a/packages/@tailwindcss-browser/tsup.config.ts b/packages/@tailwindcss-browser/tsup.config.ts index 57fa6d7dc321..5a6d78273e65 100644 --- a/packages/@tailwindcss-browser/tsup.config.ts +++ b/packages/@tailwindcss-browser/tsup.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from 'tsup' export default defineConfig({ - format: ['esm'], + format: ['iife'], clean: true, minify: true, entry: ['src/index.ts'],