tuist/projects/cloud/app/frontend/packs/server_rendering.js

10 lines
324 B
JavaScript

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