Fable core lib & bindings for native JS objects, browser and node APIs
sh
npm install --save fable-core
`
Usage
For general information on how to use Fable, please check the documentation.
fable-core uses ES5 syntax but it calls some ES2015 APIs (Symbol, Map, Set...),
so you will need a polyfill like core-js to use it
in environments that don't support these APIs.
The default distribution uses ES2015 modules in order to produce smaller sizes with bundlers
like Rollup (embedded with fable-compiler) or Webpack 2.
If you are not bundling your app, you'll probably need the UMD distribution instead (see below).
$3
`xml
`
$3
`fsharp
#r "node_modules/fable-core/Fable.Core.dll"
open Fable.Core
open Fable.Import
`
Usage without bundling
$3
If you're writing a Node application and don't use a module bundler, you just need
to instruct fable-compiler to use fable-core UMD distribution by passing --coreLib fable-core/umd
among the compiler options.
$3
If you target the browser and prefer to load JS dependencies asynchronously instead of bundling,
you can easily load fable-core files with require.js as follows:
`html
``