How can I define build flags while using laravel-mix 6?

Official repo of Vue3 says:

Starting with 3.0.0-rc.3, esm-bundler builds now exposes global feature flags that can be overwritten at compile time:

VUE_OPTIONS_API (enable/disable Options API support, default: true)

VUE_PROD_DEVTOOLS (enable/disable devtools support in production, default: false)

The build will work without configuring these flags, however it is strongly recommended to properly configure them in order to get proper tree-shaking in the final bundle. To configure these flags:

webpack: use DefinePlugin

In the case of webpack, it is suggested to use DefinePlugin.

Since laravel-mix is a wrapper for webpack, how can I actually configure this flags?