We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ecfd87 commit e0f5bd2Copy full SHA for e0f5bd2
1 file changed
src/createDts.ts
@@ -8,6 +8,13 @@ export const createDtsSnapshot = (
8
logger: Logger
9
): ts.IScriptSnapshot => {
10
const text = scriptSnapshot.getText(0, scriptSnapshot.getLength())
11
+
12
+ // Sometimes the generated dts are passed
13
+ // relates https://github.com/mrmckeb/typescript-plugin-css-modules/issues/41
14
+ if (text.includes('export default data')) {
15
+ return scriptSnapshot
16
+ }
17
18
let dts
19
try {
20
const data = toml.parse(text)
0 commit comments