Skip to content

Commit

Permalink
fix fastboot for ember-data
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Mar 8, 2024
1 parent f3fecb5 commit b19ddb4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/dummy/config/fastboot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = function () {
return {
buildSandboxGlobals(defaultGlobals) {
return Object.assign({}, defaultGlobals, {
AbortController,
ReadableStream:
typeof ReadableStream !== 'undefined'
? ReadableStream
: require('node:stream/web').ReadableStream,
WritableStream:
typeof WritableStream !== 'undefined'
? WritableStream
: require('node:stream/web').WritableStream,
TransformStream:
typeof TransformStream !== 'undefined'
? TransformStream
: require('node:stream/web').TransformStream,
Headers: typeof Headers !== 'undefined' ? Headers : undefined,
});
},
};
};

0 comments on commit b19ddb4

Please sign in to comment.