Skip to content

HMR broken for expo/babel: adding new strings requires expo start --clear #71

Description

@k0d13

HMR doesn't pick up newly added strings when using the babel plugin with Expo. Adding a new string requires a full restart with expo start --clear, which is slow.

I've made attempts to fix this in packages/plugin-babel/src/index.ts#L66, but they haven't worked. IIRC the issue is addExternalDependency erroring due to some frozen array caused by the Expo preset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or not working as expectedpackage: babel-pluginRelated to babel-plugin-saykit

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions