Skip to content

Commit

Permalink
--post-js file for ES6 export support #7, update essentiajstools.js
Browse files Browse the repository at this point in the history
  • Loading branch information
albincorreya committed Jan 21, 2020
1 parent 10de1ca commit 8e322e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/js/essentia.jstools.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

/*
Class with utility methods to use essentia.js
*/
class EssentiaJsTools {
export class EssentiaJsTools {

constructor(essentiaWasmModule) {
this._module = essentiaWasmModule;
Expand Down Expand Up @@ -35,6 +34,3 @@ class EssentiaJsTools {
// add your essentia.js utility funcs here

}


export { EssentiaJsTools };
4 changes: 2 additions & 2 deletions src/js/wasm.module.post.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// EXPORT_ES6 option does not work as described at
// https://github.com/kripken/emscripten/issues/6284, so we have to
// manually add this by '--post-js' setting when the Emscripten compilation.
// https://github.com/emscripten-core/emscripten/issues/6284, so we have to
// manually add this to the final builds.
export default Module;

0 comments on commit 8e322e3

Please sign in to comment.