Skip to content

Babel plugin that inserts `console.log` messages at the top and bottom of each module in order to track runtime import behaviour.

License

Notifications You must be signed in to change notification settings

haggholm/babel-plugin-log-require

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-log-require

Inserts console.log statements at the top and bottom of each module, and also measures the time to load each module. This can be useful to diagnose slow-loading applications and understand what gets included.

Obviously absolutely inappropriate for production builds, this is a debug tool.

About

Babel plugin that inserts `console.log` messages at the top and bottom of each module in order to track runtime import behaviour.

Resources

License

Stars

Watchers

Forks

Packages

No packages published