-
Notifications
You must be signed in to change notification settings - Fork 37
Implement pure annotation for createPlugin #287
Implement pure annotation for createPlugin #287
Conversation
4c8588c
to
14370d1
Compare
14370d1
to
354af08
Compare
export default async function() { | ||
const app = new App('element', el => el); | ||
__BROWSER__ && app.register(defaultExportBrowserPlugin); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be really useful to test named exports also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, test added.
@@ -0,0 +1,8 @@ | |||
import {createPlugin} from 'fusion-core'; | |||
|
|||
const PLUGIN = /*@__PURE__*/ createPlugin({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of the instrumented as pure files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just thought it would be good to have a test case for this, in case that folks want to instrument their own code.
Fixes #287