vite-ssr icon indicating copy to clipboard operation
vite-ssr copied to clipboard

__DEV__ Vite config define breaks @elastic/apm-rum-core.

Open phlegx opened this issue 1 year ago • 0 comments

Hi!

Using the following code in plugins.ts breaks @elastic/apm-rum-core package:

define: {
 ...
  __DEV__: env.mode !== 'production',
},

See @elastic/apm-agent-rum-js/issues/1372

Maybe using a more package specific naming like __VITE_SSR_DEV__ could be very useful.

phlegx avatar May 02 '24 16:05 phlegx