Webpack bundle support
rjaros opened this issue ยท 11 comments
Any chance of supporting Kotlin/JS features like bundling code with webpack?
Hello! Thanks for the feedback. Could you please add a little bit more description of that feature? It's a feature for Kotlin JS team or for this repository?
Thanks.
As far as I understand webpack integration is part of the new Kotlin/JS gradle plugin. I'm not quite sure how it relates to the Kotlin/JS compiler or to this project.
So, that is a good feature request. But Actually, I don't have plans to implement that feature but you could create an issue in Kotlin and maybe someone could help you.๐
I think I'll try to play with your project, because I think it could be done with not much effort. I'll make a PR if I succeed.
Thanks. I will be waiting for your PR ๐
I've opened a PR (#37). I've tested it successfully with my KVision framework (with a lot of npm dependencies from framework jar's). I would like to add Kotlin DCE support as well, but currently I have no idea if it's possible without Kotlin/JS gradle plugin.
Hello! Thanks for your PR. I need more time to have a look at it. ๐
(Currently, I'm working on creating a docker image and making configuration for starting the application as Amazon Lambda Function)
Also, probably that feature might be interesting for @gzoritchak and @calvellido. (sorry for disturbing)
Indeed! Thanks, let me know if I can lend a hand ๐
@rjaros could you please provide more about your usecases?
Also, answer a few questions
- How are you going to use it?
- Should it be configurable by external users?
- If so, how and which parts?
@gzoritchak @calvellido please feel free to share your thought too.
I would like to create an online playground app (kind of jsfiddle) for my framework (https://github.com/rjaros/kvision). I want to send a portion of Kotlin code from the user code editor to the service and get back a bundle.js
file which can be used with a simple index.html
file.
I think the current available configuration is fine (adding kotlinJsDependency
in build.gradle.kts
with external Kotlin/JS libraries). With my PR you can also configure webpack processing with webpack.config.*.js
and package.json
files. For my usecase I don't need additional configuration (e.g. with API parameters).