Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More bundler features #1410

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

More bundler features #1410

wants to merge 9 commits into from

Conversation

naugtur
Copy link
Member

@naugtur naugtur commented Dec 16, 2022

  • json support
  • reduce unnecessary output
  • cycles

@naugtur naugtur force-pushed the naugtur-bundler-features branch from afbeafc to 02d1c87 Compare December 16, 2022 14:28
@@ -38,7 +38,8 @@
"lint:js": "eslint .",
"lint:types": "tsc -p jsconfig.json",
"prettier-fixtures": "prettier --write --with-node-modules './test/fixtures-*/**/*.*js'",
"test": "ava"
"test": "ava",
"dev:livebundle": "mkdir -p dist && nodemon scripts/bundle-live-test.js --ignore dist/bu.js"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example bundle is no longer being committed, but I kinda regret that. It'd show what changed in the PR really well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snapshot tests!

const {
imports = [],
reexports = [],
} = /** @type {PrecompiledStaticModuleInterface} */ (record);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prettier did this 🤷

Comment on lines +305 to +306
const cells = makeCells(
${JSON.stringify([...modules.map(m => m.bundlerKit.getCells())], null, 2)},
/* export * from */
${JSON.stringify(modules.flatMap(m => m.bundlerKit.reexportedCells || []))}
Copy link
Member Author

@naugtur naugtur Dec 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makeCells is much less verbose than what we used to have here. Estimated over 50% less text after minification.

first stringify is pretty for us, whitespace will get minified away, but debugging bundles should be easier.

@naugtur naugtur force-pushed the naugtur-bundler-features branch from 02d1c87 to 66a70dc Compare December 16, 2022 14:42
];

// If you're looking at this test hoping to modify it to see bundling results,
// run `yarn dev:livebundle` instead
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to self 😅

@kumavis kumavis force-pushed the naugtur-bundler-features branch from 66a70dc to b054d66 Compare December 16, 2022 21:16
Copy link
Member

@kumavis kumavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neato

@kumavis
Copy link
Member

kumavis commented Dec 16, 2022

sourceURL needs to be relativized for snapshot to work in ci

@naugtur
Copy link
Member Author

naugtur commented Dec 19, 2022

@kumavis

sourceURL needs to be relativized for snapshot to work in ci

I saw you added turning off sourceUrl. For better privacy and opsec it'd be wise to provide sourceUrl relative to project root always. That would require a change to linker to propagate the path to starting location into all subsequent passes of the recursion and ultimately to the parser. I feel like we're gonna need to talk about it. But not having my homedir path in a bundle or an archive sounds nice.

@kriskowal
Copy link
Member

In Endo archives, we found .../${packageName}/${packagePath} plays well with debuggers, as long as the package name matches the directory name.

@naugtur
Copy link
Member Author

naugtur commented Dec 20, 2022

Rebuilt e2e testing with snapshot of all results as a result of tests. Added bundling in there. endojs/endo-e2e-tests#7

