Skip to content

The minified build is broken #60

@evanw

Description

@evanw

Repro:

  1. Check out v1.1.2.
  2. Follow the instructions to build the shim.
  3. Create a html file containing this:
<body></body>
<script src="dist/realms-shim.umd.min.js"></script>
<script>Realm.makeRootRealm()</script>
  1. Open it.

Unexpected: Realm.makeRootRealm() crashes with ReferenceError: Z is not defined.

This is because the minifier is minifying the name globalEval in repairFunctions, which is then converted to a string and joined with a string that defines globalEval.

This is also a problem with v1.1.1 but not with v1.1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions