-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(js): make Compiler invoke a preprocessor, pre-compile core.js
This attempts to further separate the concept of compiler.Compiler and Babel being the same thing. A compiler.Compiler does two things: 1. Parses source code into a goja.Program, which in the Goja domain means *compiling*. 2. Optionally runs the code through preprocessors and pre-compiles shims such as core.js to be used in the runtime VU Goja VM. I think introducing the concept of a preprocessor makes sense, as that's what Babel is (besides being a compiler, which some may disagree with). This design is more cohesive (all shims are now in js/compiler/lib/, the js/lib/ package is gone) and gives us a place to expand by further adding shims of our own.
- Loading branch information
Ivan Mirić
committed
Oct 21, 2019
1 parent
d89f1a8
commit 4e52c78
Showing
9 changed files
with
98 additions
and
155 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
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
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.