Skip to content

Commit 35dafed

Browse files
authored
Update package.json (#231)
Fixed exports paths in package.json - they have to start with ./ according to https://nodejs.org/api/packages.html#exports The current paths break the build when using sass-loader with sass-embedded and webpack 5.86.0: [webpack-cli] Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" main target "dist/lib/index.js" defined in the package config /home/runner/work/ProcessHub/ProcessHub/app/node_modules/sass-embedded/package.json; targets must start with "./"
1 parent f698ad1 commit 35dafed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"author": "Google Inc.",
99
"license": "MIT",
1010
"exports": {
11-
"import": "dist/lib/index.mjs",
12-
"default": "dist/lib/index.js"
11+
"import": "./dist/lib/index.mjs",
12+
"default": "./dist/lib/index.js"
1313
},
1414
"main": "dist/lib/index.js",
1515
"types": "dist/types/index.d.ts",

0 commit comments

Comments
 (0)