Registry / devops / bpmnlint-loader

bpmnlint-loader

JSON →
library0.1.6jsnpmunverified

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.

npm install bpmnlint-loader
INSTALL
IMPORT
SIG · BPMNLINT-LOADER
B
bpmnlint-loader
devopsjavascriptv0.1.6
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (loader)
module.exports = { module: { rules: [ { test: /\.bpmnlintrc$/, use: ['bpmnlint-loader'] } ] } }
import bpmnlintLoader from 'bpmnlint-loader'; // Loader is not exported, only used in webpack config
The package does not export any JavaScript APIs; it is used solely as a webpack loader.

Shows how to configure webpack to use bpmnlint-loader for .bpmnlintrc files and then import them for linter instantiation.

// webpack.config.js module.exports = { module: { rules: [ { test: /\.bpmnlintrc$/, use: ['bpmnlint-loader'] } ] } }; // Your source code import { Linter } from 'bpmnlint'; import linterConfig from './.bpmnlintrc'; const linter = new Linter(linterConfig);
Debug
Known issues
gotchaLoader only works with bpmnlint config files that are valid JSON or JS export. Ensure the .bpmnlintrc file is parsable by bpmnlint.
fix
Validate your .bpmnlintrc content against bpmnlint schema.
affects: >=0.1.0
gotchabpmnlint-loader does not validate the config; it only exports the parsed module. Errors in config will surface at runtime in bpmnlint.
fix
Use bpmnlint's own validation or test configs separately.
affects: >=0.1.0
Errors
Common errors & fixes
Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type.
Webpack does not recognize .bpmnlintrc files without the loader configured.
fix
Add the loader rule as shown in the quickstart.
Upgrade
Version history
0.1.6latest on npm
Audit
Dependencies
bpmnlintrequiredPeer dependency — the loader processes bpmnlint config files, which are consumed by bpmnlint's Linter class.
Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
bpmnlint-loader — npm install bpmnlint-loader · libregistry