Skip to content

Commit 7a53b85

Browse files
committed
Move vs
1 parent 8d27672 commit 7a53b85

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

packages/app/config/webpack.common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ module.exports = {
429429
from: __DEV__
430430
? '../../standalone-packages/monaco-editor/release/dev/vs'
431431
: '../../standalone-packages/monaco-editor/release/min/vs',
432-
to: 'public/vs13',
432+
to: 'public/13/vs',
433433
force: true,
434434
},
435435
__PROD__ && {
@@ -442,7 +442,7 @@ module.exports = {
442442
},
443443
{
444444
from: '../../node_modules/monaco-vue/release/min',
445-
to: 'public/vs13/language/vue',
445+
to: 'public/13/vs/language/vue',
446446
},
447447
{
448448
from: 'static',

packages/app/src/app/components/CodeEditor/Monaco/MonacoReactComponent.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ class MonacoEditor extends React.PureComponent {
3434
}
3535

3636
context.require.config({
37-
url: '/public/vs13/loader.js',
37+
url: '/public/13/vs/loader.js',
3838
paths: {
39-
vs: '/public/vs13',
39+
vs: '/public/13/vs',
4040
},
4141
});
4242

4343
// Load monaco
44-
context.require(['vs13/editor/editor.main'], () => {
44+
context.require(['vs/editor/editor.main'], () => {
4545
this.initMonaco();
4646
});
4747
};

packages/app/src/app/components/CodeEditor/Monaco/mode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default async (title: string, monaco) => {
1313
if (kind[1] === 'html') return 'html';
1414
if (kind[1] === 'vue') {
1515
if (!monaco.languages.getLanguages().find(l => l.id === 'vue')) {
16-
await requireAMDModule(['vs13/language/vue/monaco.contribution']);
16+
await requireAMDModule(['13/vs/language/vue/monaco.contribution']);
1717
}
1818
return 'vue';
1919
}

packages/app/src/app/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@
4141
<script src="https://cdn.ravenjs.com/3.21.0/raven.min.js" crossorigin="anonymous"></script>
4242

4343
<!-- AMD Loader for Monaco -->
44-
<link data-name="vs13/editor/editor.main" rel="stylesheet" href="/public/vs13/editor/editor.main.css">
45-
<script src="/public/vs13/loader.js"></script>
44+
<link data-name="13/vs/editor/editor.main" rel="stylesheet" href="/public/13/vs/editor/editor.main.css">
45+
<script src="/public/13/vs/loader.js"></script>
4646
<script>
4747
window.require.config({
48-
url: '/public/vs13/loader.js',
48+
url: '/public/13/vs/loader.js',
4949
paths: {
50-
vs: '/public/vs13',
50+
vs: '/public/13/vs',
5151
},
5252
});
5353
</script>
54-
<script src="/public/vs13/editor/editor.main.nls.js"></script>
55-
<script src="/public/vs13/editor/editor.main.js"></script>
54+
<script src="/public/13/vs/editor/editor.main.nls.js"></script>
55+
<script src="/public/13/vs/editor/editor.main.js"></script>
5656

5757
<!-- Google Tag Manager -->
5858
<script>

packages/app/src/app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if (process.env.NODE_ENV === 'production') {
7373
/webappstoolbarba\.texthelp\.com\//i,
7474
/metrics\.itunes\.apple\.com\.edgesuite\.net\//i,
7575
// Monaco debuggers
76-
'https://codesandbox.io/public/vs13/language/typescript/lib/typescriptServices.js',
76+
'https://codesandbox.io/public/13/vs/language/typescript/lib/typescriptServices.js',
7777
],
7878
}).install();
7979
} catch (error) {

0 commit comments

Comments
 (0)