11ty / eleventy-plugin-vue

Use Vue.js templates and Vue.js single file components in Eleventy.
195 stars 11 forks source link

Access to `eleventy` global #47

Open zachleat opened 2 years ago

zachleat commented 2 years ago

Vue components do not have access to top level global data by default but we do have an exception for page. Add the same for eleventy

https://github.com/11ty/eleventy-plugin-vue/blob/0b64bdc7897aeb78a89da1eeecb9a1d5e58f2942/EleventyVue.js#L528

https://github.com/11ty/eleventy-plugin-vue/blob/8d594987111db6200ecd67216b6554d8a5380b14/EleventyVue.js#L528

zachleat commented 2 years ago

Surfaced by @xdesro here https://github.com/xdesro/soon/commit/27162dae4f497745551763bd8f1ef1d009c75343#commitcomment-77392069