mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 03:30:25 +00:00
then be exposed to the browser as a global. This was decided between @yangit and me, as we found RequireJS to be too painful to setup for our use case. This Browserify + Global works just fine for us, and it fits perfectly as require() statements in our node.js backend
8 lines
No EOL
199 B
JavaScript
8 lines
No EOL
199 B
JavaScript
exports.algos = require('./script/algos')
|
|
exports.items = require('./script/items')
|
|
exports.helpers = require('./script/helpers')
|
|
|
|
try {
|
|
window;
|
|
window.habitrpgShared = exports;
|
|
} catch(e) {} |