Skip to content

Commit bdc8b2f

Browse files
committed
fix: require is undefined, close #205
1 parent 76ec5c0 commit bdc8b2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function circularReference(maps) {
1313
}, maps);
1414
}
1515

16-
export default (options = {}) => {
16+
module.exports = (options = {}) => {
1717
options = {
1818
atRules: [...new Set(['for', 'if', 'else', 'each', 'mixin', 'custom-media', ...options.atRules || ''])],
1919
variables: {...options.variables}
@@ -42,4 +42,4 @@ export default (options = {}) => {
4242
};
4343
};
4444

45-
export const postcss = true;
45+
module.exports.postcss = true;

0 commit comments

Comments
 (0)