ts-loader
Advanced tools
+16
| # Security Policy | ||
| ## Supported Versions | ||
| Use this section to tell people about which versions of your project are | ||
| currently being supported with security updates. | ||
| | Version | Supported | | ||
| | ------- | ------------------ | | ||
| | 9.x.x | :white_check_mark: | | ||
| | < 9.0 | :x: | | ||
| ## Reporting a Vulnerability | ||
| To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). | ||
| Tidelift will coordinate the fix and disclosure. |
+3
-0
| # Changelog | ||
| ## 9.5.2 | ||
| * [fix: add more detailed error messages](https://github.com/TypeStrong/ts-loader/pull/1665) - thanks @hai-x | ||
| ## 9.5.1 | ||
@@ -4,0 +7,0 @@ * [fix: inputSourceMap can be null](https://github.com/TypeStrong/ts-loader/pull/1639) [#1638] - thanks @johnnyreilly and @michaeltford |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"after-compile.d.ts","sourceRoot":"","sources":["../src/after-compile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAInC,OAAO,KAAK,EAIV,UAAU,EAEX,MAAM,cAAc,CAAC;AAUtB;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,UAAU,EACpB,cAAc,EAAE,MAAM,GAAG,SAAS,iBAKb,QAAQ,WAAW,YAAY,MAAM,IAAI,UAoD/D"} | ||
| {"version":3,"file":"after-compile.d.ts","sourceRoot":"","sources":["../src/after-compile.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAInC,OAAO,KAAK,EAIV,UAAU,EAEX,MAAM,cAAc,CAAC;AAUtB;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,UAAU,EACpB,cAAc,EAAE,MAAM,GAAG,SAAS,iBAKb,OAAO,CAAC,WAAW,YAAY,MAAM,IAAI,UAoD/D"} |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.makeAfterCompile = void 0; | ||
| exports.makeAfterCompile = makeAfterCompile; | ||
| const path = require("path"); | ||
@@ -47,3 +47,2 @@ const webpack = require("webpack"); | ||
| } | ||
| exports.makeAfterCompile = makeAfterCompile; | ||
| /** | ||
@@ -50,0 +49,0 @@ * handle compiler option errors after the first compile |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.getCompilerOptions = exports.getCompiler = void 0; | ||
| exports.getCompiler = getCompiler; | ||
| exports.getCompilerOptions = getCompilerOptions; | ||
| const semver = require("semver"); | ||
@@ -43,3 +44,2 @@ function getCompiler(loaderOptions, log) { | ||
| } | ||
| exports.getCompiler = getCompiler; | ||
| function getCompilerOptions(configParseResult, compiler) { | ||
@@ -65,3 +65,2 @@ const defaultOptions = { skipLibCheck: true }; | ||
| } | ||
| exports.getCompilerOptions = getCompilerOptions; | ||
| //# sourceMappingURL=compilerSetup.js.map |
+3
-4
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.getParsedCommandLine = exports.getConfigParseResult = exports.getConfigFile = void 0; | ||
| exports.getConfigFile = getConfigFile; | ||
| exports.getConfigParseResult = getConfigParseResult; | ||
| exports.getParsedCommandLine = getParsedCommandLine; | ||
| const path = require("path"); | ||
@@ -43,3 +45,2 @@ const compilerSetup_1 = require("./compilerSetup"); | ||
| } | ||
| exports.getConfigFile = getConfigFile; | ||
| /** | ||
@@ -98,3 +99,2 @@ * Find a tsconfig file by name or by path. | ||
| } | ||
| exports.getConfigParseResult = getConfigParseResult; | ||
| const extendedConfigCache = new Map(); | ||
@@ -113,3 +113,2 @@ function getParsedCommandLine(compiler, loaderOptions, configFilePath) { | ||
| } | ||
| exports.getParsedCommandLine = getParsedCommandLine; | ||
| function getCompilerOptionsToExtend(compiler, loaderOptions, basePath, configFileName) { | ||
@@ -116,0 +115,0 @@ return compiler.convertCompilerOptionsFromJson(loaderOptions.compilerOptions, basePath, configFileName).options; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.setTSInstanceInCache = exports.getTSInstanceFromCache = void 0; | ||
| exports.getTSInstanceFromCache = getTSInstanceFromCache; | ||
| exports.setTSInstanceInCache = setTSInstanceInCache; | ||
| // Some loaders (e.g. thread-loader) will set the _compiler property to undefined. | ||
@@ -21,3 +22,2 @@ // We can't use undefined as a WeakMap key as it will throw an error at runtime, | ||
| } | ||
| exports.getTSInstanceFromCache = getTSInstanceFromCache; | ||
| function setTSInstanceInCache(key, name, instance) { | ||
@@ -30,3 +30,2 @@ var _a; | ||
| } | ||
| exports.setTSInstanceInCache = setTSInstanceInCache; | ||
| //# sourceMappingURL=instance-cache.js.map |
+14
-15
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.getEmitOutput = exports.getEmitFromWatchHost = exports.getInputFileNameFromOutput = exports.getOutputFileNames = exports.forEachResolvedProjectReference = exports.buildSolutionReferences = exports.reportTranspileErrors = exports.getCustomTransformers = exports.initializeInstance = exports.getTypeScriptInstance = void 0; | ||
| exports.getTypeScriptInstance = getTypeScriptInstance; | ||
| exports.initializeInstance = initializeInstance; | ||
| exports.getCustomTransformers = getCustomTransformers; | ||
| exports.reportTranspileErrors = reportTranspileErrors; | ||
| exports.buildSolutionReferences = buildSolutionReferences; | ||
| exports.forEachResolvedProjectReference = forEachResolvedProjectReference; | ||
| exports.getOutputFileNames = getOutputFileNames; | ||
| exports.getInputFileNameFromOutput = getInputFileNameFromOutput; | ||
| exports.getEmitFromWatchHost = getEmitFromWatchHost; | ||
| exports.getEmitOutput = getEmitOutput; | ||
| const chalk = require("chalk"); | ||
@@ -44,3 +53,2 @@ const fs = require("fs"); | ||
| } | ||
| exports.getTypeScriptInstance = getTypeScriptInstance; | ||
| function createFilePathKeyMapper(compiler, loaderOptions) { | ||
@@ -129,5 +137,5 @@ // Cache file path key - a map lookup is much faster than filesystem/regex operations & the result will never change | ||
| version: 0, | ||
| program: undefined, | ||
| program: undefined, // temporary, to be set later | ||
| dependencyGraph: new Map(), | ||
| transformers: {}, | ||
| transformers: {}, // this is only set temporarily, custom transformers are created further down | ||
| colors, | ||
@@ -175,3 +183,3 @@ initialSetupPending: true, | ||
| version: 0, | ||
| transformers: {}, | ||
| transformers: {}, // this is only set temporarily, custom transformers are created further down | ||
| dependencyGraph: new Map(), | ||
@@ -244,3 +252,3 @@ colors, | ||
| if (!loader._compiler.hooks) { | ||
| throw new Error("You may be using an old version of webpack; please check you're using at least version 4"); | ||
| throw new Error("You may be using an old version of webpack; please check you're using at least version 4. Or you should set `transpileOnly` or `happyPackMode` to true when using with `thread-loader`."); | ||
| } | ||
@@ -269,3 +277,2 @@ if (instance.loaderOptions.experimentalWatchApi) { | ||
| } | ||
| exports.initializeInstance = initializeInstance; | ||
| function getCustomTransformers(loaderOptions, program, getProgram) { | ||
@@ -292,3 +299,2 @@ // same strategy as https://github.com/s-panferov/awesome-typescript-loader/pull/531/files | ||
| } | ||
| exports.getCustomTransformers = getCustomTransformers; | ||
| function getScriptRegexp(instance) { | ||
@@ -321,3 +327,2 @@ // If resolveJsonModules is set, we should accept json files | ||
| } | ||
| exports.reportTranspileErrors = reportTranspileErrors; | ||
| function buildSolutionReferences(instance, loader) { | ||
@@ -341,3 +346,2 @@ if (!(0, utils_1.supportsSolutionBuild)(instance)) { | ||
| } | ||
| exports.buildSolutionReferences = buildSolutionReferences; | ||
| function forEachResolvedProjectReference(resolvedProjectReferences, cb) { | ||
@@ -367,3 +371,2 @@ let seenResolvedRefs; | ||
| } | ||
| exports.forEachResolvedProjectReference = forEachResolvedProjectReference; | ||
| // This code is here as a temporary holder | ||
@@ -422,3 +425,2 @@ function fileExtensionIs(fileName, ext) { | ||
| } | ||
| exports.getOutputFileNames = getOutputFileNames; | ||
| function getInputFileNameFromOutput(instance, filePath) { | ||
@@ -443,3 +445,2 @@ if (filePath.match(constants_1.tsTsxRegex) && !constants_1.declarationRegex.test(filePath)) { | ||
| } | ||
| exports.getInputFileNameFromOutput = getInputFileNameFromOutput; | ||
| function getEmitFromWatchHost(instance, filePath) { | ||
@@ -487,3 +488,2 @@ const program = (0, utils_1.ensureProgram)(instance); | ||
| } | ||
| exports.getEmitFromWatchHost = getEmitFromWatchHost; | ||
| function getEmitOutput(instance, filePath) { | ||
@@ -518,3 +518,2 @@ if (fileExtensionIs(filePath, instance.compiler.Extension.Dts)) { | ||
| } | ||
| exports.getEmitOutput = getEmitOutput; | ||
| //# sourceMappingURL=instances.js.map |
+2
-2
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.makeLogger = exports.LogLevel = void 0; | ||
| exports.LogLevel = void 0; | ||
| exports.makeLogger = makeLogger; | ||
| const console_1 = require("console"); | ||
@@ -36,3 +37,2 @@ var LogLevel; | ||
| } | ||
| exports.makeLogger = makeLogger; | ||
| //# sourceMappingURL=logger.js.map |
+1
-2
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.makeResolver = void 0; | ||
| exports.makeResolver = makeResolver; | ||
| function makeResolver(_options) { | ||
@@ -11,3 +11,2 @@ /* Currently, `enhanced-resolve` does not work properly alongside `ts-loader`. | ||
| } | ||
| exports.makeResolver = makeResolver; | ||
| //# sourceMappingURL=resolver.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"servicesHost.d.ts","sourceRoot":"","sources":["../src/servicesHost.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,UAAU,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAIxC,OAAO,KAAK,EAKV,WAAW,EACX,aAAa,EAIb,8BAA8B,EAC9B,4BAA4B,EAG5B,UAAU,EAIV,SAAS,EACV,MAAM,cAAc,CAAC;AAgHtB;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,EAC5C,QAAQ,EAAE,UAAU,EACpB,iBAAiB,CAAC,EAAE,aAAa,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,EAAE,UAAU,EACpB,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,QAuBpC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,EAC5C,QAAQ,EAAE,UAAU,EACpB,iBAAiB,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,gBAAgB,CAAC,aA6H/D;AA0DD;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,EAC5C,QAAQ,EAAE,UAAU,GACnB,4BAA4B,CAqe9B;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,0BAqBtE"} |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.getSolutionErrors = exports.makeSolutionBuilderHost = exports.makeWatchHost = exports.updateFileWithText = exports.makeServicesHost = void 0; | ||
| exports.makeServicesHost = makeServicesHost; | ||
| exports.updateFileWithText = updateFileWithText; | ||
| exports.makeWatchHost = makeWatchHost; | ||
| exports.makeSolutionBuilderHost = makeSolutionBuilderHost; | ||
| exports.getSolutionErrors = getSolutionErrors; | ||
| const path = require("path"); | ||
@@ -119,3 +123,2 @@ const config_1 = require("./config"); | ||
| } | ||
| exports.makeServicesHost = makeServicesHost; | ||
| function makeResolvers(compiler, compilerOptions, moduleResolutionHost, customResolveTypeReferenceDirective, customResolveModuleName, resolveSync, appendTsTsxSuffixesIfRequired, scriptRegex, instance) { | ||
@@ -175,3 +178,2 @@ const resolveModuleName = makeResolveModuleName(compiler, compilerOptions, moduleResolutionHost, customResolveModuleName, instance); | ||
| } | ||
| ``; | ||
| function invokeRecursiveDirectoryWatcher(directory, fileAddedOrRemoved) { | ||
@@ -238,3 +240,2 @@ directory = path.normalize(directory); | ||
| } | ||
| exports.updateFileWithText = updateFileWithText; | ||
| /** | ||
@@ -315,3 +316,2 @@ * Create the TypeScript Watch host | ||
| } | ||
| exports.makeWatchHost = makeWatchHost; | ||
| const missingFileModifiedTime = new Date(0); | ||
@@ -715,3 +715,2 @@ function identity(x) { | ||
| } | ||
| exports.makeSolutionBuilderHost = makeSolutionBuilderHost; | ||
| function getSolutionErrors(instance, context) { | ||
@@ -725,3 +724,2 @@ const solutionErrors = []; | ||
| } | ||
| exports.getSolutionErrors = getSolutionErrors; | ||
| function makeResolveTypeReferenceDirective(compiler, compilerOptions, moduleResolutionHost, customResolveTypeReferenceDirective, instance) { | ||
@@ -728,0 +726,0 @@ var _a, _b; |
+0
-1
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| import type { Chalk } from 'chalk'; | ||
@@ -3,0 +2,0 @@ import * as webpack from 'webpack'; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAInC,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,KAAK,UAAU,MAAM,YAAY,CAAC;AAG9C,OAAO,KAAK,EAEV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,EAEtB,UAAU,EACX,MAAM,cAAc,CAAC;AAqBtB;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,SAAS,EAC7D,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,KAAK,EACb,QAAQ,EAAE,OAAO,UAAU,EAC3B,KAAK,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAA;CAAE,EACjD,OAA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esModule", { value: true }); | ||
| exports.useCaseSensitiveFileNames = exports.isReferencedFile = exports.supportsSolutionBuild = exports.ensureProgram = exports.arrify = exports.collectAllDependants = exports.populateReverseDependencyGraph = exports.populateDependencyGraph = exports.unorderedRemoveItem = exports.appendSuffixesIfMatch = exports.appendSuffixIfMatch = exports.tsLoaderSource = exports.makeError = exports.fsReadFile = exports.formatErrors = void 0; | ||
| exports.formatErrors = formatErrors; | ||
| exports.fsReadFile = fsReadFile; | ||
| exports.makeError = makeError; | ||
| exports.tsLoaderSource = tsLoaderSource; | ||
| exports.appendSuffixIfMatch = appendSuffixIfMatch; | ||
| exports.appendSuffixesIfMatch = appendSuffixesIfMatch; | ||
| exports.unorderedRemoveItem = unorderedRemoveItem; | ||
| exports.populateDependencyGraph = populateDependencyGraph; | ||
| exports.populateReverseDependencyGraph = populateReverseDependencyGraph; | ||
| exports.collectAllDependants = collectAllDependants; | ||
| exports.arrify = arrify; | ||
| exports.ensureProgram = ensureProgram; | ||
| exports.supportsSolutionBuild = supportsSolutionBuild; | ||
| exports.isReferencedFile = isReferencedFile; | ||
| exports.useCaseSensitiveFileNames = useCaseSensitiveFileNames; | ||
| const fs = require("fs"); | ||
@@ -67,3 +81,2 @@ const micromatch = require("micromatch"); | ||
| } | ||
| exports.formatErrors = formatErrors; | ||
| function getFileLocations(file, position, length = 0) { | ||
@@ -92,3 +105,2 @@ const startLC = file.getLineAndCharacterOfPosition(position); | ||
| } | ||
| exports.fsReadFile = fsReadFile; | ||
| function makeError(loaderOptions, message, file, location, endLocation) { | ||
@@ -113,3 +125,2 @@ const error = new webpack.WebpackError(message); | ||
| } | ||
| exports.makeError = makeError; | ||
| function makeWebpackLocation(location, endLocation) { | ||
@@ -128,3 +139,2 @@ const start = { | ||
| } | ||
| exports.tsLoaderSource = tsLoaderSource; | ||
| function appendSuffixIfMatch(patterns, filePath, suffix) { | ||
@@ -140,3 +150,2 @@ if (patterns.length > 0) { | ||
| } | ||
| exports.appendSuffixIfMatch = appendSuffixIfMatch; | ||
| function appendSuffixesIfMatch(suffixDict, filePath) { | ||
@@ -149,3 +158,2 @@ let amendedPath = filePath; | ||
| } | ||
| exports.appendSuffixesIfMatch = appendSuffixesIfMatch; | ||
| function unorderedRemoveItem(array, item) { | ||
@@ -162,3 +170,2 @@ for (let i = 0; i < array.length; i++) { | ||
| } | ||
| exports.unorderedRemoveItem = unorderedRemoveItem; | ||
| function populateDependencyGraph(resolvedModules, instance, containingFile) { | ||
@@ -171,3 +178,2 @@ resolvedModules = resolvedModules.filter(mod => mod !== null && mod !== undefined); | ||
| } | ||
| exports.populateDependencyGraph = populateDependencyGraph; | ||
| function populateReverseDependencyGraph(instance) { | ||
@@ -196,3 +202,2 @@ const reverseDependencyGraph = new Map(); | ||
| } | ||
| exports.populateReverseDependencyGraph = populateReverseDependencyGraph; | ||
| /** | ||
@@ -213,3 +218,2 @@ * Recursively collect all possible dependants of passed file | ||
| } | ||
| exports.collectAllDependants = collectAllDependants; | ||
| function arrify(val) { | ||
@@ -221,3 +225,2 @@ if (val === null || val === undefined) { | ||
| } | ||
| exports.arrify = arrify; | ||
| function ensureProgram(instance) { | ||
@@ -242,3 +245,2 @@ if (instance && instance.watchHost) { | ||
| } | ||
| exports.ensureProgram = ensureProgram; | ||
| function supportsSolutionBuild(instance) { | ||
@@ -250,3 +252,2 @@ return (!!instance.configFilePath && | ||
| } | ||
| exports.supportsSolutionBuild = supportsSolutionBuild; | ||
| function isReferencedFile(instance, filePath) { | ||
@@ -256,3 +257,2 @@ return (!!instance.solutionBuilderHost && | ||
| } | ||
| exports.isReferencedFile = isReferencedFile; | ||
| function useCaseSensitiveFileNames(compiler, loaderOptions) { | ||
@@ -263,3 +263,2 @@ return loaderOptions.useCaseSensitiveFileNames !== undefined | ||
| } | ||
| exports.useCaseSensitiveFileNames = useCaseSensitiveFileNames; | ||
| //# sourceMappingURL=utils.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"watch-run.d.ts","sourceRoot":"","sources":["../src/watch-run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAGxC,OAAO,KAAK,EAAe,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI3E;;GAEG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,cAS1B,QAAQ,QAAQ,mBAAmB,KAAK,KAAK,IAAI,UAwDpE"} | ||
| {"version":3,"file":"watch-run.d.ts","sourceRoot":"","sources":["../src/watch-run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAGxC,OAAO,KAAK,EAAe,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI3E;;GAEG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,cAS1B,OAAO,CAAC,QAAQ,YAAY,CAAC,GAAG,CAAC,EAAE,KAAK,KAAK,IAAI,UAwDpE"} |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.makeWatchRun = void 0; | ||
| exports.makeWatchRun = makeWatchRun; | ||
| const path = require("path"); | ||
@@ -63,3 +63,2 @@ const constants = require("./constants"); | ||
| } | ||
| exports.makeWatchRun = makeWatchRun; | ||
| function updateFile(instance, key, filePath, loader, loaderIndex) { | ||
@@ -66,0 +65,0 @@ return new Promise((resolve, reject) => { |
+2
-2
| { | ||
| "name": "ts-loader", | ||
| "version": "9.5.1", | ||
| "version": "9.5.2", | ||
| "description": "TypeScript loader for webpack", | ||
@@ -97,3 +97,3 @@ "main": "index.js", | ||
| "rimraf": "^2.6.2", | ||
| "typescript": "^5.2.2", | ||
| "typescript": "^5.7.2", | ||
| "webpack": "^5.74.0", | ||
@@ -100,0 +100,0 @@ "webpack-cli": "^4.10.0" |
54
1.89%258065
-0.15%3151
-0.41%