-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch to ESM source and distributions
BREAKING CHANGE: Adds `exports` Also: 1. updates benchmark 2. fixes escodegen with missing options
- Loading branch information
Showing
45 changed files
with
2,358 additions
and
4,346 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ indent_style = space | |
indent_size = 4 | ||
|
||
[*.json] | ||
indent_size = 2 | ||
indent_size = 4 | ||
|
||
[*.yml] | ||
indent_size = 2 |
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 |
---|---|---|
|
@@ -6,5 +6,4 @@ coverage | |
|
||
test/*/*.js | ||
|
||
escodegen.browser.min.js | ||
escodegen.browser.js | ||
dist |
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
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
{ | ||
"private": true, | ||
"name": "benchmark", | ||
"version": "0.1.0", | ||
"description": "Regression benchmarking. Compare speed with upstream npm version", | ||
"main": "index.js", | ||
"type": "module", | ||
"scripts": { | ||
"test": "node index" | ||
}, | ||
"author": "Ivan Nikulin <ifaaan@gmail.com>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"benchmark": "~1.0.0", | ||
"benchmark": "~2.1.4", | ||
"esotope": "*" | ||
}, | ||
"optionalDependencies": { | ||
"microtime": "~0.4.0" | ||
"microtime": "~3.0.0" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
var asts = require('./asts'), | ||
escodegen = require('../'); | ||
import asts from './asts.js'; | ||
import escodegen from '../src/escodegen-node.js'; | ||
|
||
for (var j = 0; j < 50; j++) { | ||
for (var i = 0; i < asts.length; i++) | ||
escodegen.generate(asts[0]); | ||
} | ||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.