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 74b9b40 commit e5bd27eCopy full SHA for e5bd27e
package.json
@@ -25,8 +25,7 @@
25
],
26
"sideEffects": false,
27
"type": "module",
28
- "main": "index.js",
29
- "types": "index.d.ts",
+ "exports": "./index.js",
30
"files": [
31
"lib/",
32
"index.d.ts",
test.js
@@ -1,11 +1,12 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
-import {embedded} from './index.js'
4
-import * as mod from './index.js'
+import {embedded} from 'hast-util-embedded'
5
6
test('embedded', async function (t) {
7
await t.test('should expose the public api', async function () {
8
- assert.deepEqual(Object.keys(mod).sort(), ['embedded'])
+ assert.deepEqual(Object.keys(await import('hast-util-embedded')).sort(), [
+ 'embedded'
9
+ ])
10
})
11
12
await t.test('should return `false` without node', async function () {
0 commit comments