Skip to content

hqjs/babel-plugin-support-nodejs-globals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Support-nodejs globals

  • Buffer - adds import Buffer from 'buffer'; on top of the program npm buffer package
  • process - adds iport process from 'process'; on top of the program npm process package
  • __dirname - substitutes exact value
  • __filename - substitutes exact value
  • global - changes to globalThis (which has polyfill in core-js) works in combination with globals above

Installation

npm install hqjs@babel-plugin-support-nodejs-globals

Usage

{
  "plugins": ["hqjs@babel-plugin-support-nodejs-globals"]
}

About

Support nodejs globals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published