Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
adopt latest monaco-editor-core (v0.31.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bummoblizard committed Jan 20, 2022
1 parent 6100423 commit d6dbad4
Show file tree
Hide file tree
Showing 4 changed files with 1,423 additions and 2,695 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@
"main": "./dist/index.js",
"type": "module",
"scripts": {
"demo": "webpack-dev-server --config webpack.config.cjs --host 0.0.0.0 --port 8084",
"demo": "webpack-dev-server --mode development --config webpack.config.cjs --host 0.0.0.0 --port 8084",
"build": "(rm -r dist output || true)|| exit 0 && webpack --config webpack.config.cjs --progress && cp -R configurations dist/configurations && cp -R grammars dist/grammars && mkdir dist/node_modules && cp -R node_modules/vscode-oniguruma dist/node_modules/vscode-oniguruma && cp index.html dist/index.html && mkdir output && cp -R dist output/monaco-textmate.bundle && open output",
"release": "tsc"
},
"dependencies": {
"emmet-monaco-es": "^4.7.0",
"monaco-editor": "git://github.com/bummoblizard/monaco-editor-release.git#ea638d3e0bdc1dae52ce92867ccc534d81e6b4a3",
"vscode-oniguruma": "1.3.0",
"vscode-textmate": "5.2.0"
"monaco-editor": "git://github.com/thebaselab/monaco-editor-release.git#bc1821ec694ccc57f7191fd4d2fb68648ad0e125",
"vscode-oniguruma": "1.5.1",
"vscode-textmate": "6.0.0"
},
"devDependencies": {
"css-loader": "^5.1.1",
"css-loader": "5.2.7",
"file-loader": "^6.2.0",
"monaco-editor-webpack-plugin": "4.1.1",
"monaco-editor-webpack-plugin": "7.0.1",
"prettier": "2.0.5",
"style-loader": "^2.0.0",
"ts-loader": "^8.0.17",
"typescript": "^4.2.3",
"style-loader": "^3.3.1",
"ts-loader": "^9.2.6",
"typescript": "4.4.4",
"wasm-loader": "1.3.0",
"webpack": "4.43.0",
"webpack-cli": "3.3.11",
"webpack-dev-server": "3.10.3"
"webpack": "^5.64.1",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.5.0"
}
}
4 changes: 2 additions & 2 deletions src/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import type {LanguageId, LanguageInfo} from './register';

import {INITIAL, Registry, parseRawGrammar} from 'vscode-textmate';
// @ts-ignore
import {generateTokensCSSForColorMap} from 'monaco-editor/esm/vs/editor/common/modes/supports/tokenization.js';
import {generateTokensCSSForColorMap} from 'monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js';
// @ts-ignore
import {TokenizationRegistry} from 'monaco-editor/esm/vs/editor/common/modes.js';
import {TokenizationRegistry} from 'monaco-editor/esm/vs/editor/common/languages.js';
// @ts-ignore
import {Color} from 'monaco-editor/esm/vs/base/common/color.js';

Expand Down
5 changes: 5 additions & 0 deletions webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ module.exports = {
resolve: {
extensions: ['.js', '.ts', '.tsx'],
},
devServer: {
static: {
directory: __dirname
}
},
module: {
rules: [
{
Expand Down
Loading

0 comments on commit d6dbad4

Please sign in to comment.