Deployment with webpack
Some of the third party dependencies of VSDX Export require the use of webpack’s resolve.fallback option (webpack 5 and above):
Because webpack simulates a Node.js environment, some third-party modules expect certain native modules
to be present. This causes issues at build time when these modules cannot be resolved (as they won’t be
present in the browser). To prevent this from happening, we need to tell webpack to mock these native
modules by adding the following lines to the configuration:
module.exports = {
// ...
resolve: {
fallback: {
buffer: false,
stream: false,
util: false
}
}
// ...
}