Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MonacoEditorNlsPlugin is not a function , in VIte4 #11

Open
laterdayi opened this issue Aug 19, 2023 · 1 comment
Open

MonacoEditorNlsPlugin is not a function , in VIte4 #11

laterdayi opened this issue Aug 19, 2023 · 1 comment

Comments

@laterdayi
Copy link

laterdayi commented Aug 19, 2023

MonacoEditorNlsPlugin is not a function , i in VIte4

@laterdayi laterdayi changed the title MonacoEditorNlsPlugin is not a function in VIte4 MonacoEditorNlsPlugin is not a function , in VIte4 Aug 19, 2023
@shaoerkuai
Copy link
Contributor

shaoerkuai commented May 18, 2024

export default defineConfig({
    plugins: [MonacoEditorNlsPlugin.default({
        locale: Languages.zh_hans,
    }), vue(), AutoImport({
        imports: ['vue', 'vue-router']
    })], optimizeDeps: {
        /** vite >= 2.3.0 */
        esbuildOptions: {
            plugins: [
                esbuildPluginMonacoEditorNls({
                    locale: Languages.zh_hans,
                }),
            ],
        },
    },
})

目前写法是未命名函数,所以使用.default即可,我提了个pr给他修复掉。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants