Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getNewLine,
transpileCached,
findCacheDirectory,
ensureDirectorySync,
compilerOptionsToCacheName,
createCachedFn
} from '@ts-tools/transpile';
const { fileExists } = ts.sys;
const identity = (value: string) => value;
const [cachedFindConfigFile] = createCachedFn(
ts.findConfigFile,
(searchPath, _, configName) => searchPath + delimiter + configName
);
const [cachedReadAndParseConfigFile] = createCachedFn(readAndParseConfigFile, identity);
const [cachedFindCacheDirectory] = createCachedFn(findCacheDirectory, identity);
const ensuredDirectories = new Set();
/**
* Loader options which can be provided via webpack configuration
* or a specific request query string
*/
export interface ITypeScriptLoaderOptions {
/**
* Keys to override in the `compilerOptions` section of the
* `tsconfig.json` file.
*/
compilerOptions?: object;
/**
* Turn persistent caching on/off.
transpileCached,
findCacheDirectory,
ensureDirectorySync,
compilerOptionsToCacheName,
createCachedFn
} from '@ts-tools/transpile';
const { fileExists } = ts.sys;
const identity = (value: string) => value;
const [cachedFindConfigFile] = createCachedFn(
ts.findConfigFile,
(searchPath, _, configName) => searchPath + delimiter + configName
);
const [cachedReadAndParseConfigFile] = createCachedFn(readAndParseConfigFile, identity);
const [cachedFindCacheDirectory] = createCachedFn(findCacheDirectory, identity);
const ensuredDirectories = new Set();
/**
* Loader options which can be provided via webpack configuration
* or a specific request query string
*/
export interface ITypeScriptLoaderOptions {
/**
* Keys to override in the `compilerOptions` section of the
* `tsconfig.json` file.
*/
compilerOptions?: object;
/**
* Turn persistent caching on/off.
*
import {
externalSourceMapPrefix,
readAndParseConfigFile,
getCanonicalPath,
getNewLine,
transpileCached,
findCacheDirectory,
ensureDirectorySync,
compilerOptionsToCacheName,
createCachedFn
} from '@ts-tools/transpile';
const { fileExists } = ts.sys;
const identity = (value: string) => value;
const [cachedFindConfigFile] = createCachedFn(
ts.findConfigFile,
(searchPath, _, configName) => searchPath + delimiter + configName
);
const [cachedReadAndParseConfigFile] = createCachedFn(readAndParseConfigFile, identity);
const [cachedFindCacheDirectory] = createCachedFn(findCacheDirectory, identity);
const ensuredDirectories = new Set();
/**
* Loader options which can be provided via webpack configuration
* or a specific request query string
*/
export interface ITypeScriptLoaderOptions {
/**
* Keys to override in the `compilerOptions` section of the
* `tsconfig.json` file.
*/