diff --git a/dist/normalize.d.ts b/dist/normalize.d.ts deleted file mode 100644 index 4b1e02cb..00000000 --- a/dist/normalize.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function normalize(fileName: string): string; -//# sourceMappingURL=normalize.d.ts.map \ No newline at end of file diff --git a/dist/normalize.d.ts.map b/dist/normalize.d.ts.map deleted file mode 100644 index f3859f10..00000000 --- a/dist/normalize.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../src/normalize.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,UAGzC"} \ No newline at end of file diff --git a/src/host.ts b/src/host.ts index 13cba565..0ee68e19 100644 --- a/src/host.ts +++ b/src/host.ts @@ -1,7 +1,7 @@ import { tsModule } from "./tsproxy"; import * as tsTypes from "typescript"; import * as _ from "lodash"; -import { normalize } from "./normalize"; +import { normalizePath as normalize } from "@rollup/pluginutils"; import { TransformerFactoryCreator } from "./ioptions"; export class LanguageServiceHost implements tsTypes.LanguageServiceHost diff --git a/src/index.ts b/src/index.ts index 2c5c8e35..433d9771 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,7 +13,7 @@ import { printDiagnostics } from "./print-diagnostics"; import { TSLIB, TSLIB_VIRTUAL, tslibSource, tslibVersion } from "./tslib"; import { blue, red, yellow, green } from "colors/safe"; import { relative, dirname, normalize as pathNormalize, resolve as pathResolve } from "path"; -import { normalize } from "./normalize"; +import { normalizePath as normalize } from "@rollup/pluginutils"; import findCacheDir from "find-cache-dir"; import { PluginImpl, PluginContext, InputOptions, OutputOptions, TransformResult, SourceMap, Plugin } from "rollup"; diff --git a/src/normalize.ts b/src/normalize.ts deleted file mode 100644 index 80ce354f..00000000 --- a/src/normalize.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function normalize(fileName: string) -{ - return fileName.split("\\").join("/"); -}