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

fix: match extensions config with js-reader #104

Merged
merged 3 commits into from
Aug 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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