Skip to content

Commit

Permalink
chore: remove unused polyfills
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Feb 16, 2025
1 parent 2626c62 commit d48bc70
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
3 changes: 0 additions & 3 deletions elide/runtime/js/entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,3 @@ const intrinsicProcess = node_process;
function nodeProcessAPI() {
return intrinsicProcess;
}

globalThis['window'] = undefined;
globalThis['gc'] = null;
6 changes: 3 additions & 3 deletions elide/runtime/js/polyfills/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ package(
## -- Polyfills -- ##

POLYFILLS = {
"abort-controller": [],
"buffer": ["base64.js", "ieee754.js"],
"once": ["once.js"],
"readable-stream": ["readable-stream.mjs"],
# --- Disabled (Implemented Natively) -------
# "abort-controller": [],
# "buffer": ["base64.js", "ieee754.js"],
# "event": ["event-target.js"],
# "once": ["once.js"],
# "text-encoder": ["textencoder.js"],
}

Expand Down
2 changes: 1 addition & 1 deletion elide/runtime/js/polyfills/esbuild.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ module.exports = {
minify: true,
target: "es2021",
treeShaking: false,
legalComments: "external",
legalComments: "none",
platform: "neutral"
};
2 changes: 0 additions & 2 deletions elide/runtime/js/polyfills/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@
* License for the specific language governing permissions and limitations under the License.
*/

import "./once.js";
import "./readable-stream.mjs";

0 comments on commit d48bc70

Please sign in to comment.