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.
export
1 parent bdd5362 commit 0736ab6Copy full SHA for 0736ab6
package.json
@@ -24,8 +24,7 @@
24
],
25
"sideEffects": false,
26
"type": "module",
27
- "main": "index.js",
28
- "types": "index.d.ts",
+ "exports": "./index.js",
29
"files": [
30
"lib/",
31
"index.d.ts",
test.js
@@ -1,11 +1,13 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {h} from 'hastscript'
4
-import {size} from './index.js'
+import {size} from 'unist-util-size'
5
6
test('size', async function (t) {
7
await t.test('should expose the public api', async function () {
8
- assert.deepEqual(Object.keys(await import('./index.js')).sort(), ['size'])
+ assert.deepEqual(Object.keys(await import('unist-util-size')).sort(), [
9
+ 'size'
10
+ ])
11
})
12
13
const tree = h('div', [
0 commit comments