suttridge commented on issue #19806:
URL: https://github.com/apache/echarts/issues/19806#issuecomment-2358567930

   [SOLVED]
   OK, further to this, after much research :
   I am using rollup, and found I needed to install and add the "replace" 
plugin in the plugins section of the rollup config file, and then use this 
plugin to replace the call in the clazz.js file as follows :
   
   rollup.config.mjs
   
   import replace from '@rollup/plugin-replace'
   .....
   plugins: [
   .......
   replace({
     preventAssignment: true,
     'process.env.NODE_ENV': production ? '"production"' : '"development"'
   }),
   ......
   ]
   
   Note the use of single-double quotes to make sure the strings are correctly 
replaced.
   
   Works fine now, but it would be useful if one didn't have to manually do 
this !
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to