mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
fix: monaco path by cwd
This commit is contained in:
parent
8cd0490d1e
commit
849d676919
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ featuresArr.forEach(feature => featuresById[feature.label] = feature);
|
||||||
* Return a resolved path for a given Monaco file.
|
* Return a resolved path for a given Monaco file.
|
||||||
*/
|
*/
|
||||||
function resolveMonacoPath(filePath: string): string {
|
function resolveMonacoPath(filePath: string): string {
|
||||||
return require.resolve(path.join('monaco-editor/esm', filePath));
|
return require.resolve(path.join(process.cwd(), 'node_modules', 'monaco-editor/esm', filePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue