Webpack loader for the Fable compiler, enabling F# to JavaScript compilation within a Webpack build pipeline. Current stable version is 2.1.9 (Fable 2.x). The loader is maintained by the Fable team and works with fable-compiler 2.x, @babel/core 7.x, and Webpack 4+. Unlike direct CLI usage, this loader integrates F# compilation into Webpack's module resolution and asset pipeline, allowing hot module replacement and bundling alongside other JS/TS assets. Key differentiator: seamless integration with Webpack ecosystem for F# developers.
npm install fable-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Webpack configuration using fable-loader to compile F# project entry into a single bundle.
Replace 'dotnet fable webpack -- --config webpack.config.js' with 'npx webpack --config webpack.config.js'.
Ensure all peer dependencies are installed at compatible versions.
Change 'loader: "fable-loader"' to 'use: "fable-loader"' in webpack config.
Check options object passed to fable-loader; unknown keys may be silently ignored.
Run 'npm install --save-dev fable-loader'.
Run 'npm install --save-dev @babel/core'.
Ensure webpack >=4.23.0 is installed.