Fix m.version to not depend on package.json (#2464)

* Fix `m.version` to not depend on `package.json`

Created an accidental breaking change.

* Update changelog

* Fix a failing test
This commit is contained in:
Isiah Meadows 2019-07-09 19:26:00 -04:00 committed by GitHub
parent 1f4b2cf49a
commit 1434ba313f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 15 deletions

View file

@ -320,11 +320,4 @@ o.spec("bundler", function() {
remove("a.js")
remove("b.js")
})
o("reads package.json keys", function() {
write("a.js", 'var b = require("./package.json").version')
o(bundle(ns + "a.js")).equals(";(function() {\nvar b = " + JSON.stringify(pkg.version) + "\n}());")
remove("a.js")
})
})