only export @require
remove require from locals
support defining module locals