@@ -1675,27 +1675,20 @@ class Tasks {
16751675 } ) . pipe ( gulp . dest ( 'build/elements/options/editpages/monaco-editor/src/min/' ) ) ;
16761676 }
16771677
1678- @describe ( 'Copies non-JS files from monaco to build/ and uglifies them ' )
1678+ @describe ( 'Copies non-JS files from monaco to build/' )
16791679 static nonjs ( ) {
1680- return cache ( 'monaco-post-nonjs' , ( ) => {
1681- return gulp
1682- . src ( [
1683- '**/**' ,
1684- '!**/**/*.js' ,
1685- '!vs/basic-languages/src/**'
1686- ] , {
1687- base : 'node_modules/monaco-editor/min' ,
1688- cwd : 'node_modules/monaco-editor/min'
1689- } )
1690- . pipe ( replace ( / n o d e = n o d e \. p a r e n t N o d e / g,
1691- 'node = node.parentNode || node.host' ) )
1692- . pipe ( replace ( / d o c u m e n t \. b o d y / g,
1693- 'MonacoEditorHookManager.getLocalBodyShadowRoot' ) )
1694- . pipe ( replace ( / d o c u m e n t \. c a r e t R a n g e F r o m P o i n t / g,
1695- 'MonacoEditorHookManager.caretRangeFromPoint(arguments[0])' ) )
1696- . pipe ( replace ( / t h i s .t a r g e t ( \s ) ? = ( \s ) ? e .t a r g e t / g,
1697- 'this.target = e.path ? e.path[0] : e.target' ) )
1698- } ) . pipe ( gulp . dest ( 'build/elements/options/editpages/monaco-editor/src/min/' ) ) ;
1680+ return gulp
1681+ . src ( [
1682+ '**/**' ,
1683+ '!**/**/*.js' ,
1684+ '!vs/basic-languages/src/**'
1685+ ] , {
1686+ base : 'node_modules/monaco-editor/min' ,
1687+ cwd : 'node_modules/monaco-editor/min'
1688+ } )
1689+ . pipe (
1690+ gulp . dest (
1691+ 'build/elements/options/editpages/monaco-editor/src/min/' ) ) ;
16991692 }
17001693
17011694 @subTask ( 'Operations related to copying monaco' )
0 commit comments