I’m developing a panel plugin and using webpack to build. I’m curious if the librayTarget has to be set as amd, or it may not be required to set.
I’m trying to use a third party libray, once the libraryTarget is set I will get error:
Uncaught ReferenceError: define is not defined
In this package the core modules of nodejs such as fs, path and crypto are used.