Rematch: Look into using rollup for builds

Created on 2 Nov 2017  路  2Comments  路  Source: rematch/rematch

All 2 comments

Ran into an issue with bundling the babel polyfill.

Issue:

  • generators need to work
  • transform-runtime doesn't work on react-native
  • babel polyfill is heavy, and causes issues if loaded more than once
  • babel polyfill is not easy to load with rollup

I'm not as yet sure what the best solution is. But it should:

  • [x] load generators & other es2015+ features
  • [ ] be small as possible

May no longer be necessary. Now builds alright on react native with a subset of "babel-transform".

The key is in .babelrc:

["transform-runtime", {
      "polyfill": false,
      "regenerator": true
    }]
Was this page helpful?
0 / 5 - 0 ratings

Related issues

sospedra picture sospedra  路  3Comments

huyansheng3 picture huyansheng3  路  3Comments

ShMcK picture ShMcK  路  6Comments

canyavall picture canyavall  路  6Comments

777PolarFox777 picture 777PolarFox777  路  3Comments