{"library":"rollup-plugin-bucklescript","title":"rollup-plugin-bucklescript","description":"A Rollup plugin that integrates with the BuckleScript compiler to bundle ReasonML and OCaml code into JavaScript. Version 0.7.0 is the latest stable release (last updated in 2020). It works by running bsb during the build, consuming compiled ES6 modules. Key differentiators include minimal configuration (reads bsconfig.json), support for in-source builds, and options to control warnings and standard library inclusion. Compared to webpack's bs-loader, it fits the Rollup ecosystem better for library authors. Maintenance is intermittent; the repo has low activity.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-bucklescript"],"cli":null},"imports":["import bucklescript from 'rollup-plugin-bucklescript'","import bucklescript from 'rollup-plugin-bucklescript'","import bucklescript from 'rollup-plugin-bucklescript'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport bucklescript from 'rollup-plugin-bucklescript';\n\nexport default {\n  input: 'src/main.re',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'cjs'\n  },\n  plugins: [\n    bucklescript()\n  ]\n};","lang":"javascript","description":"Shows basic Rollup configuration to compile a ReasonML file (main.re) using the plugin.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}