P粉5739437552023-08-31 00:08:56
According to the Ionic and Vue documentation you can easily incorporate custom objects into the final webpack configuration.
First, install the browser version of the encryption module by executing the following command:
npm install crypto-browserify
You should then create a vue.config.js
file in your project root directory like this:
// vue.config.js module.exports = { configureWebpack: { resolve: { fallback: { crypto: require.resolve( 'crypto-browserify' ) // Any other missed node module } } } };
You should be able to repeat this process for each missed node-native module that has a browser version.