Skip to content

[6.x] Webpack: Support configs written in non-JavaScript #697

@G-Rath

Description

@G-Rath
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:

Webpack supports using config files written in other languages (such as typescript & coffeescript) without the need to compile those files into JS, provided the right tools are installed.

For example, doing webpack will work with webpack.config.ts provided ts-node is installed.

These details are documented (here)[https://webpack.js.org/configuration/configuration-languages/].

It would be great if @eletron-forge/webpack supported this.

Currently, if I have a .ts webpack config, it doesn't get run though ts-node.

An acceptable compromise for me at this point would be to have some of pre-use hook that I could trigger compiling from; for example, being able to pass an npm command like npm run build-configs to compile my configs before they're used.

Metadata

Metadata

Assignees

Labels

enhancementhacktoberfestGood first issue to work on - particularly for Hacktoberfesthelp wantedplugin/webpackIssues or pull requests related to first-party webpack plugins/templates

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions