mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Get sourcemaps working again. - The change in tsconfig.json is sufficient to get functional, per-.ts-file sourcemaps in build/src/** that work in uncompiled mode (i.e. in the playground / tests). - No further changes are required for these to be ingested by gulp + Closure Compiler; the resulting files - build/*_compressed.js.map - now point at files in core/, blocks/, etc. This works correctly when packaged and also when doing local testing in compiled mode of the checked-in build products (i.e., after they are copied to the repository root.) - In order to get sourcemaps to work for local testing in compiled mode of the build products directly from build/, buildCompile now creates symlinks from build/ to core/, blocks/ and generators/.
29 lines
751 B
JSON
29 lines
751 B
JSON
{
|
|
"include": [
|
|
"core/**/*", // N.B.: also pulls in closure/goog/goog.js if needed.
|
|
"closure/**/*", // Just for ouptut directory structure.
|
|
],
|
|
"exclude": [
|
|
"core/blockly.js"
|
|
],
|
|
"compilerOptions": {
|
|
// Tells TypeScript to read JS files, as
|
|
// normally they are ignored as source files
|
|
"allowJs": true,
|
|
|
|
// Generate d.ts files and sourcemaps.
|
|
"declaration": true,
|
|
"sourceMap": true,
|
|
|
|
"module": "ES2015",
|
|
"moduleResolution": "node",
|
|
"target": "ES2020",
|
|
"strict": true,
|
|
|
|
// This does not understand enums only used to define other enums, so we
|
|
// cannot leave it enabled.
|
|
// See: https://github.com/microsoft/TypeScript/issues/49974
|
|
// "importsNotUsedAsValues": "error"
|
|
}
|
|
}
|