mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 19:47:04 +03:00
Create source maps in dev
This commit is contained in:
18
tsconfig-production.json
Normal file
18
tsconfig-production.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"target": "es6",
|
||||||
|
"noImplicitAny": false,
|
||||||
|
"sourceMap": false,
|
||||||
|
"outDir": "dist/js",
|
||||||
|
"noEmitOnError": false,
|
||||||
|
"typeRoots": [ "node_modules/@types" ],
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"jsx": "react",
|
||||||
|
"lib": [
|
||||||
|
"es2019",
|
||||||
|
"dom",
|
||||||
|
"dom.iterable"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,14 +3,14 @@
|
|||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es6",
|
"target": "es6",
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"sourceMap": false,
|
"sourceMap": true,
|
||||||
"outDir": "dist/js",
|
"outDir": "dist/js",
|
||||||
"noEmitOnError": false,
|
"noEmitOnError": false,
|
||||||
"typeRoots": [ "node_modules/@types" ],
|
"typeRoots": [ "node_modules/@types" ],
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2019",
|
"es2019",
|
||||||
"dom",
|
"dom",
|
||||||
"dom.iterable"
|
"dom.iterable"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ export default env => ({
|
|||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
options: {
|
options: {
|
||||||
// disable type checker for user in fork plugin
|
// disable type checker for user in fork plugin
|
||||||
transpileOnly: true
|
transpileOnly: true,
|
||||||
|
configFile: env.mode === "production" ? "tsconfig-production.json" : "tsconfig.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user