Skip to content

Commit abf9231

Browse files
fix bug in plugin require
1 parent dccbffd commit abf9231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default function transformCssModules({ types: t }) {
107107
currentConfig[key][index] = require(plugin);
108108
} catch (e) {
109109
try {
110-
currentConfig[key][index] = require(resolve(process.cwd(), path));
110+
currentConfig[key][index] = require(resolve(process.cwd(), plugin));
111111
} catch (_e) {
112112
// do nothing
113113
}

0 commit comments

Comments
 (0)