Skip to content

Alternative to require() ? #90

@remyyounes

Description

@remyyounes

According to these discussions #33 #64, "supporting additional gems like maccman/sprockets-commonjs is outside the scope [...]."
So, I have been trying to look for an alternative way to load copyProperties other than using require with commonJS.
This is how i would normally get it:
var copyProperties = require('react/lib/copyProperties');

Of course, I could just provide my own copyProperties or just not use it at all. But it would be nice to have those utilities.
I've been searching but haven't found a workaround. What would you suggest ?

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