mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
12 lines
296 B
JavaScript
12 lines
296 B
JavaScript
exports.loadContext = function(callback) {
|
|
var context;
|
|
context = require.context('./pages', true);
|
|
if (module.hot) {
|
|
module.hot.accept(context.id, function() {
|
|
context = require.context('./pages', true);
|
|
return callback(context);
|
|
});
|
|
}
|
|
return callback(context);
|
|
};
|