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

Comments

Projects
None yet
2 participants
@TheLarkInn
Copy link

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

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Member

granicz commented Sep 21, 2017

This now depends on #789 and #790.

@granicz

This comment has been minimized.

Copy link
Member

granicz commented Oct 10, 2017

And implementation is tracked on #811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment