Skip to content

Commit 0b71d12

Browse files
authored
build: remove babel-loader for monaco-editor (#821)
* build: remove babel-loader for monaco-editor * chore: compatible with pnpm@7
1 parent f0ca348 commit 0b71d12

File tree

5 files changed

+27774
-7
lines changed

5 files changed

+27774
-7
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"source.fixAll.markdownlint": false,
88
"source.fixAll.stylelint": true
99
},
10-
"markdownlint.ignore": ["**/*.md"]
10+
"markdownlint.ignore": ["**/*.md"],
11+
"typescript.tsdk": "node_modules/typescript/lib"
1112
}

build/webpack.base.js

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ module.exports = {
3535
test: /\.scss$/,
3636
use: ['style-loader', 'css-loader', 'sass-loader'],
3737
},
38-
{
39-
test: /monaco-editor\/.*\.js/,
40-
loader: 'babel-loader',
41-
},
4238
],
4339
},
4440
plugins: [

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"@types/react": "^18.0.15",
7575
"@types/react-dom": "^18.0.6",
7676
"@types/react-test-renderer": "^18.0.0",
77+
"@types/testing-library__jest-dom": "^5.14.5",
7778
"@typescript-eslint/eslint-plugin": "^3.1.0",
7879
"@typescript-eslint/parser": "^3.1.0",
7980
"babel-loader": "^8.2.2",
@@ -104,7 +105,7 @@
104105
"stylelint": "^13.7.1",
105106
"stylelint-config-sass-guidelines": "^7.1.0",
106107
"through2": "^4.0.2",
107-
"typescript": "^4.0.5",
108+
"typescript": "~4.5.5",
108109
"webpack-cli": "^4.10.0",
109110
"webpack-dev-server": "^4.11.1",
110111
"webpack-merge": "^5.2.0",

0 commit comments

Comments
 (0)