📜  反应包括一个 polyfill webpack v5 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:26.696000             🧑  作者: Mango

代码示例1
module.exports = {
    resolve: {
        fallback: {
            assert: require.resolve('assert'),
            crypto: require.resolve('crypto-browserify'),
            http: require.resolve('stream-http'),
            https: require.resolve('https-browserify'),
            os: require.resolve('os-browserify/browser'),
            stream: require.resolve('stream-browserify'),
        },
    },
};