From 2a67a410dc74b8cc6311994445dac1ca71ec2a79 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 16 Sep 2021 00:02:04 +0800 Subject: [PATCH] fix: Fix to the complete relative file path for import. #12 --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 78e6191..2ce53d3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,8 @@ import { Plugin, Transformer } from 'unified'; import { Parent, NodeData, Node } from 'unist'; -import { visit } from './visit'; +import { visit } from './visit.js'; -export * from './visit'; +export * from './visit.js'; export type RehypeRewriteOptions = (node: NodeData, index: number, parent: NodeData) => void