Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to break modules into subfiles #432

Open
ghost opened this issue Aug 18, 2020 · 2 comments
Open

Add ability to break modules into subfiles #432

ghost opened this issue Aug 18, 2020 · 2 comments
Labels
feature request Feature request

Comments

@ghost
Copy link

ghost commented Aug 18, 2020

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 ghost added the feature request Feature request label Aug 18, 2020
@kevinmarrec
Copy link
Contributor

kevinmarrec commented Aug 26, 2020

@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
Copy link
Contributor

@ysizarie Any updates ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

1 participant