Skip to content

Commit

Permalink
fix: esm first
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Mar 25, 2024
1 parent 84ddccd commit 081277f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 22 deletions.
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const { sxzz } = require('@sxzz/eslint-config')
module.exports = sxzz()
import { sxzz } from '@sxzz/eslint-config'
export default sxzz()
7 changes: 1 addition & 6 deletions jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@
"./vite": "./src/vite.ts",
"./webpack": "./src/webpack.ts"
},
"exclude": [
"tests",
"pnpm-lock.yaml",
"tsup.config.ts",
"eslint.config.js"
]
"exclude": ["tests", "pnpm-lock.yaml", "tsup.config.ts", "eslint.config.js"]
}
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.3.0",
"packageManager": "pnpm@8.15.5",
"description": "A universal bundler plugin which replaces targeted strings in files.",
"type": "commonjs",
"type": "module",
"keywords": [
"unplugin",
"rollup",
Expand All @@ -25,32 +25,32 @@
"dist"
],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"require": "./dist/index.cjs",
"import": "./dist/index.js"
},
"./vite": {
"require": "./dist/vite.js",
"import": "./dist/vite.mjs"
"require": "./dist/vite.cjs",
"import": "./dist/vite.js"
},
"./webpack": {
"require": "./dist/webpack.js",
"import": "./dist/webpack.mjs"
"require": "./dist/webpack.cjs",
"import": "./dist/webpack.js"
},
"./rollup": {
"require": "./dist/rollup.js",
"import": "./dist/rollup.mjs"
"require": "./dist/rollup.cjs",
"import": "./dist/rollup.js"
},
"./rolldown": {
"require": "./dist/rolldown.js",
"import": "./dist/rolldown.mjs"
"require": "./dist/rolldown.cjs",
"import": "./dist/rolldown.js"
},
"./esbuild": {
"require": "./dist/esbuild.js",
"import": "./dist/esbuild.mjs"
"require": "./dist/esbuild.cjs",
"import": "./dist/esbuild.js"
},
"./*": [
"./*",
Expand Down

0 comments on commit 081277f

Please sign in to comment.