Hello. I’m trying to package react-equalizer
, but run into problems when using the packaged results. The console give me exports is not defined
. It happens right at the beginning of react-equalizer.inc.js:
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
I’m a total beginner at this. No pointers could be too basic. 😃
@pez this library is not intended to be consumed by the browser directly, it assumes you're using some kinda code bundler / transcompiler compatible with CommonJS
I see some packages use webpack. Is that a bundler?
yes, that's one of the popular ones
Thanks! I’ll give it a try.
I'm afraid you'll either have to apply a patch to strip the CommonJS layer or ask the author nicely to support direct browser consumption to package it into CLJSJS
good luck~
I’ll need it. 😃
this is one of the biggest problems I've had using cljs... we use a different module management system than the rest of the JS community and they are not compatible.