A Vue expression compiler for server-side rendering (SSR) that pre-compiles Vue template expressions into executable JavaScript functions. Version 2.2.4 supports modern Vue 3 syntax and provides faster runtime evaluation compared to traditional string-based evaluation. It handles interpolation, filters, and complex expressions with proper scoping. The package is lightweight, has no runtime dependencies, and is designed specifically for SSR optimization in Vue applications. It is actively maintained with monthly releases.
npm install atom-expression-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates compiling a simple Vue template expression into a render function with compact output.
Use ES module imports (import syntax) instead of require(). If using CommonJS, stick with version 1.x.
Remove 'sourceMap' option from compile call; it is now always false.
Wrap compiled code with proper scope passing _ctx, e.g., using Function.prototype.call.
Access compiled code via .code property instead of directly using the returned value.
Run 'npm install atom-expression-compiler' and ensure import path is correct.
Use import statement or downgrade to version 1.x.
Use named import: import { compileExpression } from 'atom-expression-compiler'.Enable ESM in package.json ("type": "module") or use bundler.No dependency data recorded yet.