chore: remove `@agoric/babel-standalone` vetted shim
MODIFY
packages/cli/package.json
packages/cli/package.json
"test": "exit 0"
},
"dependencies": {
- "@agoric/babel-standalone": "^7.14.3",
"@endo/compartment-mapper": "^0.7.0",
"@endo/daemon": "^0.1.7",
"@endo/eventual-send": "^0.14.7",

MODIFY
packages/cli/src/endo.js
packages/cli/src/endo.js
/* global process */
// Establish a perimeter:
-import '@agoric/babel-standalone';
import 'ses';
import '@endo/eventual-send/shim.js';
import '@endo/lockdown/commit.js';

MODIFY
packages/daemon/package.json
packages/daemon/package.json
"test": "ava"
},
"dependencies": {
- "@agoric/babel-standalone": "^7.14.3",
"@endo/captp": "^2.0.2",
"@endo/eventual-send": "^0.14.7",
"@endo/far": "^0.1.8",

MODIFY
packages/daemon/src/daemon.js
packages/daemon/src/daemon.js
/* global process, setTimeout */
// Establish a perimeter:
-import '@agoric/babel-standalone';
import 'ses';
import '@endo/eventual-send/shim.js';
import '@endo/lockdown/commit.js';

MODIFY
packages/daemon/src/worker.js
packages/daemon/src/worker.js
/* global process */
// Establish a perimeter:
-import '@agoric/babel-standalone';
import 'ses';
import '@endo/eventual-send/shim.js';
import '@endo/lockdown/commit.js';

MODIFY
packages/daemon/test/test-endo.js
packages/daemon/test/test-endo.js
/* global process */
// Establish a perimeter:
-import '@agoric/babel-standalone';
import 'ses';
import '@endo/eventual-send/shim.js';
import '@endo/lockdown/commit-debug.js';

MODIFY
packages/init/package.json
packages/init/package.json
"ava": "^3.12.1"
},
"dependencies": {
- "@agoric/babel-standalone": "^7.14.3",
"@endo/eventual-send": "^0.14.7",
"@endo/lockdown": "^0.1.8"
},

MODIFY
packages/init/pre-bundle-source.js
packages/init/pre-bundle-source.js
// pre-bundle-source.js - initialization to use @endo/bundle-source
+// DEPRECATED: no longer necessary, imports of this module can be replaced with
+// import '@endo/init';
+// or if further vetted shim initialization is needed:
+// import '@endo/init/pre.js';
import './pre.js';
-
-// TODO Remove babel-standalone preinitialization
-// https://github.com/endojs/endo/issues/768
-import '@agoric/babel-standalone';

MODIFY
packages/ses-integration-test/scaffolding/rollup/test-rollup.config.js
packages/ses-integration-test/scaffolding/rollup/test-rollup.config.js
@@ -15,12 +15,7 @@ export default [
],
plugins: [
resolve({
- only: [
- 'ses',
- '@agoric/make-hardener',
- '@agoric/transform-module',
- '@agoric/babel-standalone',
- ],
+ only: ['ses', '@agoric/make-hardener', '@agoric/transform-module'],
}),
commonjs(),
],

MODIFY
packages/ses/test262/make-importer.js.SKIP
packages/ses/test262/make-importer.js.SKIP
@@ -8,12 +8,10 @@ import {
makeModuleTransformer,
makeModuleAnalyzer,
} from '../src/transforms.js';
-// eslint-disable-next-line import/no-extraneous-dependencies
-import * as babelCore from '@babel/core';
import makeImporter, * as mi from '@agoric/make-importer';
-const typeAnalyzers = { module: makeModuleAnalyzer(babelCore) };
+const typeAnalyzers = { module: makeModuleAnalyzer() };
test262Runner({
testDirs: [
@@ -130,7 +128,7 @@ test262Runner({
analyze: mi.makeTypeAnalyzer(typeAnalyzers),
rootLinker: mi.makeEvaluateLinker(evaluateProgram),
});
- transforms[0] = makeModuleTransformer(babelCore, importer);
+ transforms[0] = makeModuleTransformer(null, importer);
await importer(
{ specifier: testInfo.relativePath, referrer: `${testInfo.rootUrl}/` },

chore: remove `@agoric/babel-standalone` vetted shim