react-tappable icon indicating copy to clipboard operation
react-tappable copied to clipboard

add Object.assign transform

Open ianwith opened this issue 7 years ago • 3 comments

Problem

Object.assign breaks on iOS versions < 9

Solution

  1. add babel-plugin-transform-object-assign
  2. npm run build

ianwith avatar Apr 23 '18 11:04 ianwith

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

dcousens avatar Apr 23 '18 11:04 dcousens

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'
},

ianwith avatar Apr 24 '18 08:04 ianwith

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

dcousens avatar Apr 29 '18 21:04 dcousens