houdini/app/javascript/packs/server_rendering.js
2020-06-23 16:30:01 -05:00

5 lines
300 B
JavaScript

// By default, this pack is loaded for server-side rendering.
// It must expose react_ujs as `ReactRailsUJS` and prepare a require context.
var componentRequireContext = require.context("components", true);
var ReactRailsUJS = require("react_ujs");
ReactRailsUJS.useContext(componentRequireContext);