This package, `lindera-wasm-ipadic-bundler`, provides a WebAssembly-based Japanese morphological analyzer specifically tailored for JavaScript bundler environments. It includes the widely used IPADIC dictionary directly embedded, enabling offline and efficient text processing. While the broader Lindera WASM ecosystem has moved to v3.x (e.g., `lindera-wasm-ipadic-web` and `lindera-wasm-ipadic-nodejs`), this particular 'bundler' target package is currently at v2.3.4. The Lindera project generally releases frequent minor updates and patches, with major versions introducing broader architectural changes, such as revised package structures. Its key differentiators include its WebAssembly foundation for performance, the convenience of bundled dictionaries, and dedicated packages optimized for different JavaScript environments (browser, Node.js, bundler).
npm install lindera-wasm-ipadic-bundlerVerified import paths — ran on the pinned version, not inferred.
This quickstart initializes the Lindera WASM module, configures a tokenizer with the embedded IPADIC dictionary, and demonstrates how to tokenize a Japanese sentence and access token details.
Monitor the Lindera GitHub repository and npm for the release of `lindera-wasm-ipadic-bundler` v3.x if you require the latest features or architecture. For now, be aware of the version difference when consulting documentation for other Lindera targets.
Always install and import the package specifically designed for your environment. For projects using bundlers like Webpack, Rollup, or Vite, ensure you are using `lindera-wasm-ipadic-bundler`.
Ensure that `await init()` is the very first interaction with the Lindera module in your application's entry point or wherever the module is first used. Wrap your usage in an `async` function.
Always use `async/await` or Promise `.then()` chains to ensure that all interactions with the Lindera WASM module occur only after it has been successfully initialized.
For bundler environments, use `import init, { TokenizerBuilder } from 'lindera-wasm-ipadic-bundler';`. If targeting Node.js, use `lindera-wasm-ipadic-nodejs` with `const { TokenizerBuilder } = require('lindera-wasm-ipadic-nodejs');`.Ensure `init` is imported as the default export: `import init from 'lindera-wasm-ipadic-bundler';`. Also, verify your bundler is correctly handling default WASM module exports.
Double-check the dictionary path. Ensure you have installed the correct package that bundles the desired dictionary, such as `lindera-wasm-ipadic-bundler` for IPADIC.
Verify your bundler (e.g., Webpack, Rollup) is configured to handle `.wasm` files. Ensure the output directory of your build includes the `.wasm` asset and that your web server is correctly serving it with the appropriate MIME type (`application/wasm`).
No dependency data recorded yet.