Skip to content

Commit

Permalink
Add .mjs to mixins path
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Apr 24, 2024
1 parent c0236d7 commit 87874e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let sugarss = require('sugarss')
let vars = require('postcss-simple-vars')
let glob = require('fast-glob')

let MIXINS_GLOB = '*.{js,cjs,json,css,sss,pcss}'
let MIXINS_GLOB = '*.{js,cjs,mjs,json,css,sss,pcss}'
let IS_WIN = platform().includes('win32')

function addMixin(helpers, mixins, rule, file) {
Expand Down
4 changes: 2 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ test('loads mixins from dir', async () => {
},
{
dir: join(__dirname, 'mixins'),
glob: '*.{js,cjs,json,css,sss,pcss}',
glob: '*.{js,cjs,mjs,json,css,sss,pcss}',
parent: '',
type: 'dir-dependency'
}
Expand Down Expand Up @@ -299,7 +299,7 @@ test('loads mixins from dir with parent options', async () => {
},
{
dir: join(__dirname, 'mixins'),
glob: '*.{js,cjs,json,css,sss,pcss}',
glob: '*.{js,cjs,mjs,json,css,sss,pcss}',
parent: '',
type: 'dir-dependency'
}
Expand Down

0 comments on commit 87874e1

Please sign in to comment.