{"id":18420,"library":"hiyori","title":"Hiyori","description":"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.","status":"active","version":"4.3.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript"],"install":[{"cmd":"npm install hiyori","lang":"bash","label":"npm"},{"cmd":"yarn add hiyori","lang":"bash","label":"yarn"},{"cmd":"pnpm add hiyori","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core bundler dependency","package":"webpack","optional":false}],"imports":[{"note":"Since v4, hiyori is ESM-only. Use named import.","wrong":"const hiyori = require('hiyori')","symbol":"bundle","correct":"import { bundle } from 'hiyori'"},{"note":"TypeScript type export; compile-time only.","wrong":"const { HiyoriConfig } = require('hiyori')","symbol":"HiyoriConfig","correct":"import type { HiyoriConfig } from 'hiyori'"},{"note":"For dynamic imports in ESM.","wrong":"","symbol":"bundle","correct":"const { bundle } = await import('hiyori')"}],"quickstart":{"code":"import { bundle } from 'hiyori';\n\nconst result = await bundle({\n  entry: './src/index.js',\n  output: { path: './dist', filename: 'bundle.js' },\n  webpackConfig: {// optional overrides\n    mode: 'production'\n  }\n});\n\nconsole.log(result); // { stats, warnings }","lang":"typescript","description":"Shows basic usage of the bundle function with entry and output options."},"warnings":[{"fix":"Use import syntax and ensure package.json has 'type': 'module' or use .mjs extension.","message":"v4 drops CommonJS support; requires Node >=18 and ESM.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Use chokidar or webpack --watch directly.","message":"The method hiyori.watch() is deprecated in v4.3.0.","severity":"deprecated","affected_versions":">=4.3.0"},{"fix":"Run webpack-cli serve separately or configure devServer in webpackConfig.","message":"Webpack devServer options passed via hiyori are ignored; use standalone webpack-dev-server.","severity":"gotcha","affected_versions":">=3.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Switch to import statement and set 'type': 'module' in package.json, or use dynamic import: const hiyori = await import('hiyori').","cause":"Trying to require() hiyori v4 in a CommonJS context.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/hiyori/index.js from /path/to/app.js not supported."},{"fix":"Use named import: import { bundle } from 'hiyori'.","cause":"Incorrect default import: import hiyori from 'hiyori' where hiyori is an object with bundle property, but bundle is not exported as default.","error":"TypeError: (intermediate value).bundle is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}