Skip to content

Commit 649d946

Browse files
committed
Updates to fix Nextjs import errors
1 parent e6ee767 commit 649d946

File tree

4 files changed

+71
-35
lines changed

4 files changed

+71
-35
lines changed

package-lock.json

Lines changed: 52 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
{
22
"name": "@jasonrundell/react-mega-menu",
3-
"version": "2.0.11",
3+
"version": "2.0.17",
44
"author": "jasonrundell <[email protected]>",
5-
"main": "dist/index.cjs.js",
5+
"main": "dist/index.es.js",
66
"module": "dist/index.es.js",
77
"types": "dist/index.d.ts",
8+
"type": "module",
89
"files": [
910
"dist"
1011
],
12+
"exports": {
13+
".": {
14+
"import": "./dist/index.es.js",
15+
"require": "./dist/index.cjs.js",
16+
"types": "./dist/index.d.ts"
17+
}
18+
},
1119
"scripts": {
12-
"build": "tsc && vite build",
20+
"build": "vite build",
1321
"format": "prettier --write src/**/*.{js,jsx}"
1422
},
1523
"dependencies": {
16-
"@emotion/react": "^11.11.1",
17-
"@emotion/styled": "^11.11.0",
18-
"react": "^18.0.0",
19-
"react-dom": "^18.0.0",
2024
"uuid": "^9.0.1"
2125
},
2226
"devDependencies": {
@@ -36,8 +40,7 @@
3640
"@emotion/react": "^11.11.1",
3741
"@emotion/styled": "^11.11.0",
3842
"react": "^18.0.0",
39-
"react-dom": "^18.0.0",
40-
"uuid": "^9.0.1"
43+
"react-dom": "^18.0.0"
4144
},
4245
"repository": {
4346
"type": "git",

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
1515
"jsx": "react-jsx",
16+
"inlineSources": true,
1617
"declaration": true,
1718
"declarationMap": true,
1819
"emitDeclarationOnly": true,
19-
"outDir": "./dist"
20+
"outDir": "./dist",
21+
"sourceMap": true
2022
},
2123
"include": ["src"]
2224
}

0 commit comments

Comments
 (0)