use realms-shim submodule
MODIFY
.eslintignore
.eslintignore
-# Proposal Realms
-/proposal-realms
+# Realms Shim
+/realms-shim
/dist/
/src/stringifiedBundle

MODIFY
.gitmodules
.gitmodules
-[submodule "proposal-realms"]
- path = proposal-realms
- url = https://github.com/tc39/proposal-realms.git
+[submodule "realms-shim"]
+ path = realms-shim
+ url = https://github.com/Agoric/realms-shim.git

MODIFY
.prettierignore
.prettierignore
-# Proposal Realms
-/proposal-realms
\ No newline at end of file
+# Realms Shim
+/realms-shim

MODIFY
README.md
README.md
@@ -24,7 +24,7 @@ Derived from the Caja project, https://github.com/google/caja/wiki/SES .
Still under development: do not use for production systems yet, there are
known security holes that need to be closed.
-Incorporates (as a git submodule) the Realms shim from
+Incorporates (as a git submodule) the [Realms shim](https://github.com/Agoric/realms-shim), which is a TC39 proposal spec here:
https://github.com/tc39/proposal-realms .
### Install

MODIFY
src/index.js
src/index.js
// See the License for the specific language governing permissions and
// limitations under the License.
+import Realm from '../realms-shim/src/realm';
+
import { createSESWithRealmConstructor } from './bundle/index';
import { creatorStrings } from './stringifiedBundle';
-import Realm from '../proposal-realms/shim/src/realm';
const SES = createSESWithRealmConstructor(creatorStrings, Realm);
export default SES;

use realms-shim submodule