File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments