Skip to content

Commit 6bf3955

Browse files
committed
ensure options object is initialized
1 parent 2fd62bf commit 6bf3955

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module.exports = function (browserify, options) {
4646

4747
// custom scoped name generation
4848
if (name === 'postcss-modules-scope') {
49+
options[name] = options[name] || {};
4950
options[name].generateScopedName = createScopedNameFunc(plugin);
5051
}
5152

0 commit comments

Comments
 (0)