Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

export ReactChartJs #169

Open
atav32/react-chartjs
#1

Description

@CodePlayer7

exports ReactChartJs rather than react-chartjs so we can simply call ReactChartJs rather than window['react-chartjs']

Activity

  1. changed the title [-]exports `ReactChartJs` rather than `react-chartjs` so we can simply call `ReactChartJs` rather than `window['react-chartjs']`[/-] [+]export `ReactChartJs`[/+] on Dec 28, 2016
  2. Jareechang commented on Jan 14, 2018

    @Jareechang
    Collaborator

    @CallMeXYZ, can you provide more details on this issue ?

  3. CodePlayer7 commented on Jan 16, 2018

    @CodePlayer7
    Author

    when importing this project by url or cdn, we need to call window['react-chartjs'] to get the reference. If exporting as ReactChartJs then we can simply call ReactChartJs

  4. morenoh149 commented on Mar 6, 2018

    @morenoh149

    This seems like a small enough improvement one could submit a PR for. Would one change this file? https://github.com/reactjs/react-chartjs/blob/master/index.js

  5. Jareechang commented on Mar 6, 2018

    @Jareechang
    Collaborator

    Hi Everyone, I believe this is specified in webpack and not in the source code itself. I am happy to take PRs.

    That being said, my only concern with this request is that it may break other people's projects using window['react-chartjs'] if we change it. Unfortunately, I am a little hesitant with this change.

    Please see:

    Helpful resource:

    Webpack >2.0 Doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions