Skip to content

Commit

Permalink
fix npm exports declaration so it works with webpack (#36671)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvchari committed Nov 1, 2021
1 parent 5ef87bd commit b4a97ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build-system/npm-publish/write-package-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ async function writePackageJson() {
}

const exports = {
'.': './web-component',
'.': {
import: './dist/web-component.module.js',
require: './dist/web-component.js',
},
'./web-component': {
import: './dist/web-component.module.js',
require: './dist/web-component.js',
Expand Down

0 comments on commit b4a97ce

Please sign in to comment.