Skip to content

Commit

Permalink
chore: add #content/context virtual file
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Nov 10, 2022
1 parent 6586262 commit 6e20570
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/module.ts
Expand Up @@ -358,6 +358,7 @@ export default defineNuxtModule<ModuleOptions>({
'export const getTransformers = (ext) => transformers.filter(p => ext.match(new RegExp(p.extensions.join("|"), "i")) && p.transform)',
'export default () => {}'
].join('\n')
nitroConfig.virtual['#content/context'] = `export default ${JSON.stringify(contentContext)}`
})

// Register composables
Expand Down

0 comments on commit 6e20570

Please sign in to comment.