Skip to content

vite-plugin-prismjs Error #2

@zqq-nuli

Description

@zqq-nuli
import prismjsPlugin from "vite-plugin-prismjs";

I will report an error when importing vite in this way
prismjsPlugin is not a function

import { prismjsPlugin } from "vite-plugin-prismjs";

I only need to import in this way to function properly. It seems that both import methods are supported in the declaration file

我通过第一种导入方式报错 prismjsPlugin不是一个函数 只有通过第二种方式才是正常的,我看声明文件中似乎都是支持的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions