diff --git a/assets/js/like.jsx b/assets/js/like.jsx index d0ec61e..96c60f3 100644 --- a/assets/js/like.jsx +++ b/assets/js/like.jsx @@ -1,6 +1,6 @@ // Note: We're using the CDN in "production". import * as React from 'react' -import * as ReactDOM from "react-dom"; +import * as ReactDOM from 'react-dom'; // A simple React JSX component. class LikeButton extends React.Component { diff --git a/assets/js/main.js b/assets/js/main.js index ac34ac9..9ac34fb 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -13,13 +13,13 @@ import { hello4 } from './lib'; import * as params from '@params'; // https://github.com/gohugoio/hugo/issues/7948 -import { helloNodeModules } from 'mynodemod'; +// TODO(bep) make this work in Hugo integration tests import { helloNodeModules } from 'mynodemod'; window.hello1 = hello1; window.hello2 = hello2; window.hello3 = hello3; window.hello4 = hello4; window.hello6 = hello6; -window.helloNodeModules = helloNodeModules; +// TODO(bep) make this work in Hugo integration tests window.helloNodeModules = helloNodeModules; window.data = data; window.params = params; diff --git a/assets/js/shims/react-dom.js b/assets/js/shims/react-dom.js index 2591e51..178ac9e 100644 --- a/assets/js/shims/react-dom.js +++ b/assets/js/shims/react-dom.js @@ -1 +1 @@ -export let ReactDOM = window.ReactDOM; +module.exports = window.ReactDOM; diff --git a/assets/js/shims/react.js b/assets/js/shims/react.js index 705c323..22312fb 100644 --- a/assets/js/shims/react.js +++ b/assets/js/shims/react.js @@ -1 +1 @@ -export let React = window.React; +module.exports = window.React; diff --git a/layouts/index.html b/layouts/index.html index d31e2c9..24c16bb 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -25,7 +25,7 @@

  • -
  • +