Skip to content

Local development is a bit painful after switching to a built JS bundle on dev #181

@marcaaron

Description

@marcaaron

Problem:

On dev we are pointing to dist/web.development.js which is a bit more difficult to test code changes.

My current workaround is:

Run npm run build in /react-native-onyx

Copy web.developent.js to local project/node_modules/react-native-onyx/dist

Potential Solutions:

  • Stop using that build and just use the local files in node_modules directly

OR

  • Use webpack to watch changes and build the dist + link local node_modules to local react-native-onyx

I would prefer the former as having the minified builds in sources makes debugging things harder for no clear benefit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions