typescript-plugin-css-modules
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -59,13 +59,13 @@ "use strict"; | ||
info.languageServiceHost.resolveModuleNames = function (moduleNames, containingFile, reusedNames) { | ||
var resolvedCSS = []; | ||
return _resolveModuleNames_1(moduleNames.filter(function (moduleName) { | ||
var resolvedModules = _resolveModuleNames_1(moduleNames, containingFile, reusedNames); | ||
return moduleNames.map(function (moduleName, index) { | ||
if (cssExtensions_1.isRelativeCSS(moduleName)) { | ||
resolvedCSS.push({ | ||
return { | ||
extension: ts_module.Extension.Dts, | ||
isExternalLibraryImport: false, | ||
resolvedFileName: path.resolve(path.dirname(containingFile), moduleName), | ||
}); | ||
return false; | ||
}; | ||
} | ||
return true; | ||
}), containingFile, reusedNames).concat(resolvedCSS); | ||
return resolvedModules[index]; | ||
}); | ||
}; | ||
@@ -72,0 +72,0 @@ } |
{ | ||
"name": "typescript-plugin-css-modules", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "author": "Brody McKee <mrmckeb@hotmail.com>", |
@@ -9,3 +9,3 @@ # typescript-plugin-css-modules | ||
<img src="https://raw.githubusercontent.com/mrmckeb/typescript-plugin-css-modules/master/docs/images/example.gif" alt="typescript-plugin-css-modules example" /> | ||
<img src="https://raw.githubusercontent.com/mrmckeb/typescript-plugin-css-modules/master/.github/images/example.gif" alt="typescript-plugin-css-modules example" /> | ||
@@ -77,4 +77,3 @@ This project was inspired by this [`create-react-app` issue](https://github.com/facebook/create-react-app/issues/5677) | ||
2. Use your workspace's version of TypeScript, which will load the plugins from your `tsconfig.json` file. | ||
([instructions](https://code.visualstudio.com/docs/languages/typescript#_using-the-workspace-version-of-typescript)). | ||
2. Use your workspace's version of TypeScript, which will load the plugins from your `tsconfig.json` file. For instructions, see: [Using the workspace version of TypeScript](https://code.visualstudio.com/docs/languages/typescript#_using-the-workspace-version-of-typescript). | ||
@@ -107,1 +106,3 @@ ### Custom definitions | ||
``` | ||
## Contributors |
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
151768
106