Skip to content

Commit

Permalink
add bun to the list of bundlers
Browse files Browse the repository at this point in the history
  • Loading branch information
naugtur committed Jun 24, 2024
1 parent 5b288b9 commit ade08c9
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 42 deletions.
1 change: 1 addition & 0 deletions matrix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ npm run <name>
- `run-endo` - Runs only endo tests - useful when switching endo versions
- `generate` - Collects `./results/*` and generates the table.md file
- `update-endo` - installs latest endo packages used in tests
- bun is not included in `build` by default and has to be used with `npm run build:bun` after it's been installed on the machine.

## Bundler Configurations

Expand Down
1 change: 1 addition & 0 deletions matrix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build:esbuild": "esbuild cases/import-cjs/index.mjs --bundle --outfile=cases/import-cjs/dist/esbuild.js",
"build:webpack": "webpack --config cases/import-cjs/webpack.config.js",
"build:rollup": "cd ./cases/import-cjs/ && rollup --config rollup.config.js",
"build:bun": "bun build ./cases/import-cjs/index.mjs --outfile ./cases/import-cjs/dist/bun.mjs --target node",
"build:parcel": "cd ./cases/import-cjs/ && parcel build --no-source-maps --no-cache"
},
"keywords": [],
Expand Down
191 changes: 191 additions & 0 deletions matrix/results/bun.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
{
"name": "bun",
"bin": "node",
"args": [
"/home/naugtur/repo/endo-e2e-tests/matrix/cases/import-cjs/dist/bun.mjs"
],
"data": [
{
"even": [
true,
true
],
"default": [
true,
true
],
"default.even": [
true,
true
]
},
{
"even": [
true,
true
],
"default": [
true,
true
],
"default.even": [
true,
true
]
},
{
"even": [
false,
true
],
"default": [
true,
true
],
"default.even": [
false,
true
]
},
{
"even": [
true,
true
],
"default": [
true,
true
],
"default.even": [
true,
true
]
},
{
"even": [
true,
true
],
"default": [
true,
true
],
"default.even": [
true,
true
]
},
{
"even": [
true,
true
],
"default": [
true,
true
],
"default.even": [
true,
true
]
},
{
"even": [
false,
false
],
"default": [
true,
true
],
"default.even": [
false,
false
]
},
{
"even": [
true,
true
],
"default": [
true,
true
],
"default.even": [
true,
true
]
},
{
"even": [
true,
true
],
"default": [
true,
true
],
"default.even": [
true,
true
]
},
{
"even": [
true,
true
],
"default": [
true,
true
],
"default.even": [
true,
true
]
},
{
"even": [
false,
false
],
"default": [
true,
true
],
"default.even": [
true,
true
]
},
{
"even": [
true,
true
],
"default": [
false,
false
],
"default.even": [
false,
false
]
},
{
"even": [
true,
true
],
"default": [
true,
true
],
"default.even": [
true,
true
]
}
]
}
84 changes: 42 additions & 42 deletions matrix/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,48 @@ What is available as a result of `import * as namespace from "x.cjs"`
☑ - own property, but falsy
✔️ - truthy

