diff --git a/lib/document.js b/lib/document.js index a277e7ac..74c3fd3e 100644 --- a/lib/document.js +++ b/lib/document.js @@ -2,7 +2,10 @@ import React from 'react' import htmlescape from 'htmlescape' import readPkgUp from 'read-pkg-up' -const pkg = readPkgUp.sync({normalize: false}).pkg +const { pkg } = readPkgUp.sync({ + cwd: __dirname, + normalize: false +}) export default ({ head, css, html, data, dev, staticMarkup, cdn }) => { return