Open igorrmotta opened 3 years ago
When transpiling the module we're doing from typescript down to ES2015 javascript. Not every bundler/browser can read ES2015 as of yet.
Could we instead transpile the module to CommonJS. Making it compatible with legacy browsers and tools?
Solves the problem: https://github.com/AveroLLC/typesafe-react-router/pull/14
Problem
When transpiling the module we're doing from typescript down to ES2015 javascript. Not every bundler/browser can read ES2015 as of yet.
Solution
Could we instead transpile the module to CommonJS. Making it compatible with legacy browsers and tools?