davestewart / nuxt-content-assets

Enable locally-located assets in Nuxt Content
https://npmjs.com/package/nuxt-content-assets
115 stars 8 forks source link

Optimise AST parsing #15

Closed davestewart closed 1 year ago

davestewart commented 1 year ago

With the introduction of processing every AST node, it became apparent that invalid nodes were being considered for path rewriting.

This PR fixes that by skipping content of invalid containers, and skipping attributes of known non-asset nodes.

Closes #14