Open piranna opened 5 years ago
This could be addressed by transpiling to ES5 using Webpack or Browserify. Projects consuming this may need to turn on the switch to transpile source under node_modules. That could slow down the build though. Alternatively, react-native-dom could publish a minified & transpiled build.
Projects consuming this may need to turn on the switch to transpile source under node_modules.
What's that switch? I'm having this problem in another projects.
Alternatively, react-native-dom could publish a minified & transpiled build.
Yeah, that would be the ideal thing...
Here's a walk-through for Webpack. There are tutorials out there for Bable and Browserify too. https://medium.com/unhandled-exception/using-non-transpiled-modules-and-webpack-657dca27bd4a
Thank you! :-D
With Chromium 71, trying to add support for
react-native-dom
to a project I get the errorUncaught SyntaxError: Unexpected token {
in filebootstrap.bundle
. Looking at the line, the code is provided byreact-native-dom
itself, seems the bracedimport
statement is not supported by Chromium... Any clue about what could be happening and how can I be able to fix it?