mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 15:00:13 +01:00
Convert demo from using ts-loader to babel-loader for transpiling JavaScript for web browsers (adds support for .cjs, see https://github.com/TypeStrong/ts-loader/pull/1503).
This commit is contained in:
parent
fc2ed221ff
commit
ed854f7092
4 changed files with 4803 additions and 3617 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1,10 +0,0 @@
|
||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"allowJs": true,
|
|
||||||
"outDir": "unused",
|
|
||||||
"target": "es2015"
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"../lib/*.js"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -19,16 +19,14 @@ function config(options) {
|
||||||
"module": {
|
"module": {
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"test": /.js$/,
|
"test": /\.[cm]?js$/,
|
||||||
"use": [
|
"exclude": /node_modules/,
|
||||||
{
|
"use": {
|
||||||
"loader": "ts-loader",
|
"loader": "babel-loader",
|
||||||
"options": {
|
"options": {
|
||||||
"configFile": "../demo/tsconfig.json",
|
"presets": [ "@babel/preset-env" ]
|
||||||
"transpileOnly": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,9 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ava": "5.2.0",
|
"ava": "5.2.0",
|
||||||
|
"babel-loader": "9.1.2",
|
||||||
|
"@babel/core": "7.20.12",
|
||||||
|
"@babel/preset-env": "7.20.2",
|
||||||
"c8": "7.13.0",
|
"c8": "7.13.0",
|
||||||
"eslint": "8.34.0",
|
"eslint": "8.34.0",
|
||||||
"eslint-plugin-es": "4.1.0",
|
"eslint-plugin-es": "4.1.0",
|
||||||
|
|
@ -87,7 +90,6 @@
|
||||||
"strip-json-comments": "5.0.0",
|
"strip-json-comments": "5.0.0",
|
||||||
"terser-webpack-plugin": "5.3.6",
|
"terser-webpack-plugin": "5.3.6",
|
||||||
"toml": "3.0.0",
|
"toml": "3.0.0",
|
||||||
"ts-loader": "9.4.2",
|
|
||||||
"tv4": "1.3.0",
|
"tv4": "1.3.0",
|
||||||
"typescript": "4.9.5",
|
"typescript": "4.9.5",
|
||||||
"webpack": "5.75.0",
|
"webpack": "5.75.0",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue