Skip to content

Commit

Permalink
feat(package.json): add exports property
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybotha committed Mar 20, 2021
1 parent 348d2fb commit 0981e9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
},
"homepage": "https://svelte-forms-lib-sapper-docs.now.sh",
"main": "./build/index.js",
"module": "./build/index.mjs",
"module": "./build/esm/index.js",
"exports": {
".": "./build/esm/index.js"
},
"license": "MIT",
"dependencies": {
"dequal": "^2.0.2"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
input: './lib/index.js',
output: [
{
file: `./build/index.mjs`,
file: `./build/esm/index.js`,
format: 'esm',
paths: (id) => id.startsWith('svelte/') && `${id.replace('svelte', '.')}`,
},
Expand Down

0 comments on commit 0981e9c

Please sign in to comment.