-
Notifications
You must be signed in to change notification settings - Fork 752
Closed
Labels
Description
I don't have any bugs but I caught a problem when we decided to move our app to module flow we have seen a problem with require especially in the server_render.js file. We are using mixed js and ts
var componentRequireContext = require.context('components', true);
var ReactRailsUJS = require('react_ujs');
ReactRailsUJS.useContext(componentRequireContext);
Is it possible to move this code to ES module approach? Who is faced with this issue?