css-modules-typescript-loader
Advanced tools
Comparing version 4.0.0 to 4.0.1
10
index.js
@@ -67,2 +67,10 @@ const fs = require('fs'); | ||
const extractLocalExports = (content) => { | ||
let localExports = content.split('exports.locals')[1]; | ||
if (!localExports) { | ||
localExports = content.split('___CSS_LOADER_EXPORT___.locals')[1]; | ||
} | ||
return localExports; | ||
} | ||
module.exports = function(content, ...rest) { | ||
@@ -84,3 +92,3 @@ const { failed, success } = makeDoneHandlers(this.async(), content, rest); | ||
const localExports = content.split('exports.locals')[1]; | ||
const localExports = extractLocalExports(content); | ||
@@ -87,0 +95,0 @@ while ((match = keyRegex.exec(localExports))) { |
{ | ||
"name": "css-modules-typescript-loader", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Webpack loader to create TypeScript declarations for CSS Modules", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
"commitlint-config-seek": "^1.0.0", | ||
"css-loader": "^1.0.0", | ||
"css-loader": "^4.2.1", | ||
"cz-conventional-changelog": "^2.1.0", | ||
@@ -41,0 +41,0 @@ "husky": "^1.1.2", |
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
16270
297