We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c4eb48 commit 8509530Copy full SHA for 8509530
README.md
@@ -31,15 +31,13 @@ npm i compute-scroll-into-view
31
You can also use it from a CDN:
32
33
```js
34
-const { default: compute } = await import(
35
- 'https://esm.sh/compute-scroll-into-view'
36
-)
+const { compute } = await import('https://esm.sh/compute-scroll-into-view')
37
```
38
39
# Usage
40
41
42
-import compute from 'compute-scroll-into-view'
+import { compute } from 'compute-scroll-into-view'
43
44
const node = document.getElementById('hero')
45
integration/utils.js
@@ -1,4 +1,4 @@
1
-import compute from '../dist/index.js'
+import { compute } from '../dist/index.js'
2
window.computeScrollIntoView = compute
3
4
window.mapActions = (item) => ({
0 commit comments