-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
[6.x] Webpack: Support configs written in non-JavaScript #697
Comments
I think right now the workaround is to write a shim script that calls I think this is a good feature for someone to contribute to Forge. It looks like based off of your link, webpack uses I believe this sort of logic would go here: |
Yes, something like that - The thing I'd wanted to avoid is having to do
I was meaning to stick at the end that I'd be interested in having a whack at it if I manage to find some free time, if it sounded like something that could be viable & someone pointed me in the right direction :) Thanks for the better title - I'm got a bit going on right now, that's got me frazzled so sorry if some of my sentences don't make a lot of sense 😂 |
#905 suggests adding support for returning a function, then at least you could run the parser yourself and return the json. |
electron forge does not support typescript webpack configurations even though webpack does. we compile the typescript configurations to javascript as a workaround. see electronforge discussion here: electron/forge#697
closed in #3012 |
When bisecting from the command line, it's possible that the last known good version is an unsupported release. Thus, it's necessary to be able to re-enable unsupported releases from the command line.
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 withwebpack.config.ts
providedts-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 thoughts-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.The text was updated successfully, but these errors were encountered: