Skip to content

JayaKrishnaNamburu/docusaurus-node-polyfills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tiny wrapper around node-polyfill-webpack-plugin to support node-builtins in docusaurus. Huge thanks for the webpack plugin, which makes it easy here.

Install it from npm using

npm install docusaurus-node-polyfills --save-dev

In docusaurus.config.json add the polyfill in the plugins section

plugins: ['docusaurus-node-polyfills']

You can exclude builtin to not be polyfilled. For more details visit node-polyfill-webpack-plugin

For passing, you need to setup the plugin in this way.

plugins: [['docusaurus-node-polyfills', { excludeAliases: ['console']}]]

About

A docusaurus plugin for node-polyfills

Resources

Stars

Watchers

Forks

Packages

No packages published