Skip to content

Commit

Permalink
fix: mdsvex broke rollup if no exts were specified
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Oct 16, 2020
1 parent 5154067 commit 4bb8aea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/plugins/mdsvex/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/// <reference path="../../../typedef.js" />

import { mdsvex } from 'mdsvex'
const extension = ['.md', '.svx', '.svelte']

/** @type {import('roxi')['RoxiPlugin']} */
/** @type {RoxiPlugin} */
module.exports.default = {
name: 'mdsvex',
hooks: [
Expand All @@ -22,7 +24,6 @@ module.exports.default = {
})
],
extensions: params.extension
|| app.config.svelte.extensions
|| app.config.mdsvex.extension
|| extension
}
Expand Down

0 comments on commit 4bb8aea

Please sign in to comment.