We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unifiedjs
Learn more about funding links in repositories.
Report abuse
exports
1 parent 87da225 commit 6855bccCopy full SHA for 6855bcc
package.json
@@ -25,8 +25,7 @@
25
],
26
"sideEffects": false,
27
"type": "module",
28
- "types": "index.d.ts",
29
- "main": "index.js",
+ "exports": "./index.js",
30
"files": [
31
"lib/",
32
"index.d.ts",
test.js
@@ -1,11 +1,11 @@
1
import assert from 'node:assert/strict'
2
import test from 'node:test'
3
import {rehype} from 'rehype'
4
-import rehypeSlug from './index.js'
+import rehypeSlug from 'rehype-slug'
5
6
test('rehypeSlug', async function (t) {
7
await t.test('should expose the public api', async function () {
8
- assert.deepEqual(Object.keys(await import('./index.js')).sort(), [
+ assert.deepEqual(Object.keys(await import('rehype-slug')).sort(), [
9
'default'
10
])
11
})
0 commit comments