Skip to content

Commit 0f2d95f

Browse files
author
Michael Vurchio
committed
Set correct export and correct path check
1 parent 2057e45 commit 0f2d95f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ const markup = async ({ content, filename }) => {
4040

4141
if (pluginOptions.includePaths.length) {
4242
for (const includePath of pluginOptions.includePaths) {
43-
if (filename.indexOf(path.resolve(__dirname, includePath)) === -1) {
43+
if (filename.indexOf(path.resolve(includePath)) === -1) {
4444
return { code };
4545
}
4646
}
4747
}
4848

4949
if (!regex.module.test(content)) {
5050
return { code };
51-
}
51+
}
5252

5353
const styles = content.match(regex.style);
5454
let parsedStyles = null;
@@ -85,7 +85,7 @@ const markup = async ({ content, filename }) => {
8585
}
8686
};
8787

88-
export default (options) => {
88+
module.exports = (options) => {
8989
for (const option in options) {
9090
pluginOptions[option] = options[option];
9191
}

0 commit comments

Comments
 (0)