mirror of https://github.com/rollup/rollup.git
Fix perf timers for object hooks (#4707)
parent
7307bfa151
commit
e228fc71fe
@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
description: 'Supports object hooks with perf=true',
|
||||
options: {
|
||||
perf: true,
|
||||
plugins: [
|
||||
{
|
||||
transform: {
|
||||
order: 'pre',
|
||||
handler(code) {
|
||||
return code.replace('FOO', 'BAR');
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
assert.strictEqual('FOO', 'BAR');
|
Loading…
Reference in new issue