-
Notifications
You must be signed in to change notification settings - Fork 816
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I write a preprocessor that many scripts will use.
I expect some where I can use it (for example in the http endpoint), nope.
I manually export it like this
export {preprocessor} from "./extract_user_info_from_jwt_token"Nope it doesn't work (testing console.log show that the code isn't run at all)
It only works if I use this convoluted revolted code:
import {preprocessor as extractor} from "./extract_user_info_from_jwt_token"
export async function preprocessor(event:any){
return await extractor(event);
}Please add a place to include preprocessor scripts in other scripts....
To reproduce
See the steps above
Expected behavior
I expect that a pre-processor script can be easily included in any trigger for a script
Screenshots
No response
Browser information
Chrome on mac
Application version
CE v1.516.0
Additional Context
The documentation on preprocessors are also extremely confusing.... You can create a preprocessor script, but there is no evident way to use it in other scripts...
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working