// jQuery is a peer dependency: the bundle uses the page's copy instead of shipping its own.
// The Vite build aliases every `import 'jquery'` (ours and the libraries') to this module.
const jQuery = window.jQuery;
if (!jQuery) {
throw new Error('Caelrik: load jQuery before caelrik.js.');
}
export default jQuery;
|