add process back
This commit is contained in:
parent
1cf4da3a0d
commit
2515464977
@ -85,7 +85,10 @@ esbuild
|
|||||||
// "process.version": `"v20.10.0"`, // who's using this?
|
// "process.version": `"v20.10.0"`, // who's using this?
|
||||||
// "process":`undefined`,
|
// "process":`undefined`,
|
||||||
// "global.process":`undefined`,
|
// "global.process":`undefined`,
|
||||||
"globalThis.process": `undefined`, // make azure blob storage happy
|
|
||||||
|
// make azure blob storage happy
|
||||||
|
// https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-util/src/checkEnvironment.ts
|
||||||
|
"globalThis.process.versions": `undefined`,
|
||||||
},
|
},
|
||||||
plugins: [inlineWorkerPlugin()],
|
plugins: [inlineWorkerPlugin()],
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
export const Buffer = require("buffer").Buffer;
|
export const Buffer = require("buffer").Buffer;
|
||||||
// export const process = require("process/browser");
|
export const process = require("process/browser");
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"browser": {
|
"browser": {
|
||||||
"path": "path-browserify",
|
"path": "path-browserify",
|
||||||
"process": false,
|
"process": "process/browser",
|
||||||
"stream": "stream-browserify",
|
"stream": "stream-browserify",
|
||||||
"crypto": "crypto-browserify",
|
"crypto": "crypto-browserify",
|
||||||
"url": "url/",
|
"url": "url/",
|
||||||
|
|||||||
@ -52,16 +52,19 @@ module.exports = {
|
|||||||
// "process.version": `"v20.10.0"`, // who's using this?
|
// "process.version": `"v20.10.0"`, // who's using this?
|
||||||
// "process":`undefined`,
|
// "process":`undefined`,
|
||||||
// "global.process":`undefined`,
|
// "global.process":`undefined`,
|
||||||
"globalThis.process": `undefined`, // make azure blob storage happy
|
|
||||||
|
// make azure blob storage happy
|
||||||
|
// https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-util/src/checkEnvironment.ts
|
||||||
|
"globalThis.process.versions": `undefined`,
|
||||||
}),
|
}),
|
||||||
// Work around for Buffer is undefined:
|
// Work around for Buffer is undefined:
|
||||||
// https://github.com/webpack/changelog-v5/issues/10
|
// https://github.com/webpack/changelog-v5/issues/10
|
||||||
new webpack.ProvidePlugin({
|
new webpack.ProvidePlugin({
|
||||||
Buffer: ["buffer", "Buffer"],
|
Buffer: ["buffer", "Buffer"],
|
||||||
}),
|
}),
|
||||||
// new webpack.ProvidePlugin({
|
new webpack.ProvidePlugin({
|
||||||
// process: "process/browser",
|
process: "process/browser",
|
||||||
// }),
|
}),
|
||||||
],
|
],
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
@ -110,7 +113,7 @@ module.exports = {
|
|||||||
// os: require.resolve("os-browserify/browser"),
|
// os: require.resolve("os-browserify/browser"),
|
||||||
path: require.resolve("path-browserify"),
|
path: require.resolve("path-browserify"),
|
||||||
// punycode: require.resolve("punycode"),
|
// punycode: require.resolve("punycode"),
|
||||||
process: false, // require.resolve("process/browser"),
|
process: require.resolve("process/browser"),
|
||||||
// querystring: require.resolve("querystring-es3"),
|
// querystring: require.resolve("querystring-es3"),
|
||||||
stream: require.resolve("stream-browserify"),
|
stream: require.resolve("stream-browserify"),
|
||||||
// string_decoder: require.resolve("string_decoder"),
|
// string_decoder: require.resolve("string_decoder"),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user