JedWatson / react-tappable

Tappable component for React
http://jedwatson.github.io/react-tappable/
MIT License
863 stars 90 forks source link

add Object.assign transform #122

Open ianwith opened 6 years ago

ianwith commented 6 years ago

Problem

Object.assign breaks on iOS versions < 9

Solution

  1. add babel-plugin-transform-object-assign
  2. npm run build
dcousens commented 6 years ago

@ianwith can't you do this yourself for your own project? :/

ianwith commented 6 years ago

I'm using babel-runtime in my project. Am I supposed to change configuration like this?

Before

{
  test: /\.(js|jsx)$/,
  exclude: /node_modules/,
  use: 'babel-loader'
},

After

{
  test: /\.(js|jsx)$/,
  include: [
    path.resolve(__dirname, 'src'),
    path.resolve(__dirname, 'node_modules/react-tappable')
  ],
  use: 'babel-loader'
},
dcousens commented 6 years ago

@ianwith depends on how you are compiling. Did the above succeed?