mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
15 lines
651 B
JavaScript
15 lines
651 B
JavaScript
'use strict';
|
|
|
|
/* weak */
|
|
// This file is auto-written and used by Gatsby to require
|
|
// files from your pages directory.
|
|
module.exports = function (callback) {
|
|
var context = require.context('./pages', true, /(coffee|cjsx|ts|tsx|jsx|js|md|rmd|mkdn?|mdwn|mdown|markdown|litcoffee|ipynb|html|json|yaml|toml)$/); // eslint-disable-line
|
|
if (module.hot) {
|
|
module.hot.accept(context.id, function () {
|
|
context = require.context('./pages', true, /(coffee|cjsx|ts|tsx|jsx|js|md|rmd|mkdn?|mdwn|mdown|markdown|litcoffee|ipynb|html|json|yaml|toml)$/); // eslint-disable-line
|
|
return callback(context);
|
|
});
|
|
}
|
|
return callback(context);
|
|
}; |