PostCSS Bundle the postcss to the esmodule and translate node to the browser use yarn add -D postcss-browser8 import postcss from "postcss-browser8" const lazyResult = postcss().process(".title {color: red}") lazyResult.then(res => { console.log(res) })