-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation about wiring up a local Fable compiler.
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
index: 7 | ||
categoryindex: 1 | ||
category: docs | ||
--- | ||
|
||
# Using a Local Fable Compiler | ||
|
||
It is relatively easy to set up a local Fable compiler for troubleshooting the plugin. | ||
|
||
## Checkout the Fable Repository | ||
|
||
Clone the [Fable repository](https://github.com/fable-compiler/Fable) as a sibling to this repository. | ||
|
||
## Using Local Fable Binaries | ||
|
||
Set `<UseLocalFableCompiler>true</UseLocalFableCompiler>` in [Directory.Build.props](https://github.com/nojaf/vite-plugin-fable/blob/main/Directory.Build.props). After running `bun install`, the daemon will be built using the local binary. | ||
|
||
## Use Local fable-library-js | ||
|
||
Sometimes, there could be changes in `@fable-org/fable-library-js` that you need to reflect in the daemon's output. | ||
|
||
Build the fable-library using `./build.sh fable-library --javascript` (from the Fable repository root). | ||
|
||
Update the `package.json` (in the root) to: | ||
|
||
```json | ||
{ | ||
"dependencies": { | ||
"@fable-org/fable-library-js": "../Fable/temp/fable-library-js" | ||
} | ||
} | ||
``` | ||
|
||
Install again using `bun install`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
index: 7 | ||
index: 8 | ||
categoryindex: 1 | ||
category: docs | ||
--- | ||
|