aircall / aircall-everywhere

SDK to embed and communicate to Aircall phone in any web page
https://aircall.github.io/aircall-everywhere
25 stars 16 forks source link

module needs transpiling to es5 #10

Open sawyna opened 5 years ago

sawyna commented 5 years ago

Using aircall-everywhere npm module requires the user to transpile the code to es5 for uglifyjs plugin to work. Reference.

Currently I use the above suggested approach allowing my babel transpile to include aircall-everywhere module like this.

rules: [
            {
                test: /\.js*$/,
                exclude: /node_modules\/(?!(aircall-everywhere))/,
                loader: 'babel-loader',
                query: {
                    presets: ['env', 'react'],
                    "plugins": ["transform-object-rest-spread"]
                }
            },

Rest of my webpack config follows

It would be nice to transpile the code to es5 and then publish to npm.

hereismass commented 5 years ago

Thanks for the message. I'll look into it