Skip to content

[BUG] Wrapping the config with TimeAnalyticsPlugin leads to Fast Refresh not working #10

@blazejkustra

Description

@blazejkustra

Describe the bug
Wrapping TimeAnalyticsPlugin breaks Fast Refresh for some reason, any change that you make leads to full page reload. Without this plugin Fast Refresh works great (check the videos below)

To Reproduce
It's a public repo, here is a PR that you can try.
⚠️ First try without any changes, fast refresh on web should work correctly, but when you remove return config line from webpack.dev.ts each time a change is made there is a full page reload.

        return config;
        return TimeAnalyticsPlugin.wrap(config);

You have to run npm install and npm run web to test it.

Expected behavior

without-plugin.mov

Actual behavior

with-plugin.mov

Additional context
You added this plugin to Expensify/App @ShuiRuTian here

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions