Skip to content

Commit

Permalink
chore: add .cjs .mjs to known extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Oct 7, 2023
1 parent 82091bb commit 65f1194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const crypto = require('crypto');
const fs = require('../file-system');
const tmpDir = require('os').tmpdir();

exports.knownExtensions = ['.js', '.json', '.css', '.svg', '.html'];
exports.knownExtensions = ['.js', '.cjs', '.mjs', '.json', '.css', '.svg', '.html'];

exports.couldMissGulpPreprocess = function(id) {
const ext = path.extname(id).toLowerCase();
Expand Down

0 comments on commit 65f1194

Please sign in to comment.