Registry / devops / hiyori

hiyori

JSON →
library0.2.1jsnpmunverified

A simple webpack bundler for minimal JavaScript bundling tasks. Current stable version is 4.3.0, released with support for Node 18+. Hiyori provides essential bundling features with minimal configuration, leveraging webpack under the hood but simplifying the setup. Ship TypeScript types for editor support. Suitable for small projects or quick prototyping where a full webpack configuration is overkill. Compared to tools like Parcel or esbuild, Hiyori focuses on being a straightforward wrapper around webpack, making it easy to bundle without deep webpack knowledge. Release cadence is irregular, primarily for bug fixes and updates.

npm install hiyori
INSTALL
IMPORT
SIG · HIYORI
H
hiyori
devopsjavascriptv0.2.1
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.

bundle
import { bundle } from 'hiyori'
const hiyori = require('hiyori')
Since v4, hiyori is ESM-only. Use named import.
HiyoriConfig
import type { HiyoriConfig } from 'hiyori'
const { HiyoriConfig } = require('hiyori')
TypeScript type export; compile-time only.
bundle
const { bundle } = await import('hiyori')
For dynamic imports in ESM.

Shows basic usage of the bundle function with entry and output options.

import { bundle } from 'hiyori'; const result = await bundle({ entry: './src/index.js', output: { path: './dist', filename: 'bundle.js' }, webpackConfig: {// optional overrides mode: 'production' } }); console.log(result); // { stats, warnings }
hiyori --version
Debug
Known issues
breakingv4 drops CommonJS support; requires Node >=18 and ESM.
fix
Use import syntax and ensure package.json has 'type': 'module' or use .mjs extension.
affects: >=4.0.0
deprecatedThe method hiyori.watch() is deprecated in v4.3.0.
fix
Use chokidar or webpack --watch directly.
affects: >=4.3.0
gotchaWebpack devServer options passed via hiyori are ignored; use standalone webpack-dev-server.
fix
Run webpack-cli serve separately or configure devServer in webpackConfig.
affects: >=3.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/hiyori/index.js from /path/to/app.js not supported.
Trying to require() hiyori v4 in a CommonJS context.
fix
Switch to import statement and set 'type': 'module' in package.json, or use dynamic import: const hiyori = await import('hiyori').
TypeError: (intermediate value).bundle is not a function
Incorrect default import: import hiyori from 'hiyori' where hiyori is an object with bundle property, but bundle is not exported as default.
fix
Use named import: import { bundle } from 'hiyori'.
Upgrade
Version history
0.2.1latest on npm
Audit
Dependencies
webpackrequiredCore bundler dependency
Agent activity
6 hits · last 30 days
node
6
Resources
hiyori — npm install hiyori · libregistry