{"library":"rollup-plugin-fable","title":"rollup-plugin-fable","description":"Rollup plugin for Fable, the F# to JavaScript compiler. Current version 2.0.0 enables bundling F# projects with Rollup by invoking the Fable compiler during the build process. Maintained as part of the Fable ecosystem, it integrates with Babel for transpilation and supports options like custom compiler directives, typed arrays, and Fable plugins. Key differentiators: seamless integration with F# tooling, supports Fable's compile-time metaprogramming, and requires careful path resolution to avoid conflicts with NuGet cache.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-fable"],"cli":null},"imports":["import fable from 'rollup-plugin-fable'","import fable from 'rollup-plugin-fable'","const fable = (await import('rollup-plugin-fable')).default"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import path from 'path';\nimport fableUtils from 'fable-utils';\nimport fable from 'rollup-plugin-fable';\nimport nodeResolve from 'rollup-plugin-node-resolve';\n\nfunction resolve(relativePath) {\n  return path.join(__dirname, relativePath);\n}\n\nvar babelOptions = fableUtils.resolveBabelOptions({\n  'presets': [\n    ['es2015', {'modules': false}]\n  ]\n});\n\nexport default {\n  entry: resolve('./my-app.fsproj'),\n  dest: resolve('./dist/bundle.js'),\n  plugins: [\n    fable({ babel: babelOptions }),\n    nodeResolve({\n      customResolveOptions: {\n        moduleDirectory: resolve('./node_modules')\n      }\n    })\n  ],\n  format: 'cjs'\n};","lang":"javascript","description":"Configures Rollup to bundle an F# project using Fable, with Babel for transpilation and node-resolve for module resolution.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}