Skip to content

Commit

Permalink
feat: enforce post, ignore plugin order
Browse files Browse the repository at this point in the history
  • Loading branch information
baozouai committed Jul 16, 2023
1 parent 8364584 commit 3644c0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion playgrounds/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import EnhanceLog from '../../src'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
EnhanceLog({
splitBy: '\n',
preTip: '🐖🐖🐖🐖🐖🐖🐖🐖🐖',
enableFileName: {
enableDir: false,
},
}),
react(),

Inspect(),
],
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default function enhanceLogPlugin(options: Options = {}): PluginOption {
configResolved(config) {
root = config.root
},
enforce: 'post',
async transform(code, id) {
if (!filter(id))
return
Expand Down

0 comments on commit 3644c0b

Please sign in to comment.