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.
exports
1 parent 7353ce6 commit fa143c7Copy full SHA for fa143c7
package.json
@@ -26,8 +26,7 @@
26
],
27
"sideEffects": false,
28
"type": "module",
29
- "main": "index.js",
30
- "types": "index.d.ts",
+ "exports": "./index.js",
31
"files": [
32
"lib/",
33
"index.d.ts",
test.js
@@ -1,12 +1,12 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import stringify from 'json-stringify-safe'
4
+import {toParse5} from 'hast-util-to-parse5'
5
import {parse, parseFragment} from 'parse5'
-import {toParse5} from './index.js'
6
7
test('toParse5', async function (t) {
8
await t.test('should expose the public api', async function () {
9
- assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
+ assert.deepEqual(Object.keys(await import('hast-util-to-parse5')).sort(), [
10
'toParse5'
11
])
12
})
0 commit comments