Main entry point support
See original GitHub issueI notice in your example webpack config you have { entry: './src/entry' }
, which is a JS file that require
s any PureScript modules that you need.
In my case, I just want to call Main.main, so mine looks like this: require('./Main.purs').main();
It seems like it would be cleaner if you could just use { entry: './src/Main.purs' }
directly.
I believe the browserify/psc-bundle toolchain does something like this already. Would you consider adding it to purs-loader? I’m fairly new to PureScript, but happy to do the lifting with a bit of direction. (Though maybe #31 would make this irrelevant anyway.)
Issue Analytics
- State:
- Created 8 years ago
- Reactions:5
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Strategy: Finding Entry Point At Support And Resistance Level
The Best Crypto Trading Robot: Make Money On Complete Autopilot https://royalqcryptotradingbot.com ..... Over the years, we have built up ...
Read more >Entry point - Wikipedia
For some operating systems and programming languages, the entry point is in a runtime library, a set of support functions for the language....
Read more >Investment Entry Point Definition and How to Optimize
For instance, the chart below has a trading range between $22 and 27.5. A high probability entry point for a long trade would...
Read more >Entry Point - Elements Docs
Support for this new Aspect is planned, but not implemented yet. (SE-0281 @main: Type-Based Program Entry Points, bugs://84619). Projects without Entry Point.
Read more >Entry Point Wiki - Fandom
Entry Point Wiki is a community site that anyone can contribute to. Discover, share and add your knowledge! ... View full main page ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ethul Hm, actually, I thought about it some more. Webpack supports multiple entry points, so you would really want to be able to specify a different
main
per entry point. That complicates things a lot.If you only have a single entry point, you can currently use the following to specify the
main
:@ethul With
psc-bundle
, it is not necessary to useunsafePerformEff
, instead you simply return anEff
frommain
, which is idiomatic in PureScript.I think
purs-loader
should support amain
option, similar topsc-bundle