vdesjs / vite-plugin-monaco-editor

A vite plugin for the Monaco Editor
MIT License
206 stars 36 forks source link

Added support for GraphQL Worker #15

Closed skalidindi closed 2 years ago

skalidindi commented 3 years ago

Right now project only supports a limited set of workers but fails when I try to do the following in my project.

import GraphQLWorker from 'monaco-graphql/esm/graphql.worker?worker';

NomadBin commented 3 years ago

The version v1.0.7 has support customWork options. exmaple:

monacoEditorPlugin({
    customWorkers: [
        {
            label: "graphql",
            entry: "monaco-graphql/esm/graphql.worker"
        }
    ]
})