Skip to content

Commit 4865716

Browse files
authored
feat(nuxt): move to esm-only (#2947)
Moves to an esm-only package now that all LTS other than 18.x (which is soon to fall out of LTS) support `require(esm)`.
1 parent b82a38a commit 4865716

File tree

2 files changed

+530
-561
lines changed

2 files changed

+530
-561
lines changed

packages/nuxt/package.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,10 @@
2626
"sideEffects": false,
2727
"type": "module",
2828
"exports": {
29-
".": {
30-
"types": "./dist/types.d.ts",
31-
"import": "./dist/module.mjs",
32-
"require": "./dist/module.cjs"
33-
}
29+
".": "./dist/module.mjs"
3430
},
35-
"main": "./dist/module.cjs",
36-
"types": "./dist/types.d.ts",
31+
"main": "./dist/module.mjs",
32+
"types": "./dist/module.d.mts",
3733
"files": [
3834
"dist"
3935
],
@@ -52,7 +48,7 @@
5248
"pinia": "workspace:^"
5349
},
5450
"devDependencies": {
55-
"@nuxt/module-builder": "^0.8.4",
51+
"@nuxt/module-builder": "1.0.0-alpha.1",
5652
"@nuxt/schema": "^3.9.0",
5753
"@nuxt/test-utils": "^3.15.4",
5854
"nuxt": "^3.15.4",

0 commit comments

Comments
 (0)