Skip to content

Commit c44938c

Browse files
authored
Merge pull request #4767 from easyops-cn/steve/v3-textmate
fix(): remove monaco-editor-webpack-plugin
2 parents fc60193 + ce2c03a commit c44938c

File tree

3 files changed

+1
-43
lines changed

3 files changed

+1
-43
lines changed

packages/brick-playground/build.config.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { createRequire } from "node:module";
55
import webpack from "webpack";
66
import HtmlWebpackPlugin from "html-webpack-plugin";
77
import CopyPlugin from "copy-webpack-plugin";
8-
import MonacoWebpackPlugin from "monaco-editor-webpack-plugin";
98
import _ from "lodash";
109

1110
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -44,20 +43,6 @@ export default {
4443
filename: "index.html",
4544
template: path.join(packageDir, "src/index.ejs"),
4645
}),
47-
new MonacoWebpackPlugin({
48-
languages: ["javascript", "typescript", "css" /* , "html", "yaml" */],
49-
features: [
50-
"!codelens",
51-
"!colorPicker",
52-
"!documentSymbols",
53-
"!fontZoom",
54-
"!iPadShowKeyboard",
55-
"!inspectTokens",
56-
],
57-
filename: `workers/[name].${
58-
process.env.NODE_ENV === "development" ? "bundle" : "[contenthash:8]"
59-
}.worker.js`,
60-
}),
6146
new CopyPlugin({
6247
patterns: [
6348
{

packages/brick-playground/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"copy-webpack-plugin": "^13.0.0",
4040
"html-webpack-plugin": "^5.6.3",
4141
"monaco-editor": "^0.50.0",
42-
"monaco-editor-webpack-plugin": "^7.1.0",
4342
"webpack-dev-server": "^5.2.2"
4443
}
4544
}

yarn.lock

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4182,11 +4182,6 @@ before-after-hook@^2.2.0:
41824182
resolved "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.2.tgz"
41834183
integrity sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==
41844184

4185-
big.js@^5.2.2:
4186-
version "5.2.2"
4187-
resolved "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz"
4188-
integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==
4189-
41904185
bin-links@^4.0.4:
41914186
version "4.0.4"
41924187
resolved "https://registry.npmjs.org/bin-links/-/bin-links-4.0.4.tgz#c3565832b8e287c85f109a02a17027d152a58a63"
@@ -6109,11 +6104,6 @@ emoji-regex@^9.2.2:
61096104
resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz"
61106105
integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
61116106

6112-
emojis-list@^3.0.0:
6113-
version "3.0.0"
6114-
resolved "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz"
6115-
integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==
6116-
61176107
encodeurl@~1.0.2:
61186108
version "1.0.2"
61196109
resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz"
@@ -9112,7 +9102,7 @@ json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1:
91129102
version "5.0.1"
91139103
resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz"
91149104

9115-
json5@^2.1.2, json5@^2.2.2, json5@^2.2.3:
9105+
json5@^2.2.2, json5@^2.2.3:
91169106
version "2.2.3"
91179107
resolved "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
91189108
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==
@@ -9447,15 +9437,6 @@ loader-runner@^4.2.0:
94479437
resolved "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz"
94489438
integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==
94499439

9450-
loader-utils@^2.0.2:
9451-
version "2.0.4"
9452-
resolved "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz#8b5cb38b5c34a9a018ee1fc0e6a066d1dfcc528c"
9453-
integrity sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==
9454-
dependencies:
9455-
big.js "^5.2.2"
9456-
emojis-list "^3.0.0"
9457-
json5 "^2.1.2"
9458-
94599440
locate-path@^2.0.0:
94609441
version "2.0.0"
94619442
resolved "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz"
@@ -10075,13 +10056,6 @@ moment@^2.30.1:
1007510056
resolved "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz#f8c91c07b7a786e30c59926df530b4eac96974ae"
1007610057
integrity sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==
1007710058

10078-
monaco-editor-webpack-plugin@^7.1.0:
10079-
version "7.1.0"
10080-
resolved "https://registry.npmjs.org/monaco-editor-webpack-plugin/-/monaco-editor-webpack-plugin-7.1.0.tgz#16f265c2b5dbb5fe08681b6b3b7d00d3c5b2ee97"
10081-
integrity sha512-ZjnGINHN963JQkFqjjcBtn1XBtUATDZBMgNQhDQwd78w2ukRhFXAPNgWuacaQiDZsUr4h1rWv5Mv6eriKuOSzA==
10082-
dependencies:
10083-
loader-utils "^2.0.2"
10084-
1008510059
monaco-editor@^0.50.0:
1008610060
version "0.50.0"
1008710061
resolved "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.50.0.tgz#44e62b124c8aed224e1d310bbbe6ffd6d5122413"

0 commit comments

Comments
 (0)