Skip to content

Commit eba9289

Browse files
committed
🐛 fix cdn issues
1 parent ee9cb78 commit eba9289

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import { JsonResume } from 'jsonresume-component/src/index.js';
2121

2222
## Browser usage
2323

24-
**note:** requires installing `lit` and `@lit/task`.
24+
### include `lit` dependencies
2525

26-
### Add jsonresume-component and dependencies
26+
`<json-resume>` uses [`lit`](https://lit.dev) and [`@lit/task`](https://lit.dev/docs/data/task/) which must be imported into your HTML file. You can include dependencies with an [importmap](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap) like this:
2727

2828
```html
2929
<script type="importmap">
@@ -34,6 +34,11 @@ import { JsonResume } from 'jsonresume-component/src/index.js';
3434
}
3535
}
3636
</script>
37+
```
38+
39+
### Add jsonresume-component
40+
41+
```html
3742
<script type="module">
3843
import 'https://esm.run/jsonresume-component'
3944
</script>

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@
3434
"custom-elements.json"
3535
],
3636
"exports": {
37-
".": "./dist/json-resume.js",
37+
".": "./src/index.js",
3838
"./*": "./dist/*",
3939
"./src/*": "./src/*",
4040
"./examples/*": "./examples/*"
4141
},
42+
"unpkg": "./dist/json-resume.js",
43+
"module": "./src/index.js",
4244
"license": "MIT",
4345
"devDependencies": {
4446
"@chromatic-com/storybook": "^1.4.0",

0 commit comments

Comments
 (0)