adopt dynamic node module changes: avoid that loader config gets overwritten
This commit is contained in:
parent
12a69fc0f4
commit
2f07ee2cbe
|
@ -28,12 +28,13 @@
|
|||
</body>
|
||||
|
||||
<!-- Startup (do not modify order of script tags!) -->
|
||||
<script src="./static/out/vs/loader.js"></script>
|
||||
<script src="./static/out/vs/webPackagePaths.js"></script>
|
||||
<script>
|
||||
Object.keys(self.webPackagePaths).map(function (key, index) {
|
||||
self.webPackagePaths[key] = `${window.location.origin}/static/remote/web/node_modules/${key}/${self.webPackagePaths[key]}`;
|
||||
});
|
||||
self.require = {
|
||||
require.config({
|
||||
baseUrl: `${window.location.origin}/static/out`,
|
||||
recordStats: true,
|
||||
trustedTypesPolicy: window.trustedTypes?.createPolicy('amdLoader', {
|
||||
|
@ -45,9 +46,9 @@
|
|||
}
|
||||
}),
|
||||
paths: self.webPackagePaths
|
||||
};
|
||||
});
|
||||
</script>
|
||||
<script src="./static/out/vs/loader.js"></script>
|
||||
|
||||
<script>
|
||||
performance.mark('code/willLoadWorkbenchMain');
|
||||
</script>
|
||||
|
|
|
@ -27,12 +27,13 @@
|
|||
</body>
|
||||
|
||||
<!-- Startup (do not modify order of script tags!) -->
|
||||
<script src="./static/out/vs/loader.js"></script>
|
||||
<script src="./static/out/vs/webPackagePaths.js"></script>
|
||||
<script>
|
||||
Object.keys(self.webPackagePaths).map(function (key, index) {
|
||||
self.webPackagePaths[key] = `${window.location.origin}/static/node_modules/${key}/${self.webPackagePaths[key]}`;
|
||||
});
|
||||
self.require = {
|
||||
require.config({
|
||||
baseUrl: `${window.location.origin}/static/out`,
|
||||
recordStats: true,
|
||||
trustedTypesPolicy: window.trustedTypes?.createPolicy('amdLoader', {
|
||||
|
@ -41,9 +42,8 @@
|
|||
}
|
||||
}),
|
||||
paths: self.webPackagePaths
|
||||
};
|
||||
});
|
||||
</script>
|
||||
<script src="./static/out/vs/loader.js"></script>
|
||||
<script>
|
||||
performance.mark('code/willLoadWorkbenchMain');
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue