message: Unify .module JS builds
  We now automatically extract the module name to form an exports
  statement from the UMD declaration.
diff: @@ -112,10 +112,6 @@ js/meshopt_decoder.js: build/decoder_base.wasm build/decoder_simd.wasm
  sed -i "s#\(var wasm_base = \)\".*\";#\\1\"$$(cat build/decoder_base.wasm | python3 tools/wasmpack.py)\";#" $@
  sed -i "s#\(var wasm_simd = \)\".*\";#\\1\"$$(cat build/decoder_simd.wasm | python3 tools/wasmpack.py)\";#" $@
  -js/meshopt_decoder.module.js: js/meshopt_decoder.js
  - sed '/UMD-style export/,$$d' <$< >$@
  - echo "export { MeshoptDecoder };" >>$@
  -
  build/encoder.wasm: $(WASM_ENCODER_SOURCES)
  @mkdir -p build
  $(WASMCC) $^ $(WASM_FLAGS) $(patsubst %,$(WASM_EXPORT_PREFIX)=%,$(WASM_ENCODER_EXPORTS)) -lc -o $@
  @@ -124,10 +120,6 @@ js/meshopt_encoder.js: build/encoder.wasm
  sed -i "s#Built with clang.*#Built with $$($(WASMCC) --version | head -n 1)#" $@
  sed -i "s#\(var wasm = \)\".*\";#\\1\"$$(cat build/encoder.wasm | python3 tools/wasmpack.py)\";#" $@
  -js/meshopt_encoder.module.js: js/meshopt_encoder.js
  - sed '/UMD-style export/,$$d' <$< >$@
  - echo "export { MeshoptEncoder };" >>$@
  -
  build/simplifier.wasm: $(WASM_SIMPLIFIER_SOURCES)
  @mkdir -p build
  $(WASMCC) $^ $(WASM_FLAGS) $(patsubst %,$(WASM_EXPORT_PREFIX)=%,$(WASM_SIMPLIFIER_EXPORTS)) -lc -o $@
  @@ -136,9 +128,9 @@ js/meshopt_simplifier.js: build/simplifier.wasm
  sed -i "s#Built with clang.*#Built with $$($(WASMCC) --version | head -n 1)#" $@
  sed -i "s#\(var wasm = \)\".*\";#\\1\"$$(cat build/simplifier.wasm | python3 tools/wasmpack.py)\";#" $@
  -js/meshopt_simplifier.module.js: js/meshopt_simplifier.js
  +js/%.module.js: js/%.js
  sed '/UMD-style export/,$$d' <$< >$@
  - echo "export { MeshoptSimplifier };" >>$@
  + sed -n "s#\s*module.exports = \(.*\);#export { \\1 };#p" <$< >>$@
  $(EXECUTABLE): $(DEMO_OBJECTS) $(LIBRARY)
  $(CXX) $^ $(LDFLAGS) -o $@
  