Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
fix: match extensions config with js-reader (#104)
Browse files Browse the repository at this point in the history
* fix: match extensions config with js-reader

* Update writer.js

* Update writer.js
  • Loading branch information
stipsan committed Aug 8, 2019
1 parent 2f91d78 commit 11c2335
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ module.exports = class Writer {
`Expected optional 'bundle' argument to ${name} constructor to be a boolean. Instead got '${typeof bundle}'`
);

const opts = { ...options, dedupe: false };
const opts = {
extensions: ['.js', '.es', '.es6', '.jsx', '.tsx', '.ts', '.json'],
...options,
dedupe: false,
};
const browserify = new Browserify(files, opts);
if (bundle) return browserify;
return browserify
Expand Down

0 comments on commit 11c2335

Please sign in to comment.