Skip to content

Commit 3c050de

Browse files
committed
debug
1 parent 38951ce commit 3c050de

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typings-for-lazy-css-modules-loader",
3-
"version": "2.5.5",
3+
"version": "2.5.6",
44
"description": "Webpack loader that generates TypeScript typings for CSS modules from css-loader on the fly",
55
"main": "src/index.js",
66
"scripts": {

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ module.exports = function (content, ...args) {
9393
const cssModuleDefinition = generateGenericExportInterface(
9494
cssModuleKeys,
9595
filenameToPascalCase(filename),
96-
options.disableLocalsExport
96+
options.disableLocalsExport,
97+
options.lazy && filename.toLowerCase().includes('.lazy.')
9798
)
9899

99100
applyFormattingAndOptions(cssModuleDefinition, options)

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ const generateGenericExportInterface = (
6969
" "
7070
)
7171
const lz = lazy ? `
72-
use: () => void;
73-
unuse: () => void;
72+
use: () => void;
73+
unuse: () => void;
7474
`: ``
7575

7676
return `declare namespace ${namespaceName} {

0 commit comments

Comments
 (0)