DevTips -- JavaScript

moon indicating dark mode
sun indicating light mode
JS is cool

Negative Lookahead

You can use a negative lookahead (?!) to safelist or blocklist a specific node_module when applying tools like babel

require("@babel/register")({
presets: ["@babel/preset-react"],
ignore: [/node_modules\/(?!some-npm-module)/]
});