{"id":19385,"library":"bpmnlint-loader","title":"bpmnlint-loader","description":"Webpack loader that enables bundling bpmnlint configuration files (.bpmnlintrc) for use in browser builds. Requires bpmnlint as a peer dependency. Version 0.1.6 is the latest stable release, maintained by the bpmn-io organization. It seamlessly integrates with webpack to resolve and transpile config files, allowing linter instantiation in webpack bundles. Differentiators: simplifies client-side BPMN linting by leveraging webpack's module system.","status":"active","version":"0.1.6","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/nikku/bpmnlint-loader","tags":["javascript","bpmnlint","browser-pack","webpack-loader"],"install":[{"cmd":"npm install bpmnlint-loader","lang":"bash","label":"npm"},{"cmd":"yarn add bpmnlint-loader","lang":"bash","label":"yarn"},{"cmd":"pnpm add bpmnlint-loader","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency — the loader processes bpmnlint config files, which are consumed by bpmnlint's Linter class.","package":"bpmnlint","optional":false}],"imports":[{"note":"The package does not export any JavaScript APIs; it is used solely as a webpack loader.","wrong":"import bpmnlintLoader from 'bpmnlint-loader'; // Loader is not exported, only used in webpack config","symbol":"default (loader)","correct":"module.exports = { module: { rules: [ { test: /\\.bpmnlintrc$/, use: ['bpmnlint-loader'] } ] } }"}],"quickstart":{"code":"// webpack.config.js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.bpmnlintrc$/,\n        use: ['bpmnlint-loader']\n      }\n    ]\n  }\n};\n\n// Your source code\nimport { Linter } from 'bpmnlint';\nimport linterConfig from './.bpmnlintrc';\nconst linter = new Linter(linterConfig);","lang":"javascript","description":"Shows how to configure webpack to use bpmnlint-loader for .bpmnlintrc files and then import them for linter instantiation."},"warnings":[{"fix":"Validate your .bpmnlintrc content against bpmnlint schema.","message":"Loader only works with bpmnlint config files that are valid JSON or JS export. Ensure the .bpmnlintrc file is parsable by bpmnlint.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use bpmnlint's own validation or test configs separately.","message":"bpmnlint-loader does not validate the config; it only exports the parsed module. Errors in config will surface at runtime in bpmnlint.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Add the loader rule as shown in the quickstart.","cause":"Webpack does not recognize .bpmnlintrc files without the loader configured.","error":"Module parse failed: Unexpected token (1:0)\nYou may need an appropriate loader to handle this file type."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}