Skip to content

2.5.8

Compare
Choose a tag to compare
@matthewp matthewp released this 28 Dec 17:09
· 51 commits to master since this release

This is a patch release, adding support for steal's eval: 'script' metadata option.

A global module like:

function someFunction() {

}

That does not explicitly set its globals won't work in Steal 1.x without the eval: 'script' option, because Steal 1.x uses new Function for eval, and this creates a closure. This option causes script eval, which won't have the closure.

"steal": {
  "meta": {
    "someModule": {
      "format": "global",
      "eval": "script"
    }
  }
}