Skip to content

v.1.8.1 assets precompile //=require will not be transformed #580

@forelabs

Description

@forelabs

Help us help you! Please choose one:

  • My app crashes with react-rails, so I've included the stack trace and the exact steps which make it crash.
  • My app doesn't crash, but I'm getting unexpected behavior. So, I've described the unexpected behavior and suggested a new behavior.
  • I'm trying to use react-rails with another library, but I'm having trouble. I've described my JavaScript management setup (eg, Sprockets, Webpack...), how I'm trying to use this other library, and why it's not working.
  • I have another issue to discuss.

Hi. We have troubles with the newest release v1.8.1
In our .jsx files we do //= require ./xyz which gets transformed into the code from the required file in development, but not when I ran rake assets:precompile.

We are using sprockets 3.7.0 and I am quite sure that the wrong behaviour is a result of following change:
v1.8.0...v1.8.1#diff-ffad3c61836f28360e5c21dce8362d9fL104 (99eb4e1)

I've locked react-rails to v1.8.0 which resolves the problem, but I don't want to stack to this release.

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