At this point it shows a vast improvement in what bundler can bundle (locally. there's still some setup isses in CI with missing dependencies)

Click to see details

The way AVA marks diff is - for actual value and + for existing snapshot
I'm comparing latest released endo with current state of this branch

  cjs › ALL

  Did not match snapshot

  Difference:

    {
  -   __FAILURE: 40,
  +   __FAILURE: 56,
  -   __SUCCESS: 176,
  +   __SUCCESS: 160,
      '_babel_types.cjs    Endo can bundle': `FAILED␊
      Cannot read properties of undefined (reading 'index')`,
      '_babel_types.cjs    Endo can import': 'OK',
      '_babel_types.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      '_babel_types.cjs    Endo imports default': 'OK',
      '_babel_types.cjs    Node.js baseline': 'OK',
      '_babel_types.cjs    import resolution matches': 'OK',
  -   '_ethersproject_random.cjs    Endo can bundle': `OK
  +   '_ethersproject_random.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./cases/_ethersproject_random.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      '_ethersproject_random.cjs    Endo can import': 'OK',
      '_ethersproject_random.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      '_ethersproject_random.cjs    Endo imports default': 'OK',
      '_ethersproject_random.cjs    Node.js baseline': 'OK',
      '_ethersproject_random.cjs    import resolution matches': 'OK',
  -   '_noble_hashes_crypto.cjs    Endo can bundle': `OK
  +   '_noble_hashes_crypto.cjs    Endo can bundle': `FAILED␊
  +   Cannot bundle: cannot follow module import crypto in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@noble/hashes/`,
      '_noble_hashes_crypto.cjs    Endo can import': 'OK',
      '_noble_hashes_crypto.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      '_noble_hashes_crypto.cjs    Endo imports default': 'OK',
      '_noble_hashes_crypto.cjs    Node.js baseline': 'OK',
      '_noble_hashes_crypto.cjs    import resolution matches': 'OK',
  -   '_noble_hashes_sha3.cjs    Endo can bundle': `OK
  +   '_noble_hashes_sha3.cjs    Endo can bundle': `FAILED␊
  +   Cannot bundle: cannot follow module import ./crypto in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
  -   '_noble_hashes_sha3.cjs    Endo can import': `OK
  +   '_noble_hashes_sha3.cjs    Endo can import': `FAILED␊
  +   Cannot find file for internal module "./crypto" (with candidates "./crypto", "./crypto.js", "./crypto/index.js") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
  -   '_noble_hashes_sha3.cjs    Endo import * gets _at least_ the exports Node.js got': `OK
  +   '_noble_hashes_sha3.cjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
  +   Cannot find file for internal module "./crypto" (with candidates "./crypto", "./crypto.js", "./crypto/index.js") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
  -   '_noble_hashes_sha3.cjs    Endo imports default': `OK
  +   '_noble_hashes_sha3.cjs    Endo imports default': `FAILED␊
  +   Cannot find file for internal module "./crypto" (with candidates "./crypto", "./crypto.js", "./crypto/index.js") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
      '_noble_hashes_sha3.cjs    Node.js baseline': 'OK',
  -   '_noble_hashes_sha3.cjs    import resolution matches': `OK
  +   '_noble_hashes_sha3.cjs    import resolution matches': `FAILED␊
  +   Cannot find file for internal module "./crypto" (with candidates "./crypto", "./crypto.js", "./crypto/index.js") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
  -   'acorn.cjs    Endo can bundle': `OK
  +   'acorn.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./cases/acorn.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'acorn.cjs    Endo can import': 'OK',
      'acorn.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'acorn.cjs    Endo imports default': 'OK',
      'acorn.cjs    Node.js baseline': 'OK',
      'acorn.cjs    import resolution matches': 'OK',
      'axios.cjs    Endo can bundle': `FAILED␊
  -   Cannot read properties of undefined (reading 'index')`,
  +   Cannot bundle: cannot follow module import http in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/axios/`,
      'axios.cjs    Endo can import': 'OK',
      'axios.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'axios.cjs    Endo imports default': 'OK',
      'axios.cjs    Node.js baseline': 'OK',
      'axios.cjs    import resolution matches': 'OK',
  -   'bignumber.js.cjs    Endo can bundle': `OK
  +   'bignumber.js.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./cases/bignumber.js.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'bignumber.js.cjs    Endo can import': 'OK',
      'bignumber.js.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'bignumber.js.cjs    Endo imports default': 'OK',
      'bignumber.js.cjs    Node.js baseline': 'OK',
      'bignumber.js.cjs    import resolution matches': 'OK',
      'browser-resolve.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/browser-resolve/`,
  +   Cannot bundle: cannot follow module import fs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/browser-resolve/`,
      'browser-resolve.cjs    Endo can import': 'OK',
      'browser-resolve.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'browser-resolve.cjs    Endo imports default': 'OK',
      'browser-resolve.cjs    Node.js baseline': 'OK',
      'browser-resolve.cjs    import resolution matches': 'OK',
      'browserify.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/browserify/`,
  +   Cannot bundle: cannot follow module import path in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/browserify/`,
      'browserify.cjs    Endo can import': `FAILED␊
      Cannot find module 'process/browser.js'␊
      Add requireResolve to Endo Compartment Mapper readPowers.`,
      'browserify.cjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
      Cannot find module 'process/browser.js'␊
      Add requireResolve to Endo Compartment Mapper readPowers.`,
      'browserify.cjs    Endo imports default': `FAILED␊
      Cannot find module 'process/browser.js'␊
      Add requireResolve to Endo Compartment Mapper readPowers.`,
      'browserify.cjs    Node.js baseline': 'OK',
      'browserify.cjs    import resolution matches': `FAILED␊
      Cannot find module 'process/browser.js'␊
      Add requireResolve to Endo Compartment Mapper readPowers.`,
      'css-loader.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/postcss/`,
  +   Cannot bundle: cannot follow module import tty in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/picocolors/`,
      'css-loader.cjs    Endo can import': `FAILED␊
      Possible import expression rejected at file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/css-loader/dist/plugins/postcss-import-parser.js:158. (SES_IMPORT_REJECTED)`,
      'css-loader.cjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
      Possible import expression rejected at file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/css-loader/dist/plugins/postcss-import-parser.js:158. (SES_IMPORT_REJECTED)`,
      'css-loader.cjs    Endo imports default': `FAILED␊
      Possible import expression rejected at file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/css-loader/dist/plugins/postcss-import-parser.js:158. (SES_IMPORT_REJECTED)`,
      'css-loader.cjs    Node.js baseline': 'OK',
      'css-loader.cjs    import resolution matches': `FAILED␊
      Possible import expression rejected at file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/css-loader/dist/plugins/postcss-import-parser.js:158. (SES_IMPORT_REJECTED)`,
      'elliptic.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "buffer" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/elliptic/node_modules/bn.js/`,
  +   Cannot bundle: cannot follow module import buffer in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/elliptic/node_modules/bn.js/`,
      'elliptic.cjs    Endo can import': 'OK',
      'elliptic.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'elliptic.cjs    Endo imports default': 'OK',
      'elliptic.cjs    Node.js baseline': 'OK',
      'elliptic.cjs    import resolution matches': 'OK',
      'elliptic_lib_elliptic_curves.js.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "buffer" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/elliptic/node_modules/bn.js/`,
  +   Cannot bundle: cannot follow module import util in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/inherits/`,
      'elliptic_lib_elliptic_curves.js.cjs    Endo can import': 'OK',
      'elliptic_lib_elliptic_curves.js.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'elliptic_lib_elliptic_curves.js.cjs    Endo imports default': 'OK',
      'elliptic_lib_elliptic_curves.js.cjs    Node.js baseline': 'OK',
      'elliptic_lib_elliptic_curves.js.cjs    import resolution matches': 'OK',
      'eslint.cjs    Endo can bundle': `FAILED␊
  -   Failed to load module "./cases/eslint.cjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (49 underlying failures: Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "os" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@humanwhocodes/config-array/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/minimatch/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/import-fresh/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint/node_modules/glob-parent/, Cannot find external module "os" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint/node_modules/glob-parent/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/file-entry-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/file-entry-cache/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/doctrine/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/`,
  +   Failed to load module "./cases/eslint.cjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (51 underlying failures: Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "os" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/debug/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@humanwhocodes/config-array/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/import-fresh/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/minimatch/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint/node_modules/glob-parent/, Cannot find external module "os" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint/node_modules/glob-parent/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/file-entry-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/file-entry-cache/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/doctrine/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/inherits/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/`,
      'eslint.cjs    Endo can import': `FAILED␊
      Cannot read properties of undefined (reading 'acorn')`,
      'eslint.cjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
      Cannot read properties of undefined (reading 'acorn')`,
      'eslint.cjs    Endo imports default': `FAILED␊
      Cannot read properties of undefined (reading 'acorn')`,
      'eslint.cjs    Node.js baseline': 'OK',
      'eslint.cjs    import resolution matches': `FAILED␊
      Cannot read properties of undefined (reading 'acorn')`,
  -   'ethereumjs-common.cjs    Endo can bundle': `OK
  +   'ethereumjs-common.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./dist/chains/mainnet.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/ropsten.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/rinkeby.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/kovan.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/goerli.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language pre-cjs-json, module ./dist/hardforks/chainstart.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/homestead.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/dao.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/tangerineWhistle.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/spuriousDragon.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/byzantium.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/constantinople.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/petersburg.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/istanbul.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/muirGlacier.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language pre-cjs-json, module ./dist/index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language pre-cjs-json, module ./cases/ethereumjs-common.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'ethereumjs-common.cjs    Endo can import': 'OK',
      'ethereumjs-common.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'ethereumjs-common.cjs    Endo imports default': 'OK',
      'ethereumjs-common.cjs    Node.js baseline': 'OK',
      'ethereumjs-common.cjs    import resolution matches': 'OK',
      'ethereumjs-util.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "buffer" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-util/`,
  +   Cannot bundle: cannot follow module import buffer in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-util/`,
      'ethereumjs-util.cjs    Endo can import': 'OK',
      'ethereumjs-util.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'ethereumjs-util.cjs    Endo imports default': 'OK',
      'ethereumjs-util.cjs    Node.js baseline': 'OK',
      'ethereumjs-util.cjs    import resolution matches': 'OK',
      'ethers.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "buffer" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@ethersproject/bignumber/node_modules/bn.js/`,
  +   Cannot bundle: cannot follow module import buffer in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@ethersproject/bignumber/node_modules/bn.js/`,
      'ethers.cjs    Endo can import': 'OK',
      'ethers.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'ethers.cjs    Endo imports default': 'OK',
      'ethers.cjs    Node.js baseline': 'OK',
      'ethers.cjs    import resolution matches': 'OK',
      'fast-glob.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fast-glob/`,
  +   Cannot bundle: cannot follow module import path in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fast-glob/`,
      'fast-glob.cjs    Endo can import': 'OK',
      'fast-glob.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'fast-glob.cjs    Endo imports default': 'OK',
      'fast-glob.cjs    Node.js baseline': 'OK',
      'fast-glob.cjs    import resolution matches': 'OK',
  -   'is-array.cjs    Endo can bundle': `OK
  +   'is-array.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/is-array/ in language pre-cjs-json, module ./cases/is-array.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'is-array.cjs    Endo can import': 'OK',
      'is-array.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'is-array.cjs    Endo imports default': 'OK',
      'is-array.cjs    Node.js baseline': 'OK',
      'is-array.cjs    import resolution matches': 'OK',
      'json-rpc-engine.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "events" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@metamask/safe-event-emitter/`,
  +   Cannot bundle: cannot follow module import events in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@metamask/safe-event-emitter/`,
      'json-rpc-engine.cjs    Endo can import': 'OK',
      'json-rpc-engine.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'json-rpc-engine.cjs    Endo imports default': 'OK',
      'json-rpc-engine.cjs    Node.js baseline': 'OK',
      'json-rpc-engine.cjs    import resolution matches': 'OK',
      'keccak.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "events" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/keccak/node_modules/readable-stream/`,
  +   Cannot bundle: cannot follow module import stream in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/keccak/node_modules/readable-stream/`,
      'keccak.cjs    Endo can import': 'OK',
      'keccak.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'keccak.cjs    Endo imports default': 'OK',
      'keccak.cjs    Node.js baseline': 'OK',
      'keccak.cjs    import resolution matches': 'OK',
      'lodash.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/lodash/`,
  +   Cannot bundle: cannot follow module import util in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/lodash/`,
      'lodash.cjs    Endo can import': 'OK',
      'lodash.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'lodash.cjs    Endo imports default': 'OK',
      'lodash.cjs    Node.js baseline': 'OK',
      'lodash.cjs    import resolution matches': 'OK',
  -   'mime.cjs    Endo can bundle': `OK
  +   'mime.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./Mime.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/mime/ in language pre-cjs-json, module ./types/standard.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/mime/ in language pre-cjs-json, module ./types/other.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/mime/ in language pre-cjs-json, module ./index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/mime/ in language pre-cjs-json, module ./cases/mime.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'mime.cjs    Endo can import': 'OK',
      'mime.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'mime.cjs    Endo imports default': 'OK',
      'mime.cjs    Node.js baseline': 'OK',
      'mime.cjs    import resolution matches': 'OK',
  -   'multiformats.cjs    Endo can bundle': `OK
  +   'multiformats.cjs    Endo can bundle': `FAILED␊
  +   Failed to load module "./cases/multiformats.cjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
      'multiformats.cjs    Endo can import': `FAILED␊
      Failed to load module "./cases/multiformats.cjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
      'multiformats.cjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
      Failed to load module "./cases/multiformats.cjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
      'multiformats.cjs    Endo imports default': `FAILED␊
      Failed to load module "./cases/multiformats.cjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
      'multiformats.cjs    Node.js baseline': 'OK',
      'multiformats.cjs    import resolution matches': `FAILED␊
      Failed to load module "./cases/multiformats.cjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
  -   'polycrc.cjs    Endo can bundle': `OK
  +   'polycrc.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./polycrc.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/polycrc/ in language pre-cjs-json, module ./cases/polycrc.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'polycrc.cjs    Endo can import': 'OK',
      'polycrc.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'polycrc.cjs    Endo imports default': 'OK',
      'polycrc.cjs    Node.js baseline': 'OK',
      'polycrc.cjs    import resolution matches': 'OK',
      'prop-types.cjs    Endo can bundle': `FAILED␊
      Cannot read properties of undefined (reading 'index')`,
      'prop-types.cjs    Endo can import': 'OK',
      'prop-types.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'prop-types.cjs    Endo imports default': 'OK',
      'prop-types.cjs    Node.js baseline': 'OK',
      'prop-types.cjs    import resolution matches': 'OK',
  -   'punycode.cjs    Endo can bundle': `OK
  +   'punycode.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./cases/punycode.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'punycode.cjs    Endo can import': 'OK',
      'punycode.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'punycode.cjs    Endo imports default': 'OK',
      'punycode.cjs    Node.js baseline': 'OK',
      'punycode.cjs    import resolution matches': 'OK',
  -   'rc.cjs    Endo can bundle': `OK
  +   'rc.cjs    Endo can bundle': `FAILED␊
  +   Cannot bundle: cannot follow module import fs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rc/`,
      'rc.cjs    Endo can import': 'OK',
      'rc.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'rc.cjs    Endo imports default': 'OK',
      'rc.cjs    Node.js baseline': 'OK',
      'rc.cjs    import resolution matches': 'OK',
      'react-dom.cjs    Endo can bundle': `FAILED␊
      Cannot read properties of undefined (reading 'index')`,
      'react-dom.cjs    Endo can import': 'OK',
      'react-dom.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'react-dom.cjs    Endo imports default': 'OK',
      'react-dom.cjs    Node.js baseline': 'OK',
      'react-dom.cjs    import resolution matches': 'OK',
  -   'redux.cjs    Endo can bundle': `OK
  +   'redux.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./cases/redux.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'redux.cjs    Endo can import': 'OK',
      'redux.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'redux.cjs    Endo imports default': 'OK',
      'redux.cjs    Node.js baseline': 'OK',
      'redux.cjs    import resolution matches': 'OK',
  -   'sinon.cjs    Endo can bundle': `OK
  +   'sinon.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./cases/sinon.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'sinon.cjs    Endo can import': 'OK',
      'sinon.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'sinon.cjs    Endo imports default': 'OK',
      'sinon.cjs    Node.js baseline': 'OK',
      'sinon.cjs    import resolution matches': 'OK',
  -   'storage.cjs    Endo can bundle': `OK
  +   'storage.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/storage/ in language pre-cjs-json, module ./cases/storage.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'storage.cjs    Endo can import': 'OK',
      'storage.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'storage.cjs    Endo imports default': 'OK',
      'storage.cjs    Node.js baseline': 'OK',
      'storage.cjs    import resolution matches': 'OK',
      'typescript.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "perf_hooks" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/typescript/`,
  +   Cannot bundle: cannot follow module import perf_hooks in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/typescript/`,
      'typescript.cjs    Endo can import': 'OK',
      'typescript.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'typescript.cjs    Endo imports default': 'OK',
      'typescript.cjs    Node.js baseline': 'OK',
      'typescript.cjs    import resolution matches': 'OK',
  -   'uuid.cjs    Endo can bundle': `OK
  +   'uuid.cjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./cases/uuid.cjs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/ in language pre-cjs-json`,
      'uuid.cjs    Endo can import': 'OK',
      'uuid.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'uuid.cjs    Endo imports default': 'OK',
      'uuid.cjs    Node.js baseline': 'OK',
      'uuid.cjs    import resolution matches': 'OK',
      'web3-eth.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find file for internal module "." (with candidates ".") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/call-bind/`,
  +   Cannot bundle: cannot follow module import util in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/inherits/`,
  -   'web3-eth.cjs    Endo can import': `FAILED␊
  +   'web3-eth.cjs    Endo can import': `OK
  -   'web3-eth.cjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
  +   'web3-eth.cjs    Endo import * gets _at least_ the exports Node.js got': `OK
  -   'web3-eth.cjs    Endo imports default': `FAILED␊
  +   'web3-eth.cjs    Endo imports default': `OK
      'web3-eth.cjs    Node.js baseline': 'OK',
  -   'web3-eth.cjs    import resolution matches': `FAILED␊
  +   'web3-eth.cjs    import resolution matches': `OK
      'which.cjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/which/`,
  +   Cannot bundle: cannot follow module import path in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/which/`,
      'which.cjs    Endo can import': 'OK',
      'which.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'which.cjs    Endo imports default': 'OK',
      'which.cjs    Node.js baseline': 'OK',
      'which.cjs    import resolution matches': 'OK',
      'yargs.cjs    Endo can bundle': `FAILED␊
      Failed to load module "./cases/yargs.cjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (13 underlying failures: Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "url" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/escalade/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/escalade/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs-parser/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs-parser/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs-parser/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/y18n/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/y18n/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/y18n/`,
      'yargs.cjs    Endo can import': 'OK',
      'yargs.cjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'yargs.cjs    Endo imports default': 'OK',
      'yargs.cjs    Node.js baseline': 'OK',
      'yargs.cjs    import resolution matches': 'OK',
    }

  › file://tools/scaffold.mjs:283:11



  mjs › ALL

  Did not match snapshot

  Difference:

    {
  -   __FAILURE: 41,
  +   __FAILURE: 50,
  -   __SUCCESS: 181,
  +   __SUCCESS: 172,
      '_babel_types.mjs    Endo can bundle': `FAILED␊
      Cannot read properties of undefined (reading 'index')`,
      '_babel_types.mjs    Endo can import': 'OK',
      '_babel_types.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      '_babel_types.mjs    Endo imports default': 'OK',
      '_babel_types.mjs    Node.js baseline': 'OK',
      '_babel_types.mjs    import resolution matches': 'OK',
      '_ethersproject_random.mjs    Endo can bundle': 'OK',
      '_ethersproject_random.mjs    Endo can import': 'OK',
      '_ethersproject_random.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      '_ethersproject_random.mjs    Endo imports default': 'OK',
      '_ethersproject_random.mjs    Node.js baseline': 'OK',
      '_ethersproject_random.mjs    import resolution matches': 'OK',
  -   '_noble_hashes_crypto.mjs    Endo can bundle': `OK
  +   '_noble_hashes_crypto.mjs    Endo can bundle': `FAILED␊
  +   Cannot bundle: cannot follow module import crypto in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@noble/hashes/`,
      '_noble_hashes_crypto.mjs    Endo can import': 'OK',
      '_noble_hashes_crypto.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      '_noble_hashes_crypto.mjs    Endo imports default': 'OK',
      '_noble_hashes_crypto.mjs    Node.js baseline': 'OK',
      '_noble_hashes_crypto.mjs    import resolution matches': 'OK',
  -   '_noble_hashes_sha3.mjs    Endo can bundle': `OK
  +   '_noble_hashes_sha3.mjs    Endo can bundle': `FAILED␊
  +   Cannot bundle: cannot follow module import ./crypto in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
  -   '_noble_hashes_sha3.mjs    Endo can import': `OK
  +   '_noble_hashes_sha3.mjs    Endo can import': `FAILED␊
  +   Cannot find file for internal module "./crypto" (with candidates "./crypto", "./crypto.js", "./crypto/index.js") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
  -   '_noble_hashes_sha3.mjs    Endo import * gets _at least_ the exports Node.js got': `OK
  +   '_noble_hashes_sha3.mjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
  +   Cannot find file for internal module "./crypto" (with candidates "./crypto", "./crypto.js", "./crypto/index.js") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
  -   '_noble_hashes_sha3.mjs    Endo imports default': `OK
  +   '_noble_hashes_sha3.mjs    Endo imports default': `FAILED␊
  +   Cannot find file for internal module "./crypto" (with candidates "./crypto", "./crypto.js", "./crypto/index.js") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
      '_noble_hashes_sha3.mjs    Node.js baseline': 'OK',
  -   '_noble_hashes_sha3.mjs    import resolution matches': `OK
  +   '_noble_hashes_sha3.mjs    import resolution matches': `FAILED␊
  +   Cannot find file for internal module "./crypto" (with candidates "./crypto", "./crypto.js", "./crypto/index.js") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/`,
      'acorn.mjs    Endo can bundle': 'OK',
      'acorn.mjs    Endo can import': 'OK',
      'acorn.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'acorn.mjs    Endo imports default': 'OK',
      'acorn.mjs    Node.js baseline': 'OK',
      'acorn.mjs    import resolution matches': 'OK',
      'axios.mjs    Endo can bundle': `FAILED␊
  -   Cannot read properties of undefined (reading 'index')`,
  +   Cannot bundle: cannot follow module import http in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/axios/`,
      'axios.mjs    Endo can import': 'OK',
      'axios.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'axios.mjs    Endo imports default': 'OK',
      'axios.mjs    Node.js baseline': 'OK',
      'axios.mjs    import resolution matches': 'OK',
      'bignumber.js.mjs    Endo can bundle': 'OK',
      'bignumber.js.mjs    Endo can import': 'OK',
      'bignumber.js.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'bignumber.js.mjs    Endo imports default': 'OK',
      'bignumber.js.mjs    Node.js baseline': 'OK',
      'bignumber.js.mjs    import resolution matches': 'OK',
      'browser-resolve.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/browser-resolve/`,
  +   Cannot bundle: cannot follow module import fs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/browser-resolve/`,
      'browser-resolve.mjs    Endo can import': 'OK',
      'browser-resolve.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'browser-resolve.mjs    Endo imports default': 'OK',
      'browser-resolve.mjs    Node.js baseline': 'OK',
      'browser-resolve.mjs    import resolution matches': 'OK',
      'browserify.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/browserify/`,
  +   Cannot bundle: cannot follow module import path in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/browserify/`,
      'browserify.mjs    Endo can import': `FAILED␊
      Cannot find module 'process/browser.js'␊
      Add requireResolve to Endo Compartment Mapper readPowers.`,
      'browserify.mjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
      Cannot find module 'process/browser.js'␊
      Add requireResolve to Endo Compartment Mapper readPowers.`,
      'browserify.mjs    Endo imports default': `FAILED␊
      Cannot find module 'process/browser.js'␊
      Add requireResolve to Endo Compartment Mapper readPowers.`,
      'browserify.mjs    Node.js baseline': 'OK',
      'browserify.mjs    import resolution matches': `FAILED␊
      Cannot find module 'process/browser.js'␊
      Add requireResolve to Endo Compartment Mapper readPowers.`,
      'css-loader.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/postcss/`,
  +   Cannot bundle: cannot follow module import tty in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/picocolors/`,
      'css-loader.mjs    Endo can import': `FAILED␊
      Possible import expression rejected at file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/css-loader/dist/plugins/postcss-import-parser.js:158. (SES_IMPORT_REJECTED)`,
      'css-loader.mjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
      Possible import expression rejected at file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/css-loader/dist/plugins/postcss-import-parser.js:158. (SES_IMPORT_REJECTED)`,
      'css-loader.mjs    Endo imports default': `FAILED␊
      Possible import expression rejected at file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/css-loader/dist/plugins/postcss-import-parser.js:158. (SES_IMPORT_REJECTED)`,
      'css-loader.mjs    Node.js baseline': 'OK',
      'css-loader.mjs    import resolution matches': `FAILED␊
      Possible import expression rejected at file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/css-loader/dist/plugins/postcss-import-parser.js:158. (SES_IMPORT_REJECTED)`,
      'elliptic.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "buffer" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/elliptic/node_modules/bn.js/`,
  +   Cannot bundle: cannot follow module import buffer in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/elliptic/node_modules/bn.js/`,
      'elliptic.mjs    Endo can import': 'OK',
      'elliptic.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'elliptic.mjs    Endo imports default': 'OK',
      'elliptic.mjs    Node.js baseline': 'OK',
      'elliptic.mjs    import resolution matches': 'OK',
      'elliptic_lib_elliptic_curves.js.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "buffer" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/elliptic/node_modules/bn.js/`,
  +   Cannot bundle: cannot follow module import util in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/inherits/`,
      'elliptic_lib_elliptic_curves.js.mjs    Endo can import': 'OK',
      'elliptic_lib_elliptic_curves.js.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'elliptic_lib_elliptic_curves.js.mjs    Endo imports default': 'OK',
      'elliptic_lib_elliptic_curves.js.mjs    Node.js baseline': 'OK',
      'elliptic_lib_elliptic_curves.js.mjs    import resolution matches': 'OK',
      'eslint.mjs    Endo can bundle': `FAILED␊
  -   Failed to load module "./cases/eslint.mjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (49 underlying failures: Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "os" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@humanwhocodes/config-array/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/import-fresh/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/minimatch/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint/node_modules/glob-parent/, Cannot find external module "os" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint/node_modules/glob-parent/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/file-entry-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/file-entry-cache/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/doctrine/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/`,
  +   Failed to load module "./cases/eslint.mjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (51 underlying failures: Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "os" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint-scope/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/debug/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@humanwhocodes/config-array/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@eslint/eslintrc/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/import-fresh/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/minimatch/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint/node_modules/glob-parent/, Cannot find external module "os" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/eslint/node_modules/glob-parent/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/file-entry-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/file-entry-cache/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "module" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/resolve-from/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/flat-cache/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/doctrine/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rimraf/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/inherits/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/glob/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fs.realpath/`,
      'eslint.mjs    Endo can import': `FAILED␊
      Cannot read properties of undefined (reading 'acorn')`,
      'eslint.mjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
      Cannot read properties of undefined (reading 'acorn')`,
      'eslint.mjs    Endo imports default': `FAILED␊
      Cannot read properties of undefined (reading 'acorn')`,
      'eslint.mjs    Node.js baseline': 'OK',
      'eslint.mjs    import resolution matches': `FAILED␊
      Cannot read properties of undefined (reading 'acorn')`,
  -   'ethereumjs-common.mjs    Endo can bundle': `OK
  +   'ethereumjs-common.mjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./dist/chains/mainnet.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/ropsten.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/rinkeby.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/kovan.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/goerli.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/chains/index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language pre-cjs-json, module ./dist/hardforks/chainstart.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/homestead.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/dao.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/tangerineWhistle.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/spuriousDragon.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/byzantium.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/constantinople.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/petersburg.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/istanbul.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/muirGlacier.json in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language json, module ./dist/hardforks/index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language pre-cjs-json, module ./dist/index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-common/ in language pre-cjs-json`,
      'ethereumjs-common.mjs    Endo can import': 'OK',
      'ethereumjs-common.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'ethereumjs-common.mjs    Endo imports default': 'OK',
      'ethereumjs-common.mjs    Node.js baseline': 'OK',
      'ethereumjs-common.mjs    import resolution matches': 'OK',
      'ethereumjs-util.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "buffer" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-util/`,
  +   Cannot bundle: cannot follow module import buffer in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/ethereumjs-util/`,
      'ethereumjs-util.mjs    Endo can import': 'OK',
      'ethereumjs-util.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'ethereumjs-util.mjs    Endo imports default': 'OK',
      'ethereumjs-util.mjs    Node.js baseline': 'OK',
      'ethereumjs-util.mjs    import resolution matches': 'OK',
      'ethers.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "buffer" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@ethersproject/bignumber/node_modules/bn.js/`,
  +   Cannot bundle: cannot follow module import buffer in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@ethersproject/bignumber/node_modules/bn.js/`,
      'ethers.mjs    Endo can import': 'OK',
      'ethers.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'ethers.mjs    Endo imports default': 'OK',
      'ethers.mjs    Node.js baseline': 'OK',
      'ethers.mjs    import resolution matches': 'OK',
      'fast-glob.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fast-glob/`,
  +   Cannot bundle: cannot follow module import path in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/fast-glob/`,
      'fast-glob.mjs    Endo can import': 'OK',
      'fast-glob.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'fast-glob.mjs    Endo imports default': 'OK',
      'fast-glob.mjs    Node.js baseline': 'OK',
      'fast-glob.mjs    import resolution matches': 'OK',
  -   'is-array.mjs    Endo can bundle': `OK
  +   'is-array.mjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/is-array/ in language pre-cjs-json`,
      'is-array.mjs    Endo can import': 'OK',
      'is-array.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'is-array.mjs    Endo imports default': 'OK',
      'is-array.mjs    Node.js baseline': 'OK',
      'is-array.mjs    import resolution matches': 'OK',
      'json-rpc-engine.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "events" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@metamask/safe-event-emitter/`,
  +   Cannot bundle: cannot follow module import events in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/@metamask/safe-event-emitter/`,
      'json-rpc-engine.mjs    Endo can import': 'OK',
      'json-rpc-engine.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'json-rpc-engine.mjs    Endo imports default': 'OK',
      'json-rpc-engine.mjs    Node.js baseline': 'OK',
      'json-rpc-engine.mjs    import resolution matches': 'OK',
      'keccak.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "events" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/keccak/node_modules/readable-stream/`,
  +   Cannot bundle: cannot follow module import stream in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/keccak/node_modules/readable-stream/`,
      'keccak.mjs    Endo can import': 'OK',
      'keccak.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'keccak.mjs    Endo imports default': 'OK',
      'keccak.mjs    Node.js baseline': 'OK',
      'keccak.mjs    import resolution matches': 'OK',
      'lodash.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/lodash/`,
  +   Cannot bundle: cannot follow module import util in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/lodash/`,
      'lodash.mjs    Endo can import': 'OK',
      'lodash.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'lodash.mjs    Endo imports default': 'OK',
      'lodash.mjs    Node.js baseline': 'OK',
      'lodash.mjs    import resolution matches': 'OK',
      'lowdb.mjs    Endo can bundle': `FAILED␊
      Failed to load module "./cases/lowdb.mjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (5 underlying failures: Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/lowdb/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/lowdb/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/lowdb/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/steno/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/steno/`,
      'lowdb.mjs    Endo can import': 'OK',
      'lowdb.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'lowdb.mjs    Endo imports default': 'OK',
      'lowdb.mjs    Node.js baseline': 'OK',
      'lowdb.mjs    import resolution matches': 'OK',
  -   'mime.mjs    Endo can bundle': `OK
  +   'mime.mjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./Mime.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/mime/ in language pre-cjs-json, module ./types/standard.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/mime/ in language pre-cjs-json, module ./types/other.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/mime/ in language pre-cjs-json, module ./index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/mime/ in language pre-cjs-json`,
      'mime.mjs    Endo can import': 'OK',
      'mime.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'mime.mjs    Endo imports default': 'OK',
      'mime.mjs    Node.js baseline': 'OK',
      'mime.mjs    import resolution matches': 'OK',
  -   'multiformats.mjs    Endo can bundle': `OK
  +   'multiformats.mjs    Endo can bundle': `FAILED␊
  +   Failed to load module "./cases/multiformats.mjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
      'multiformats.mjs    Endo can import': `FAILED␊
      Failed to load module "./cases/multiformats.mjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
      'multiformats.mjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
      Failed to load module "./cases/multiformats.mjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
      'multiformats.mjs    Endo imports default': `FAILED␊
      Failed to load module "./cases/multiformats.mjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
      'multiformats.mjs    Node.js baseline': 'OK',
      'multiformats.mjs    import resolution matches': `FAILED␊
      Failed to load module "./cases/multiformats.mjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (8 underlying failures: 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (33:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0), 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)`,
  -   'polycrc.mjs    Endo can bundle': `OK
  +   'polycrc.mjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./polycrc.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/polycrc/ in language pre-cjs-json`,
      'polycrc.mjs    Endo can import': 'OK',
      'polycrc.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'polycrc.mjs    Endo imports default': 'OK',
      'polycrc.mjs    Node.js baseline': 'OK',
      'polycrc.mjs    import resolution matches': 'OK',
      'prop-types.mjs    Endo can bundle': `FAILED␊
      Cannot read properties of undefined (reading 'index')`,
      'prop-types.mjs    Endo can import': 'OK',
      'prop-types.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'prop-types.mjs    Endo imports default': 'OK',
      'prop-types.mjs    Node.js baseline': 'OK',
      'prop-types.mjs    import resolution matches': 'OK',
      'punycode.mjs    Endo can bundle': 'OK',
      'punycode.mjs    Endo can import': 'OK',
      'punycode.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'punycode.mjs    Endo imports default': 'OK',
      'punycode.mjs    Node.js baseline': 'OK',
      'punycode.mjs    import resolution matches': 'OK',
  -   'rc.mjs    Endo can bundle': `OK
  +   'rc.mjs    Endo can bundle': `FAILED␊
  +   Cannot bundle: cannot follow module import fs in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/rc/`,
      'rc.mjs    Endo can import': 'OK',
      'rc.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'rc.mjs    Endo imports default': 'OK',
      'rc.mjs    Node.js baseline': 'OK',
      'rc.mjs    import resolution matches': 'OK',
      'react-dom.mjs    Endo can bundle': `FAILED␊
      Cannot read properties of undefined (reading 'index')`,
      'react-dom.mjs    Endo can import': 'OK',
      'react-dom.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'react-dom.mjs    Endo imports default': 'OK',
      'react-dom.mjs    Node.js baseline': 'OK',
      'react-dom.mjs    import resolution matches': 'OK',
      'redux.mjs    Endo can bundle': 'OK',
      'redux.mjs    Endo can import': 'OK',
      'redux.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'redux.mjs    Endo imports default': 'OK',
      'redux.mjs    Node.js baseline': 'OK',
      'redux.mjs    import resolution matches': 'OK',
      'sinon.mjs    Endo can bundle': 'OK',
      'sinon.mjs    Endo can import': 'OK',
      'sinon.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'sinon.mjs    Endo imports default': 'OK',
      'sinon.mjs    Node.js baseline': 'OK',
      'sinon.mjs    import resolution matches': 'OK',
  -   'storage.mjs    Endo can bundle': `OK
  +   'storage.mjs    Endo can bundle': `FAILED␊
  +   Can only bundle applications that only have ESM (.mjs-type) modules, got module ./index.js in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/storage/ in language pre-cjs-json`,
      'storage.mjs    Endo can import': 'OK',
      'storage.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'storage.mjs    Endo imports default': 'OK',
      'storage.mjs    Node.js baseline': 'OK',
      'storage.mjs    import resolution matches': 'OK',
      'typescript.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "perf_hooks" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/typescript/`,
  +   Cannot bundle: cannot follow module import perf_hooks in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/typescript/`,
      'typescript.mjs    Endo can import': 'OK',
      'typescript.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'typescript.mjs    Endo imports default': 'OK',
      'typescript.mjs    Node.js baseline': 'OK',
      'typescript.mjs    import resolution matches': 'OK',
      'uuid.mjs    Endo can bundle': 'OK',
      'uuid.mjs    Endo can import': 'OK',
      'uuid.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'uuid.mjs    Endo imports default': 'OK',
      'uuid.mjs    Node.js baseline': 'OK',
      'uuid.mjs    import resolution matches': 'OK',
      'web3-eth.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find file for internal module "." (with candidates ".") in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/call-bind/`,
  +   Cannot bundle: cannot follow module import util in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/inherits/`,
  -   'web3-eth.mjs    Endo can import': `FAILED␊
  +   'web3-eth.mjs    Endo can import': `OK
  -   'web3-eth.mjs    Endo import * gets _at least_ the exports Node.js got': `FAILED␊
  +   'web3-eth.mjs    Endo import * gets _at least_ the exports Node.js got': `OK
  -   'web3-eth.mjs    Endo imports default': `FAILED␊
  +   'web3-eth.mjs    Endo imports default': `OK
      'web3-eth.mjs    Node.js baseline': 'OK',
  -   'web3-eth.mjs    import resolution matches': `FAILED␊
  +   'web3-eth.mjs    import resolution matches': `OK
      'which.mjs    Endo can bundle': `FAILED␊
  -   Cannot bundle: encountered deferredError Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/which/`,
  +   Cannot bundle: cannot follow module import path in compartment file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/which/`,
      'which.mjs    Endo can import': 'OK',
      'which.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'which.mjs    Endo imports default': 'OK',
      'which.mjs    Node.js baseline': 'OK',
      'which.mjs    import resolution matches': 'OK',
      'yargs.mjs    Endo can bundle': `FAILED␊
      Failed to load module "./cases/yargs.mjs" in package "file:///home/naugtur/repo/endo-e2e-tests/test-imports/" (13 underlying failures: Cannot find external module "assert" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "url" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/escalade/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/escalade/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs-parser/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs-parser/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/yargs-parser/, Cannot find external module "fs" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/y18n/, Cannot find external module "path" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/y18n/, Cannot find external module "util" in package file:///home/naugtur/repo/endo-e2e-tests/test-imports/node_modules/y18n/`,
      'yargs.mjs    Endo can import': 'OK',
      'yargs.mjs    Endo import * gets _at least_ the exports Node.js got': 'OK',
      'yargs.mjs    Endo imports default': 'OK',
      'yargs.mjs    Node.js baseline': 'OK',
      'yargs.mjs    import resolution matches': 'OK',
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants