Skip to content

Commit

Permalink
🐛 (plugin) fix global components plugin; does not support .ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Jun 22, 2021
1 parent 6f8c3f7 commit 030206c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,14 @@ export default <Module>async function docusModule() {
await fs.writeFile(join(dir, `db-${dbHash}.json`), db.serialize(), 'utf-8')
})
}

// Add global components plugin
addPlugin({
src: resolve(__dirname, 'runtime', 'components', 'index.ts'),
src: resolve(__dirname, 'runtime', 'components', 'plugin.js'),
filename: 'docus_components.js'
})

// Add Docus runtime plugin
addPlugin({
src: resolve(__dirname, 'plugin.js'),
filename: 'docus.js',
Expand Down
File renamed without changes.

1 comment on commit 030206c

@vercel
Copy link

@vercel vercel bot commented on 030206c Jun 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.