From adac7c367a487054e706922356ca7a2cee851193 Mon Sep 17 00:00:00 2001 From: Kabir S Date: Sun, 3 Dec 2017 20:15:08 -0600 Subject: [PATCH] Add default export to definition file When using the `style-loader`, the `locals` object gets invisibly murdered. Fixes https://github.com/Jimdo/typings-for-css-modules-loader/issues/20. If someone's not using the `style-loader` they can `import {locals}`, and if they _are_ using the `style-loader`, they can use the default import. This should make everyone happy, and be fully backwards-compatible. --- src/cssModuleToInterface.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cssModuleToInterface.js b/src/cssModuleToInterface.js index 272e431..3415402 100644 --- a/src/cssModuleToInterface.js +++ b/src/cssModuleToInterface.js @@ -95,5 +95,6 @@ ${interfaceProperties} } export const locals: ${interfaceName}; +export default locals; `); };