File tree 8 files changed +25
-8469
lines changed
8 files changed +25
-8469
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set -euo pipefail
3
3
4
4
# Builds code-server into out and the frontend into dist.
5
5
6
- # MINIFY controls whether parcel minifies dist .
6
+ # MINIFY controls whether browser code is minified .
7
7
MINIFY=${MINIFY-true}
8
8
9
9
main () {
Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ <h2 class="header">{{ERROR_HEADER}}</h2>
30
30
</ div >
31
31
</ div >
32
32
</ div >
33
- < script data-cfasync ="false " type =" module " src ="{{CS_STATIC_BASE}}/out/browser/register.browserified.js "> </ script >
33
+ < script data-cfasync ="false " src ="{{CS_STATIC_BASE}}/out/browser/register.browserified.js "> </ script >
34
34
</ body >
35
35
</ html >
Original file line number Diff line number Diff line change @@ -49,6 +49,6 @@ <h1 class="main">Welcome to code-server</h1>
49
49
</ div >
50
50
</ div >
51
51
</ body >
52
- < script data-cfasync ="false " type =" module " src ="{{CS_STATIC_BASE}}/out/browser/register.browserified.js "> </ script >
53
- < script data-cfasync ="false " type =" module " src ="{{CS_STATIC_BASE}}/out/browser/login.browserified.js "> </ script >
52
+ < script data-cfasync ="false " src ="{{CS_STATIC_BASE}}/out/browser/register.browserified.js "> </ script >
53
+ < script data-cfasync ="false " src ="{{CS_STATIC_BASE}}/out/browser/login.browserified.js "> </ script >
54
54
</ html >
Original file line number Diff line number Diff line change 74
74
} ,
75
75
}
76
76
</ script >
77
- <!-- < script data-cfasync="false" type="module" src="{{CS_STATIC_BASE}}/out/browser/pages/vscode .browserified.js"></script> -- >
78
- < script data-cfasync ="false " type =" module " src ="{{CS_STATIC_BASE}}/out/browser/register .browserified.js "> </ script >
77
+ < script data-cfasync ="false " src ="{{CS_STATIC_BASE}}/out/browser/register .browserified.js "> </ script >
78
+ < script data-cfasync ="false " src ="{{CS_STATIC_BASE}}/out/browser/pages/vscode .browserified.js "> </ script >
79
79
< script data-cfasync ="false " src ="{{CS_STATIC_BASE}}/lib/vscode/out/vs/loader.js "> </ script >
80
80
< script >
81
81
performance . mark ( "code/willLoadWorkbenchMain" )
Original file line number Diff line number Diff line change 30
30
/* Probably fine. */
31
31
}
32
32
33
+ ; ( self as any ) . require = {
34
+ // Without the full URL VS Code will try to load file://.w
35
+ baseUrl : `${ window . location . origin } ${ options . csStaticBase } /lib/vscode/out` ,
36
+ recordStats : true ,
37
+ paths : {
38
+ "vscode-textmate" : `../node_modules/vscode-textmate/release/main` ,
39
+ "vscode-oniguruma" : `../node_modules/vscode-oniguruma/release/main` ,
40
+ xterm : `../node_modules/xterm/lib/xterm.js` ,
41
+ "xterm-addon-search" : `../node_modules/xterm-addon-search/lib/xterm-addon-search.js` ,
42
+ "xterm-addon-unicode11" : `../node_modules/xterm-addon-unicode11/lib/xterm-addon-unicode11.js` ,
43
+ "xterm-addon-webgl" : `../node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js` ,
44
+ "tas-client-umd" : `../node_modules/tas-client-umd/lib/tas-client-umd.js` ,
45
+ "iconv-lite-umd" : `../node_modules/iconv-lite-umd/lib/iconv-lite-umd.js` ,
46
+ jschardet : `../node_modules/jschardet/dist/jschardet.min.js` ,
47
+ } ,
48
+ "vs/nls" : nlsConfig ,
49
+ }
50
+
33
51
try {
34
52
document . body . style . background = JSON . parse ( localStorage . getItem ( "colorThemeData" ) ! ) . colorMap [ "editor.background" ]
35
53
} catch ( error ) {
36
54
// Oh well.
37
- }
55
+ }
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments