Skip to content
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

Potential AoT webpack loader integration #786

Open
TheLarkInn opened this issue Sep 20, 2017 · 3 comments
Open

Potential AoT webpack loader integration #786

TheLarkInn opened this issue Sep 20, 2017 · 3 comments

Comments

@TheLarkInn
Copy link

@TheLarkInn TheLarkInn commented Sep 20, 2017

Hi there, I'm Sean from the webpack team!!!

I've had a few requests down the pipeline on whether or not it would be possible to allow a user to do:

index.js

import Foo from "./foo.fs";

const foo = new Foo();

Which would be powered by a websharper-loader (for webpack). The goal is that users could essentially import a .fs file into any JS file and use it like any other JavaScript module. DISCLAIMER: I have 0 C#, F# experience, so you may have to dumb down a few things or explain how the JS ties together etc with the rest of the C#+F# files.

Thanks, and look forward to collaborating!

@granicz
Copy link
Member

@granicz granicz commented Sep 20, 2017

Hi Sean, thanks for reaching out! Creating a websharper-loader for webpack would be a terrific idea, and in fact it's pretty straightforward to do, it's just a matter of exposing this single file mode of operation from the API as a command line option. Let me get together with some of our team tomorrow to see who can help with implementing this, and in the meantime if anyone from the community would like to step in to assist it would be more than welcome!

@granicz
Copy link
Member

@granicz granicz commented Sep 21, 2017

This now depends on #789 and #790.

@granicz
Copy link
Member

@granicz granicz commented Oct 10, 2017

And implementation is tracked on #811

@Tarmil Tarmil added this to v5.0 in Releases Apr 17, 2018
@granicz granicz moved this from v5.0 to To be evaluated in Releases Oct 17, 2019
@granicz granicz moved this from To be evaluated to v5.0 in Releases Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Releases
TypeScript+WebPack+others
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants