Skip to content

Commit

Permalink
fix: 🐛 exclude only js files (keep *.less and others)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed Nov 18, 2024
1 parent 1d30cc6 commit efa24c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export function excludeVendorsFromSourceMapPlugin() {
return {
name: 'excludeVendorsFromSourceMapPlugin',
setup(build) {
build.onLoad({ filter: /node_modules/ }, async (args) => {
build.onLoad({ filter: /\/node_modules\/.*\.js?$/ }, async (args) => {
const contents = await fs.readFile(args.path, { encoding: 'utf8' });

return {
Expand Down

0 comments on commit efa24c4

Please sign in to comment.