Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
znck committed Feb 5, 2019
1 parent e1ae9b8 commit 8115b06
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,18 @@ export default function vue(opts: VuePluginOptions = {}): Plugin {
}

const shouldExtractCss = opts.css === false
const customBlocks: string[] = []
const customBlocks: string[] = []

if (opts.blackListCustomBlocks) {
console.warn('`blackListCustomBlocks` option is deprecated use `customBlocks`. See https://rollup-plugin-vue.vuejs.org/options.html#customblocks.')
console.warn(
'`blackListCustomBlocks` option is deprecated use `customBlocks`. See https://rollup-plugin-vue.vuejs.org/options.html#customblocks.'
)
customBlocks.push(...opts.blackListCustomBlocks.map(tag => '!' + tag))
}
if (opts.whiteListCustomBlocks) {
console.warn('`whiteListCustomBlocks` option is deprecated use `customBlocks`. See https://rollup-plugin-vue.vuejs.org/options.html#customblocks.')
console.warn(
'`whiteListCustomBlocks` option is deprecated use `customBlocks`. See https://rollup-plugin-vue.vuejs.org/options.html#customblocks.'
)
customBlocks.push(...opts.whiteListCustomBlocks)
}
const isAllowed = createCustomBlockFilter(opts.customBlocks || customBlocks)
Expand Down

0 comments on commit 8115b06

Please sign in to comment.