babel-plugin-null-to-undefined

Babel plugin that transforms all null literals to undefined.

Usage no npm install needed!

<script type="module">
  import babelPluginNullToUndefined from 'https://cdn.skypack.dev/babel-plugin-null-to-undefined';
</script>

README

babel-plugin-null-to-undefined

Babel plugin that transforms all null literals to undefined.

Input:

const foo = null

const bar = foo === null

Output:

const foo = undefined

const bar = foo === undefined

Related Topics

Intent to stop using null in my JS code