mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-11 18:22:21 +02:00
12 lines
517 B
JavaScript
12 lines
517 B
JavaScript
|
"use strict";
|
||
|
// This creates a version of `require()` in the context of the current
|
||
|
// directory, so we iterate over its content, which is a map statically built by
|
||
|
// Webpack.
|
||
|
// Second argument says it's recursive, third makes sure we only load templates.
|
||
|
const requireViews = require.context(".", false, /\.vue$/);
|
||
|
export default requireViews.keys().reduce((acc, path) => {
|
||
|
acc["message-" + path.substring(2, path.length - 4)] = requireViews(path).default;
|
||
|
return acc;
|
||
|
}, {});
|
||
|
//# sourceMappingURL=index.js.map
|