Inlines AMD = false (#5031)

This commit is contained in:
Henning Dieterichs 2025-10-09 01:06:06 +02:00 committed by GitHub
parent 953f4ecc85
commit b16daf88e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
89 changed files with 93 additions and 1079 deletions

View file

@ -5,21 +5,10 @@
import { registerLanguage } from '../_.contribution';
declare var AMD: any;
declare var require: any;
registerLanguage({
id: 'graphql',
extensions: ['.graphql', '.gql'],
aliases: ['GraphQL', 'graphql', 'gql'],
mimetypes: ['application/graphql'],
loader: () => {
if (AMD) {
return new Promise((resolve, reject) => {
require(['vs/basic-languages/graphql/graphql'], resolve, reject);
});
} else {
return import('./graphql');
}
}
loader: () => import('./graphql')
});