Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): {
compilerOptions.module = 0 /* None */;
libFileName = 'lib.es6.d.ts';
}
libFileName = path.join(path.dirname(require.resolve(loaderOptions.compiler)), libFileName);

if (loaderOptions.transpileOnly) {
// quick return for transpiling
Expand All @@ -292,7 +293,7 @@ function ensureTypeScriptInstance(loaderOptions: LoaderOptions, loader: any): {
}

if (!compilerOptions.noLib) {
filesToLoad.push(path.join(path.dirname(require.resolve(loaderOptions.compiler)), libFileName));
filesToLoad.push(libFileName);
}

// Load initial files (core lib files, any files specified in tsconfig.json)
Expand Down