Open lukaszkrzywizna opened 11 months ago
Hello @lukaszkrzywizna,
Right now I don't think there is a way for that. I think the Fable always put the import
at the top of the file.
A workaround for you could be to compile the F# files in a directory, have a script watch that directory and copy the files with the additional line in the final destination. It is a bit convoluted but should unlock you for now I think.
Description
Hi! I'm testing Fable + Next js solution and I tried to use client-side rendering. In order to do this, there must added
'use client'
directive to top of the file. I tried useemit
, however Fable puts it under imports. Is there any other mechanism providing this kind of a feature?Repro code
JS outcome:
Expected and actual results
Please provide the expected and actual results.
Related information
4.1.4
mac OS