redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

Allow specification for file extension to be used in import statement paths for files created by code generation

Open TheMartianMaker opened this issue 1 year ago • 8 comments

Feature Request:

  • Option to specify a file extension: Add a configuration option to specify the file extension (e.g., .js, .ts) that should be used in all import statements within the generated files.
  • Consistent import paths: Ensure that all import statements in the generated files use the specified file extension.

Use Case: For ESM projects, it is often required to include file extensions in import statements. Currently, developers have to manually update the import statements in the generated files to include the necessary file extensions. This feature would automate that process and ensure consistency across the codebase, which is crucial for maintaining proper module resolution in ESM environments.

TheMartianMaker avatar Oct 01 '24 14:10 TheMartianMaker