diff --git a/index.js b/index.js index 0189ca1..0f3f4b3 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const { resolve } = require('path'); const { parse } = require('node-html-parser'); function viteHTMLIncludes(options = {}) { - const { componentsPath = '/components/' } = options; + const componentsPath = options.componentsDir || '/components/'; let config; function evaluateWithLocals(code, locals) {