浏览代码

Fix some samples

Alex Dima 3 年之前
父节点
当前提交
e77825074d

+ 1 - 0
samples/browser-amd-monarch/index.html

@@ -28,6 +28,7 @@
 
 				// Define a new theme that constains only rules that match this language
 				monaco.editor.defineTheme('myCoolTheme', {
+					colors: {},
 					base: 'vs',
 					inherit: false,
 					rules: [

+ 0 - 6
samples/browser-esm-parcel/index.html

@@ -6,12 +6,6 @@
 	<body>
 		<h2>Monaco Editor Parcel Bundler Sample</h2>
 
-		This sample shows how to load a small subset of the editor:
-		<ul>
-			<li>Only the core editor and the find widget</li>
-			<li>Only the json language coloring</li>
-		</ul>
-
 		To run this sample, you need to:
 
 		<pre>

+ 2 - 1
samples/browser-esm-vite-react/package.json

@@ -3,7 +3,8 @@
 	"scripts": {
 		"dev": "vite",
 		"build": "tsc && vite build",
-		"serve": "vite preview"
+		"serve": "vite preview",
+		"simpleserver": "node ../node_modules/yaserver/bin/yaserver --root ./dist --port 9999"
 	},
 	"dependencies": {},
 	"devDependencies": {

+ 1 - 0
samples/browser-esm-webpack-monaco-plugin/.gitignore

@@ -1,2 +1,3 @@
 dist/*.js
 dist/*.ttf
+dist/*.txt