Skip to content

Commit d48bc70

Browse files
committed
chore: remove unused polyfills
Signed-off-by: Sam Gammon <sam@elide.dev>
1 parent 2626c62 commit d48bc70

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

elide/runtime/js/entrypoint.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,3 @@ const intrinsicProcess = node_process;
7575
function nodeProcessAPI() {
7676
return intrinsicProcess;
7777
}
78-
79-
globalThis['window'] = undefined;
80-
globalThis['gc'] = null;

elide/runtime/js/polyfills/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ package(
1414
## -- Polyfills -- ##
1515

1616
POLYFILLS = {
17-
"abort-controller": [],
18-
"buffer": ["base64.js", "ieee754.js"],
19-
"once": ["once.js"],
2017
"readable-stream": ["readable-stream.mjs"],
2118
# --- Disabled (Implemented Natively) -------
19+
# "abort-controller": [],
20+
# "buffer": ["base64.js", "ieee754.js"],
2221
# "event": ["event-target.js"],
22+
# "once": ["once.js"],
2323
# "text-encoder": ["textencoder.js"],
2424
}
2525

elide/runtime/js/polyfills/esbuild.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ module.exports = {
1717
minify: true,
1818
target: "es2021",
1919
treeShaking: false,
20-
legalComments: "external",
20+
legalComments: "none",
2121
platform: "neutral"
2222
};

elide/runtime/js/polyfills/polyfills.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@
1111
* License for the specific language governing permissions and limitations under the License.
1212
*/
1313

14-
import "./once.js";
1514
import "./readable-stream.mjs";
16-

0 commit comments

Comments
 (0)