File tree Expand file tree Collapse file tree 10 files changed +17
-10
lines changed
components/CodeEditor/Monaco/workers/linter
vscode/extensionHostWorker/common
codesandbox-browserfs/src/backend Expand file tree Collapse file tree 10 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ const staticAssets = [
2929 from : 'packages/app/static' ,
3030 to : 'static' ,
3131 } ,
32+ {
33+ from : isDev
34+ ? 'standalone-packages/codesandbox-browserfs/build'
35+ : 'standalone-packages/codesandbox-browserfs/dist' ,
36+ to : 'static/browserfs6' ,
37+ } ,
38+ // For caching purposes
3239 {
3340 from : isDev
3441 ? 'standalone-packages/codesandbox-browserfs/build'
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Linter from 'eslint/lib/linter';
33import monkeypatch from './monkeypatch-babel-eslint' ;
44
55self . importScripts (
6- `${ process . env . CODESANDBOX_HOST } /static/browserfs5 /browserfs.min.js`
6+ `${ process . env . CODESANDBOX_HOST } /static/browserfs6 /browserfs.min.js`
77) ;
88
99/* eslint-disable global-require */
Original file line number Diff line number Diff line change 4848 </ script >
4949 <!-- End Google Tag Manager -->
5050 <!-- <script async src="//cdn.headwayapp.co/widget.js"></script> -->
51- < script src ="<%= webpackConfig.output.publicPath %>static/browserfs5 /browserfs<%=process.env.NODE_ENV
51+ < script src ="<%= webpackConfig.output.publicPath %>static/browserfs6 /browserfs<%=process.env.NODE_ENV
5252 === 'development' ? '' : '.min'%>.js "
5353 type ="text/javascript "> </ script >
5454
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const initializePolyfills = () => {
2020
2121export const loadBrowserFS = ( ) => {
2222 ctx . importScripts (
23- `${ process . env . CODESANDBOX_HOST } /static/browserfs5 /browserfs.js`
23+ `${ process . env . CODESANDBOX_HOST } /static/browserfs6 /browserfs.min .js`
2424 ) ;
2525} ;
2626
Original file line number Diff line number Diff line change 3838 </ script >
3939 <!-- End Google Tag Manager -->
4040
41- < script src ="<%= webpackConfig.output.publicPath %>static/browserfs5 /browserfs<%=process.env.NODE_ENV
41+ < script src ="<%= webpackConfig.output.publicPath %>static/browserfs6 /browserfs<%=process.env.NODE_ENV
4242 === 'development' ? '' : '.min'%>.js "
4343 type ="text/javascript "> </ script >
4444
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import loadPolyfills from '@codesandbox/common/lib/load-dynamic-polyfills';
33require ( 'app/config/polyfills' ) ;
44
55self . importScripts (
6- `${ process . env . CODESANDBOX_HOST } /static/browserfs5 /browserfs.min.js`
6+ `${ process . env . CODESANDBOX_HOST } /static/browserfs6 /browserfs.min.js`
77) ;
88
99self . process = self . BrowserFS . BFSRequire ( 'process' ) ;
Original file line number Diff line number Diff line change 11self . importScripts (
2- `${ process . env . CODESANDBOX_HOST } /static/browserfs5 /browserfs.min.js`
2+ `${ process . env . CODESANDBOX_HOST } /static/browserfs6 /browserfs.min.js`
33) ;
44
55self . process = self . BrowserFS . BFSRequire ( 'process' ) ;
Original file line number Diff line number Diff line change 77 < title > Sandbox - CodeSandbox</ title >
88 < link rel ="manifest " href ="/manifest.json ">
99 < link rel ="shortcut icon " href ="/favicon.ico ">
10- < script src ="<%= webpackConfig.output.publicPath %>static/browserfs5 /browserfs.min.js "
10+ < script src ="<%= webpackConfig.output.publicPath %>static/browserfs6 /browserfs.min.js "
1111 type ="text/javascript "> </ script >
1212
1313 < script >
Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ export interface IManager {
6262
6363const warn = console . warn ;
6464
65- function getCode ( savedCode : string | null , code : string | undefined ) {
65+ function getCode ( savedCode : string | null | undefined , code : string | undefined ) {
6666 if ( savedCode !== null ) {
67- return savedCode ;
67+ return savedCode || '' ;
6868 }
6969
7070 return code || '' ;
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ declare global {
4040// @ts -ignore
4141const oldamd = self . define . amd ;
4242( self as any ) . define . amd = null ;
43- ( self as any ) . importScripts ( `/static/browserfs5 /browserfs.min.js` ) ;
43+ ( self as any ) . importScripts ( `/static/browserfs6 /browserfs.min.js` ) ;
4444( self as any ) . define . amd = oldamd ;
4545
4646( self as any ) . BrowserFS = BrowserFS ;
You can’t perform that action at this time.
0 commit comments