The `lindera-wasm-ko-dic-bundler` package provides the Lindera morphological analysis library compiled to WebAssembly, specifically bundled with the Korean dictionary (ko-dic) and optimized for use within modern JavaScript bundler environments (e.g., webpack, Rollup, Vite). Lindera is a high-performance, multi-dictionary capable morphological analyzer originally written in Rust. The current stable version for the v3 series is `3.0.5` across the Lindera WASM ecosystem, with `2.3.4` being the last significant release in the v2 series for this specific bundler package. The project exhibits an active release cadence, frequently publishing patch and minor updates. Its primary differentiators include its WebAssembly compilation for efficient client-side or server-side (via bundler) execution, the convenience of pre-packaged dictionaries for various languages like Korean, and the inherent performance advantages offered by a Rust-native implementation. It maintains a well-structured package ecosystem with distinct targets for web browsers, Node.js, and bundlers, each offering different pre-loaded dictionary configurations.
npm install lindera-wasm-ko-dic-bundlerVerified import paths — ran on the pinned version, not inferred.
Initializes the WebAssembly module and demonstrates basic Korean morphological analysis using the embedded `ko-dic` dictionary with a bundler-compatible import.
Review the new package names and target environments (e.g., `lindera-wasm-ko-dic-web` for browsers, `lindera-wasm-ko-dic-nodejs` for Node.js, `lindera-wasm-ko-dic-bundler` for bundlers) and update your `package.json` and import paths accordingly. For Node.js-only applications not requiring bundling, consider the `lindera-nodejs` crate for potentially better performance via NAPI-RS bindings.
Ensure your project uses `import` statements for `lindera-wasm-ko-dic-bundler`. If you are in a CommonJS environment that needs to consume ESM, you might need dynamic `import()` or specific bundler configurations (e.g., setting `"type": "module"` in your `package.json`).
Always `await __wbg_init();` at the very start of your application or before the first usage of `TokenizerBuilder` or other Lindera WASM module exports. Wrap your initialization and usage logic in an `async` function.
Select the appropriate `lindera-wasm-*` package that specifically bundles the dictionary for the language you intend to analyze. For Korean text analysis, ensure you are using a package like `lindera-wasm-ko-dic-bundler` and call `builder.setDictionary("embedded://ko-dic");`.Ensure you `await __wbg_init();` once at the beginning of your application before attempting to use any other exports like `TokenizerBuilder`. Verify the import path `lindera-wasm-ko-dic-bundler` is correctly specified.
For the `lindera-wasm-ko-dic-bundler` package, the correct identifier is `"embedded://ko-dic"`. Double-check the README or package documentation for the exact dictionary string if using a different Lindera WASM package.
Ensure you are using `import { TokenizerBuilder } from 'lindera-wasm-ko-dic-bundler';` syntax. If in a Node.js project, ensure your `package.json` includes `"type": "module"` for ESM compatibility, or use dynamic `import()` for CJS environments.No dependency data recorded yet.