diff --git a/dune b/dune index 92b2123c9..55cdae53f 100644 --- a/dune +++ b/dune @@ -19,5 +19,9 @@ string_interpolation)) (melange.emit - (target emotion-hash-js) - (libraries emotion_hash)) + (target hash-dist-js) + (libraries emotion_hash) + (module_systems + (es6 es6.js) + (commonjs cjs.js)) + (runtime_deps packages/emotion-hash/package.json)) diff --git a/packages/emotion-hash/_test/original.js b/packages/emotion-hash/_test/original.js index 2bf5229bb..b98e8533e 100644 --- a/packages/emotion-hash/_test/original.js +++ b/packages/emotion-hash/_test/original.js @@ -56,7 +56,6 @@ function murmur2(str) { (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0xe995) << 16) } - // Do a few final mixes of the hash to ensure the last few // bytes are well-incorporated. diff --git a/packages/emotion-hash/package.json b/packages/emotion-hash/package.json new file mode 100644 index 000000000..6aebfe6c4 --- /dev/null +++ b/packages/emotion-hash/package.json @@ -0,0 +1,4 @@ +{ + "name": "styled-ppx-emotion-hash-js", + "main": "../../node_modules/styled-ppx.emotion-hash/hash.es6.js" +}