typescript icon indicating copy to clipboard operation
typescript copied to clipboard

Add ability to break modules into subfiles

Open ghost opened this issue 5 years ago • 2 comments

Is it possible to break modules in store/

  • moduleName.ts into store/ |-moduleName/ ||--[index.ts, mutations.ts, getters.ts, mutation-types.ts, etc]

A problem is, when You use vanilla style, by default nuxt recognises each file in submodule directory as submodule, not a helper file. And does not work as expected.

So, Is it possible to break single vuex module file into directory with the same name and index + support files as in the screenshot below?

Снимок экрана 2020-08-18 в 12 22 25

ghost avatar Aug 18 '20 09:08 ghost

@ysizarie Could you maybe confirm it work when using JavaScript over TypeScript ?

As stated here : https://nuxtjs.org/guide/vuex-store#module-files, it should work

Please provide a repository with the unexpected behavior so I can take a look :)

kevinmarrec avatar Aug 26 '20 08:08 kevinmarrec

@ysizarie Any updates ?

kevinmarrec avatar Sep 02 '20 07:09 kevinmarrec