ts-loader
Advanced tools
Comparing version 8.0.18 to 8.1.0
# Changelog | ||
## v8.1.0 | ||
* [feat: remove top-level typescript import statements](https://github.com/TypeStrong/ts-loader/pull/1259) - thanks @ulivz | ||
## v8.0.18 | ||
@@ -4,0 +7,0 @@ * [Perf: Optimize fileExists callback path](https://github.com/TypeStrong/ts-loader/issues/1266) - thanks @berickson1 |
@@ -1,2 +0,2 @@ | ||
import * as typescript from 'typescript'; | ||
import type * as typescript from 'typescript'; | ||
import { LoaderOptions } from './interfaces'; | ||
@@ -10,3 +10,3 @@ import * as logger from './logger'; | ||
}; | ||
export declare function getCompilerOptions(configParseResult: typescript.ParsedCommandLine): typescript.CompilerOptions; | ||
export declare function getCompilerOptions(configParseResult: typescript.ParsedCommandLine, compiler: typeof typescript): typescript.CompilerOptions; | ||
//# sourceMappingURL=compilerSetup.d.ts.map |
@@ -5,3 +5,2 @@ "use strict"; | ||
const semver = require("semver"); | ||
const typescript = require("typescript"); | ||
function getCompiler(loaderOptions, log) { | ||
@@ -46,3 +45,3 @@ let compiler; | ||
exports.getCompiler = getCompiler; | ||
function getCompilerOptions(configParseResult) { | ||
function getCompilerOptions(configParseResult, compiler) { | ||
const compilerOptions = Object.assign({}, configParseResult.options, { | ||
@@ -55,4 +54,4 @@ skipLibCheck: true, | ||
compilerOptions.target !== undefined && | ||
compilerOptions.target < typescript.ScriptTarget.ES2015) { | ||
compilerOptions.module = typescript.ModuleKind.CommonJS; | ||
compilerOptions.target < compiler.ScriptTarget.ES2015) { | ||
compilerOptions.module = compiler.ModuleKind.CommonJS; | ||
} | ||
@@ -59,0 +58,0 @@ if (configParseResult.options.configFile) { |
import { Chalk } from 'chalk'; | ||
import * as typescript from 'typescript'; | ||
import type * as typescript from 'typescript'; | ||
import * as webpack from 'webpack'; | ||
@@ -4,0 +4,0 @@ import { LoaderOptions, WebpackError } from './interfaces'; |
@@ -101,3 +101,3 @@ "use strict"; | ||
if (result) { | ||
result.options = compilerSetup_1.getCompilerOptions(result); | ||
result.options = compilerSetup_1.getCompilerOptions(result, compiler); | ||
} | ||
@@ -104,0 +104,0 @@ return result; |
@@ -1,2 +0,2 @@ | ||
import * as typescript from 'typescript'; | ||
import type * as typescript from 'typescript'; | ||
import * as webpack from 'webpack'; | ||
@@ -3,0 +3,0 @@ import { LoaderOptions, TSInstance, WebpackError } from './interfaces'; |
@@ -111,3 +111,3 @@ "use strict"; | ||
} | ||
const compilerOptions = compilerSetup_1.getCompilerOptions(configParseResult); | ||
const compilerOptions = compilerSetup_1.getCompilerOptions(configParseResult, compiler); | ||
const rootFileNames = new Set(); | ||
@@ -114,0 +114,0 @@ const files = new Map(); |
@@ -1,2 +0,2 @@ | ||
import * as typescript from 'typescript'; | ||
import type * as typescript from 'typescript'; | ||
import { Chalk } from 'chalk'; | ||
@@ -3,0 +3,0 @@ import * as logger from './logger'; |
@@ -1,2 +0,2 @@ | ||
import * as typescript from 'typescript'; | ||
import type * as typescript from 'typescript'; | ||
import * as webpack from 'webpack'; | ||
@@ -3,0 +3,0 @@ import { FilePathKey, ServiceHostWhichMayBeCacheable, SolutionBuilderWithWatchHost, TSInstance, WatchHost, WebpackError } from './interfaces'; |
import { Chalk } from 'chalk'; | ||
import * as typescript from 'typescript'; | ||
import type * as typescript from 'typescript'; | ||
import { FileLocation, FilePathKey, LoaderOptions, ResolvedModule, ReverseDependencyGraph, TSInstance, WebpackError, WebpackModule } from './interfaces'; | ||
@@ -4,0 +4,0 @@ /** |
{ | ||
"name": "ts-loader", | ||
"version": "8.0.18", | ||
"version": "8.1.0", | ||
"description": "TypeScript loader for webpack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,2 @@ # TypeScript loader for webpack | ||
![GitHub build)](https://github.com/TypeStrong/ts-loader/workflows/Continuous%20Integration%20(build%20and%20test)/badge.svg) | ||
[![Travis build](https://travis-ci.org/TypeStrong/ts-loader.svg?branch=master)](https://travis-ci.org/TypeStrong/ts-loader) | ||
[![Downloads](http://img.shields.io/npm/dm/ts-loader.svg)](https://npmjs.org/package/ts-loader) | ||
@@ -8,0 +7,0 @@ [![node version](https://img.shields.io/node/v/ts-loader.svg)](https://www.npmjs.com/package/ts-loader) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
242546
2960
767