Skip to content

Commit

Permalink
build: drop native CJS support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: no longer support CJS

Vite 5 deprecates CJS support and as such support has been dropped here.
  • Loading branch information
cshawaus committed Nov 20, 2023
1 parent 2e41bce commit be827b5
Show file tree
Hide file tree
Showing 4 changed files with 587 additions and 554 deletions.
39 changes: 23 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"url": "https://github.com/aem-vite/vite-aem-plugin/issues"
},
"version": "4.0.2",
"type": "module",
"engines": {
"node": "^18.0.0 || >=20.0.0",
"pnpm": ">= 8.5"
Expand All @@ -31,11 +32,17 @@
"lib"
],
"sideEffects": false,
"main": "lib/index.js",
"module": "lib/index.mjs",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
"import": "./lib/index.mjs",
"require": "./lib/index.js"
"import": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
},
"require": {
"default": "./lib/index.cjs",
"types": "./lib/index.d.cts"
}
},
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -64,27 +71,27 @@
},
"dependencies": {
"@aem-vite/import-rewriter": "^8.0.0",
"@vitejs/plugin-react": "^4.1.0",
"@vitejs/plugin-react": "^4.2.0",
"debug": "^4.3.4",
"vite": "^4.5.0"
"vite": "^5.0.0"
},
"devDependencies": {
"@commitlint/cli": "^18.1.0",
"@commitlint/config-conventional": "^18.1.0",
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/debug": "^4.1.10",
"@types/node": "^16.18.59",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"eslint": "^8.52.0",
"@types/debug": "^4.1.12",
"@types/node": "^20.9.2",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.3",
"prettier": "^3.0.3",
"semantic-release": "^22.0.5",
"tsup": "^7.2.0",
"prettier": "^3.1.0",
"semantic-release": "^22.0.8",
"tsup": "^8.0.0",
"typescript": "^5.2.2"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit be827b5

Please sign in to comment.