Ensure browser package does not pollute global namespace
This commit is contained in:
parent
e1c084c1b1
commit
8a0b5ca263
2 changed files with 4 additions and 4 deletions
|
|
@ -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": [
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { defineConfig } from 'tsup'
|
||||
|
||||
export default defineConfig({
|
||||
format: ['esm'],
|
||||
format: ['iife'],
|
||||
clean: true,
|
||||
minify: true,
|
||||
entry: ['src/index.ts'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue