
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
fable-loader
Advanced tools
Webpack loader for Fable (F# to JS compiler)
npm install fable-loader fable-compiler @babel/core
Create a webpack-config.js like the following and run it using Webpack (e.g. npx webpack).
ATTENTION: In Fable 2.0 you had to call Webpack through the dotnet-fable CLI tool, starting from Fable 2.1 you call Webpack directly. For example, if you used the command dotnet fable webpack -- --config src/webpack.config.js, replace it with npx webpack --config src/webpack.config.js (you can also use yarn instead of npx). Note you don't need the -- separator anymore.
NOTE: The actual F# to JS compilation is done by fable-compiler. You can control the compiler version through this package.
See the Fable webpack-config-template for a more comprehensive example of a Webpack configuration for Fable projects.
var path = require("path");
module.exports = {
mode: "production",
entry: "./src/App.fsproj",
output: {
path: path.join(__dirname, "./public"),
filename: "bundle.js",
},
devServer: {
contentBase: "./public",
port: 8080,
},
module: {
rules: [{
test: /\.fs(x|proj)?$/,
use: "fable-loader"
}]
}
}
These are the options that can be passed to fable-loader:
babel-loader if you also have JS files in your project).FABLE_COMPILER and fable-loader will also define DEBUG in Webpack "development" mode.FAQs
Webpack loader for Fable compiler
The npm package fable-loader receives a total of 137 weekly downloads. As such, fable-loader popularity was classified as not popular.
We found that fable-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.