Skip to content
Closed
Changes from 1 commit
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
Next Next commit
Flight-webpack: Include ts\tsx\jsx modules as well
  • Loading branch information
samcooke98 committed Dec 28, 2020
commit c3f621dc646e6c21eec6231751f1ca3c0c8535c1
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default class ReactFlightWebpackPlugin {
// TODO: Hook into deps instead of the target module.
// That way we know by the type of dep whether to include.
// It also resolves conflicts when the same module is in multiple chunks.
if (!/\.client\.js$/.test(mod.resource)) {
if (!/\.client\.(js|jsx|ts|tsx)$/.test(mod.resource)) {
return;
}
const moduleExports = {};
Expand Down