-
Notifications
You must be signed in to change notification settings - Fork 750
add preprocessor to handle comment directives in sprocket 3.7.0+ , fixes #580 #582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
works like a charm! |
|
@seuros what do you think about adding a test case for this? I'm trying to see if I understand ... since we're defining a new mime type in Maybe you could add a new directory, // app/assets/javascripts/require_test/jsx_require_test.jsx
//= require ./jsx_require_child_1
//= require ./jsx_require_child_2
<div className="own-div" />Then, fetch the "compiled" asset and make sure it includes all required content: jsx_require_asset = Rails.application.assets["require_test/jsx_require_test"].to_s
# Make sure the asset has required content & own content:
assert_includes jsx_require_asset, jsx_require_child_1_content
assert_includes jsx_require_asset, jsx_require_child_w_content
assert_includes jsx_require_asset, own_content Or, another way to make sure that this works the way we expect in the future? |
|
@rmosolgo Sure thing. |
| React.createElement(\"div\", { className: \"le-javascript\" }); | ||
| javascript | ||
|
|
||
| test 'accepts harmony: true option' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be test "executes //= require directives" do ?
3c0e15b to
05453a2
Compare
|
@rmosolgo we can remove the work in progress in sprocket 4 now. |
|
🎉 thanks, i'll merge and ship 1.8.2 pronto. |
|
removed the sprockets 4 note in 5049473 |
|
🚢 1.8.2 🎊 thanks again! |
can you please check this PR @forelabs ?