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 f2c1c9c commit 86ebba5Copy full SHA for 86ebba5
package.json
@@ -28,8 +28,7 @@
28
],
29
"sideEffects": false,
30
"type": "module",
31
- "main": "index.js",
32
- "types": "index.d.ts",
+ "exports": "./index.js",
33
"files": [
34
"lib/",
35
"index.d.ts",
test.js
@@ -1,10 +1,10 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
-import {whitespace} from './index.js'
+import {whitespace} from 'hast-util-whitespace'
4
5
test('whitespace', async function (t) {
6
await t.test('should expose the public api', async function () {
7
- assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
+ assert.deepEqual(Object.keys(await import('hast-util-whitespace')).sort(), [
8
'whitespace'
9
])
10
})
0 commit comments