Require Extension Hooks Vue

JSON →
library 3.0.0 ·javascript maintenance
verified May 27, 2026

`require-extension-hooks-vue` is a Node.js package designed to enable the server-side parsing and compilation of Vue 2.x single-file components (SFCs). It works in conjunction with `require-extension-hooks` to integrate into Node's module `require` mechanism, allowing developers to import `.vue` files directly within Node.js environments. This functionality is particularly useful for server-side rendering, browserless unit testing, or other Node.js-based build processes that need to consume Vue SFCs. The current stable version is 3.0.0. The package automatically converts `<template>` blocks into Vue render functions, supports external template and script sources, and handles various `lang` attributes (e.g., `pug`, `ts`) by dynamically looking for additional `require-extension-hooks` or compatible external libraries. It also provides a flexible mechanism for processing custom blocks within SFCs. The release cadence appears infrequent, with significant internal compiler changes typically occurring between major versions.

total hits 17
actors 6 distinct systems
last hit 21h ago human
GPTBot
5
MetaBot
4
Script
1
ClaudeBot
1
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · PW · 🇬🇧 United Kingdom