Skip to content

Commit 578b417

Browse files
committed
fix: cannot import inside browser module (fixes #112)
1 parent 3c4e6d0 commit 578b417

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/getClassName.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type {
55
StyleModuleImportMapType,
66
HandleMissingStyleNameOptionType
77
} from './types';
8-
import optionsDefaults from './schemas/optionsDefaults';
98

109
const isNamespacedStyleName = (styleName: string): boolean => {
1110
return styleName.indexOf('.') !== -1;
@@ -22,7 +21,7 @@ const getClassNameForNamespacedStyleName = (
2221
const styleNameParts = styleName.split('.');
2322
const importName = styleNameParts[0];
2423
const moduleName = styleNameParts[1];
25-
const handleMissingStyleName = handleMissingStyleNameOption || optionsDefaults.handleMissingStyleName;
24+
const handleMissingStyleName = handleMissingStyleNameOption || 'throw';
2625

2726
if (!moduleName) {
2827
if (handleMissingStyleName === 'throw') {

0 commit comments

Comments
 (0)