diff --git a/README.md b/README.md index 76bdf9d5..10324953 100644 --- a/README.md +++ b/README.md @@ -13,25 +13,23 @@ ```ts import { defineUnplugin } from 'unplugin' -const plugin = defineUnplugin({ - name: 'my-first-unplugin', - setup(options: UserOptions) { - return { - // webpack's id filter is outside of loader logic, - // an additional hook is needed for better perf on webpack - transformInclude (id) { - return id.endsWith('.vue') - }, - // just like rollup transform - transform (code) { - return code.replace(/