-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove rollup-plugin-node-polyfills dependency and use custom no…
- Loading branch information
1 parent
8cbdf4f
commit b3c3f20
Showing
5 changed files
with
47 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
packages/plugin-check/template-report/polyfills/noop-polyfills.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) 2022 Climate Interactive / New Venture Fund | ||
|
||
/* | ||
* This file contains no-op polyfills for the small set of Node APIs that are | ||
* referenced by the Node implementation of the threads.js package (which is | ||
* used by the default generated bundle any custom bundle that uses the | ||
* `@sdeverywhere/runtime-async` package). These polyfills are not actually | ||
* used at runtime in the browser because they are only referenced in the | ||
* (unused) Node code path. | ||
*/ | ||
|
||
// from 'events' | ||
export class EventEmitter {} | ||
|
||
// from 'os' | ||
export function cpus(): number { | ||
return 1 | ||
} | ||
|
||
// from 'path' | ||
export function dirname(): string { | ||
return '' | ||
} | ||
|
||
// from 'path' | ||
export function isAbsolute(): boolean { | ||
return false | ||
} | ||
|
||
// from 'path' | ||
export function join(): string { | ||
return '' | ||
} | ||
|
||
// from 'util' | ||
export function fileURLToPath(): string { | ||
return '' | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.