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 e161c69 commit 128dc26Copy full SHA for 128dc26
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 {h} from 'hastscript'
4
+import {classnames} from 'hast-util-classnames'
5
import {u} from 'unist-builder'
-import {classnames} from './index.js'
6
7
test('classnames', 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-classnames')).sort(), [
10
'classnames'
11
])
12
})
0 commit comments