12 lines
372 B
JavaScript
12 lines
372 B
JavaScript
|
/**
|
||
|
* Polyfills `FormData` and `Blob` in the Node.js runtime.
|
||
|
*/ if (!global.FormData) {
|
||
|
const { FormData } = require("next/dist/compiled/@edge-runtime/ponyfill");
|
||
|
global.FormData = FormData;
|
||
|
}
|
||
|
if (!global.Blob) {
|
||
|
const { Blob } = require("next/dist/compiled/@edge-runtime/ponyfill");
|
||
|
global.Blob = Blob;
|
||
|
}
|
||
|
|
||
|
//# sourceMappingURL=node-polyfill-form.js.map
|