diff --git a/src/builder/webpack/config.node.js b/src/builder/webpack/config.node.js index 9665394a3..f47e92d56 100644 --- a/src/builder/webpack/config.node.js +++ b/src/builder/webpack/config.node.js @@ -20,6 +20,10 @@ const defaultExternals = [ // to not bundle all deps in the static build (for perf) // the problem is that if people rely on node_modules for stuff // like css, this breaks their build. + // + // Glamor integration + "glamor", + "glamor/server", ] const sourceMapSupport = require.resolve("source-map-support/register") diff --git a/src/components/Html/__tests__/__snapshots__/index.js.snap b/src/components/Html/__tests__/__snapshots__/index.js.snap index 9b811c66a..ef820b1d9 100644 --- a/src/components/Html/__tests__/__snapshots__/index.js.snap +++ b/src/components/Html/__tests__/__snapshots__/index.js.snap @@ -1,4 +1,4 @@ -exports[`test should render Html componnent 1`] = ` +exports[`test should render Html component 1`] = ` @@ -21,11 +21,71 @@ exports[`test should render Html componnent 1`] = ` rel="stylesheet" /> -
- - + `) diff --git a/src/static/url-as-html.js b/src/static/url-as-html.js index 126cc6cd1..a75d4986e 100644 --- a/src/static/url-as-html.js +++ b/src/static/url-as-html.js @@ -64,22 +64,16 @@ export default function( /* eslint-disable react/no-multi-comp */ - const renderBody = () => { - const body = render( - - - - - - ) - - return ( -
- ) - } + const renderBody = () => render( + + + + + + ) const renderScript = () => { if (options.clientScripts) {