Skip to content

Commit

Permalink
💥 Drop support for CJS because of browserslist/browserslist-useragent…
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Oct 22, 2022
1 parent fba6eb0 commit 17b2b6f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "vite-plugin-browserslist-useragent",
"type": "module",
"version": "0.1.0",
"description": "A utility vite plugin to compile browserslist query to a RegExp to test browser useragent.",
"author": "Yue JIN <[email protected]>",
Expand All @@ -14,17 +15,17 @@
"vite-plugin",
"useragent"
],
"main": "index.js",
"module": "dist/index.mjs",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"client.d.ts"
],
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./*": "./*"
},
Expand All @@ -37,7 +38,7 @@
"url": "https://github.com/kingyue737/vite-plugin-browserslist-useragent/issues"
},
"scripts": {
"build": "tsup src/index.ts --dts --format cjs,esm",
"build": "tsup src/index.ts --dts --format esm",
"prepublishOnly": "npm run build",
"release": "bumpp --execute=\"pnpm changelog\" --commit \"🔖 Release v\" --push --tag --all && npm publish --registry=\"https://registry.npmjs.org/\"",
"changelog": "gitmoji-changelog"
Expand Down

0 comments on commit 17b2b6f

Please sign in to comment.