mapd-crossfilter stopped working after upgrading to babel7 and webpack4
sandipp opened this issue · comments
🪲 bug
- Operating System and version:
OS X 10.14.4
- Browser and version:
Chrome 73 on macOS (Mojave)
- Steps to reproduce (including dashboard link): Upgraded React application configuration by using newer version of
babel7
andwebpack4
- Description of issue:
mapd-crossfilter
is failing with the following issue-
TypeError: Cannot set property 'resultCache' of undefined
(function (exports) {
crossfilter.version = "1.3.11";
exports.resultCache = resultCache;
...
This is my babel configuration -
"babel": {
"plugins": [
"add-module-exports",
"@babel/plugin-syntax-dynamic-import",
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": false
}
]
],
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
],
[
"react-app",
{
"helpers": false,
"absoluteRuntime": false
}
]
]
}
And this is my webpack configuration -
https://gist.github.com/sandipp/282bbbc1d23e6e9c2d8e2b01dc1077d7
Did you ever find a way to get around this issue? I am running into the same thing
@paradom Yeah, I did hacky fix changing into the library exports
function.
I am not really sure what you mean, would it be possible to show me what you changed?