efce00582b
* chore: update Code to 1.72.2
* chore: refresh integration patch
* chore: refresh base-path
* chore: refresh proposed-api patch
* chore: refresh marketplace patch
* chore: refresh webview patch
* chore: refresh disable-builtin patch
* chore: refresh logout, update-check patches
* chor: refresh proxy-uri patch
* fix: delete unique-db patch
This was supposed to be removed in https://github.com/coder/code-server/pull/5519
Looks like I didn't update the series or actually delete the patch.
* fix: drop log-level patch
This was merged upstream!
* chore: refresh local-storage patch
* chore: refresh service-worker patch
* chore: refresh sourcemaps patch
* chore: refresh disable-downloads patch
* chore: refresh telemetry patch
* chore: refresh language patch
* chore: refresh cli-window-open patch
* Revert "fix: delete unique-db patch"
This reverts commit ca0506c5f6
.
* fixup!: rm extra spaces integration patch
* fixup: space
* fixup! update unique-db patch
* fixup!: update hash in webview patch
* fixup! update marketplace patch
* fixup!: remove comma
44 lines
2.1 KiB
Diff
44 lines
2.1 KiB
Diff
Make sourcemaps self-hosted
|
|
|
|
Normally source maps get removed as part of the build process so prevent that
|
|
from happening. Also avoid using the windows.net host since obviously we can
|
|
not host our source maps there and want them to be self-hosted even if we could.
|
|
|
|
To test try debugging/browsing the source of a build in a browser.
|
|
|
|
Index: code-server/lib/vscode/build/gulpfile.reh.js
|
|
===================================================================
|
|
--- code-server.orig/lib/vscode/build/gulpfile.reh.js
|
|
+++ code-server/lib/vscode/build/gulpfile.reh.js
|
|
@@ -191,8 +191,7 @@ function packageTask(type, platform, arc
|
|
|
|
const src = gulp.src(sourceFolderName + '/**', { base: '.' })
|
|
.pipe(rename(function (path) { path.dirname = path.dirname.replace(new RegExp('^' + sourceFolderName), 'out'); }))
|
|
- .pipe(util.setExecutableBit(['**/*.sh']))
|
|
- .pipe(filter(['**', '!**/*.js.map']));
|
|
+ .pipe(util.setExecutableBit(['**/*.sh']));
|
|
|
|
const workspaceExtensionPoints = ['debuggers', 'jsonValidation'];
|
|
const isUIExtension = (manifest) => {
|
|
@@ -231,9 +230,9 @@ function packageTask(type, platform, arc
|
|
.map(name => `.build/extensions/${name}/**`);
|
|
|
|
const extensions = gulp.src(extensionPaths, { base: '.build', dot: true });
|
|
- const extensionsCommonDependencies = gulp.src('.build/extensions/node_modules/**', { base: '.build', dot: true });
|
|
- const sources = es.merge(src, extensions, extensionsCommonDependencies)
|
|
+ const extensionsCommonDependencies = gulp.src('.build/extensions/node_modules/**', { base: '.build', dot: true })
|
|
.pipe(filter(['**', '!**/*.js.map'], { dot: true }));
|
|
+ const sources = es.merge(src, extensions, extensionsCommonDependencies);
|
|
|
|
let version = packageJson.version;
|
|
const quality = product.quality;
|
|
@@ -387,7 +386,7 @@ function tweakProductForServerWeb(produc
|
|
const minifyTask = task.define(`minify-vscode-${type}`, task.series(
|
|
optimizeTask,
|
|
util.rimraf(`out-vscode-${type}-min`),
|
|
- optimize.minifyTask(`out-vscode-${type}`, `https://ticino.blob.core.windows.net/sourcemaps/${commit}/core`)
|
|
+ optimize.minifyTask(`out-vscode-${type}`, ``)
|
|
));
|
|
gulp.task(minifyTask);
|
|
|