Could os.platform only be used in backend?

could os.platform() only be uesed in current theia? I use it in frontend in 1.32.0. it is ok, after update to 1.42.1 I get

@wss os is a node.js library, so it cannot be imported in the frontend. Webpack probably compiled a polyfill into your frontend so it still compiled and kind of worked as expected. Use OS.type() (frontend) or OS.backend.type() (backend) from the @theia/core package to get the current OS.