Closed tvildo closed 3 years ago
Why is that nececrry
Sorry it was my mistake, We can just close this pull request.
long stroy: I was having a issue to use this module in ie11 as it is transforming ts in es2015. To fix this issues Instead I modified webpack config like this:
{
test: /\.jsx?$/,
exclude: function (modulePath) {
const nodeMod = path.resolve(__dirname, 'node_modules');
const except = [
path.resolve(nodeMod, "react-xarrows"),
];
if (modulePath.startsWith(nodeMod)) {
if (except.some(x => modulePath.startsWith(x))) {
console.log('transforming_module', modulePath);
return false;
}
return true;
}
return false;
},
use: {
loader: 'babel-loader',
options: {
presets: [
['@babel/preset-env', {
targets: {
"browsers": [
"last 2 versions",
"IE 11"
]
},
useBuiltIns: false,
modules: "commonjs"
}]
],
plugins: ['@babel/plugin-transform-runtime']
}
}
},
Closed as it is not required as explained above
change target as es5 package