mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 05:21:38 +08:00
15 lines
377 B
JavaScript
15 lines
377 B
JavaScript
/**
|
|
* The file enables `@/store/index.js` to import all vuex modules
|
|
* in a one-shot manner. There should not be any reason to edit this file.
|
|
*/
|
|
|
|
const files = require.context('.', false, /\.js$/)
|
|
const modules = {}
|
|
|
|
files.keys().forEach(key => {
|
|
if (key === './index.js') return
|
|
modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default
|
|
})
|
|
|
|
export default modules
|