Skip to content

Commit 492572c

Browse files
committed
Deleting commented out import core.js on Tree.ts
1 parent c3aa026 commit 492572c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/backend/module.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
// can run on outdated platforms and with outdated applications
55
declare module 'core-js';
66
// Regenerator runtime provides runtime support for compiled/transpiled async functions.
7-
7+
// Like babel that compiles modern js into older js,
8+
// async functions are also compiled to run on engines that don't support async.
9+
// After babel does the syntax transformation or transpiles the async functions,
10+
// the resulting code uses regen runtime to run
11+
// https://stackoverflow.com/questions/65378542/what-is-regenerator-runtime-npm-package-used-for
812
declare module 'regenerator-runtime/runtime';
13+
// Acorn is a jsx parser that was experimental to be faster than than the react.js jsx parser,
14+
// however is not maintained at this time, last update was more than one year ago 10-5-21
915
declare module 'acorn-jsx';
16+
// Traspiler to traspile code to JSX AST but to use with regular es5 compliant js,
17+
// still needs babel and buble trasnpilers which use acorn-jsx under the hood
1018
declare module 'acorn';

src/backend/tree.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-plusplus */
22
/* eslint-disable max-len */
33
/* eslint-disable @typescript-eslint/ban-types */
4-
// import 'core-js';
54
/* eslint-disable no-multiple-empty-lines */
65
/* eslint-disable max-classes-per-file */
76
/* eslint-disable no-console */

0 commit comments

Comments
 (0)