@engraft/vendor-voyager
v0.0.8
Published
Vendored-in Voyager for @engraft/tool-voyager
Downloads
3
Readme
@engraft/vendor-voyager
This package vendors in a compiled, slightly patched version of Voyager. It is used in @engraft/tool-voyager.
(Why? The bundled version of Voyager available on npm does not expose the bits we want. We can't access unbundled bits because that exposes unbuilt pieces like Sass, and that's a mess. Hence, we need to patch. Compiling a patched version requires an older version of Node (16), so it's easier to just build it separately and then copy it in here.)
Note: For this package to compile with Vite, we need to add it to the optimizeDeps
list in the monorepo's root vite.config.ts
:
optimizeDeps: {
include: [
"@engraft/vendor-voyager",
]
}
Also note that Voyager's styles have been moved to @engraft/tool-voyager
because it was too much trouble to keep them here (ES vs CJS issues).