| | **endo** | **node-v12** | **node-v12** | **node-v16** | **node-v20** | **esbuild** | **parcel** | **rollup** | **tsc** | **tscInterop** | **webpack** |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| [1.cjs](#file-1cjs) even | ✔️ || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [1.cjs](#file-1cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [1.cjs](#file-1cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [2.cjs](#file-2cjs) even | ✔️ ||||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [2.cjs](#file-2cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [2.cjs](#file-2cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [3.cjs](#file-3cjs) even |||||| ✔️ | ✔️ || ✔️ || ✔️ |
| [3.cjs](#file-3cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [3.cjs](#file-3cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [4.cjs](#file-4cjs) even | ✔️ ||||| ✔️ | ✔️ || ✔️ || ✔️ |
| [4.cjs](#file-4cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [4.cjs](#file-4cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [5.cjs](#file-5cjs) even | ✔️ ||||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [5.cjs](#file-5cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [5.cjs](#file-5cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [6.cjs](#file-6cjs) even | ✔️ || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ ||
| [6.cjs](#file-6cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [6.cjs](#file-6cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [7.cjs](#file-7cjs) even ||||||||||||
| [7.cjs](#file-7cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |||| ✔️ | ✔️ |
| [7.cjs](#file-7cjs) default.even ||||||||||||
| [8.cjs](#file-8cjs) even | ✔️ || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [8.cjs](#file-8cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [8.cjs](#file-8cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [9.cjs](#file-9cjs) even |||||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [9.cjs](#file-9cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ ||| ✔️ |
| [9.cjs](#file-9cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ ||| ✔️ |
| [10.cjs](#file-10cjs) even |||||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [10.cjs](#file-10cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ ||| ✔️ |
| [10.cjs](#file-10cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ ||| ✔️ |
| [11.cjs](#file-11cjs) even ||||||||||||
| [11.cjs](#file-11cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [11.cjs](#file-11cjs) default.even ||||||| ✔️ | ✔️ | ✔️ | ✔️ ||
| [12.cjs](#file-12cjs) even | ✔️ || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [12.cjs](#file-12cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ ||| ✔️ |
| [12.cjs](#file-12cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ ||| ✔️ |
| [13.cjs](#file-13cjs) even ||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [13.cjs](#file-13cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| [13.cjs](#file-13cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ || ✔️ || ✔️ | ✔️ |
| | **endo** | **node-v12** | **node-v12** | **node-v16** | **node-v20** | **esbuild** | **parcel** | **rollup** | **tsc** | **tscInterop** | **webpack** |
| | **endo** | **node-v12** | **node-v12** | **node-v16** | **node-v20** | **bun** | **esbuild** | **parcel** | **rollup** | **tsc** | **tscInterop** | **webpack** |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| [1.cjs](#file-1cjs) even | ✔️ || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [1.cjs](#file-1cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [1.cjs](#file-1cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [2.cjs](#file-2cjs) even | ✔️ ||||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [2.cjs](#file-2cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [2.cjs](#file-2cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [3.cjs](#file-3cjs) even |||||| ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ |
| [3.cjs](#file-3cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [3.cjs](#file-3cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [4.cjs](#file-4cjs) even | ✔️ ||||| ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ |
| [4.cjs](#file-4cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [4.cjs](#file-4cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [5.cjs](#file-5cjs) even | ✔️ ||||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [5.cjs](#file-5cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [5.cjs](#file-5cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [6.cjs](#file-6cjs) even | ✔️ || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
| [6.cjs](#file-6cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [6.cjs](#file-6cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [7.cjs](#file-7cjs) even |||||||||||||
| [7.cjs](#file-7cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ||| ✔️ | ✔️ |
| [7.cjs](#file-7cjs) default.even |||||||||||||
| [8.cjs](#file-8cjs) even | ✔️ || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [8.cjs](#file-8cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [8.cjs](#file-8cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [9.cjs](#file-9cjs) even |||||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [9.cjs](#file-9cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ ||| ✔️ |
| [9.cjs](#file-9cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ ||| ✔️ |
| [10.cjs](#file-10cjs) even |||||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [10.cjs](#file-10cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ ||| ✔️ |
| [10.cjs](#file-10cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ ||| ✔️ |
| [11.cjs](#file-11cjs) even |||||||||||||
| [11.cjs](#file-11cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [11.cjs](#file-11cjs) default.even |||||| ✔️ | | ✔️ | ✔️ | ✔️ | ✔️ ||
| [12.cjs](#file-12cjs) even | ✔️ || ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [12.cjs](#file-12cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ ||| ✔️ |
| [12.cjs](#file-12cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ ||| ✔️ |
| [13.cjs](#file-13cjs) even ||| ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| [13.cjs](#file-13cjs) default | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| [13.cjs](#file-13cjs) default.even | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ || ✔️ | ✔️ |
| | **endo** | **node-v12** | **node-v12** | **node-v16** | **node-v20** | **bun** | **esbuild** | **parcel** | **rollup** | **tsc** | **tscInterop** | **webpack** |

## Matching results

Expand Down
5 changes: 5 additions & 0 deletions matrix/tools/runTests.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ const engines = {
bin: 'node',
args: [`${CASE_PATH}/dist/tscinterop/index.js`],
},
bun: {
name: 'bun',
bin: 'node',
args: [`${CASE_PATH}/dist/bun.mjs`],
},
};

function logErr({ name }, stderr) {
Expand Down

0 comments on commit ade08c9

Please sign in to comment.