Skip to content

Asset pipeline require not working with coffeescript [v1.4.2 and above] #415

Closed
@tmikoss

Description

@tmikoss

Calling #= require ./other_file, in a .js.jsx.coffee file no longer seems to work in version 1.4.2 and above. The file is not evaluated - tested by putting a console.log at the top of the required file.

Changing the extension to .js.jsx and calling //= require ./other_file works as expected.

Last version of react-rails where it worked as expected was 1.3.3.

Setting config.react.jsx_transformer_class = React::JSX::JSXTransformer does not fix the issue.

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