AveroLLC / typesafe-react-router

Utility functions to help facilitate type-safe routing with react-router
Apache License 2.0
89 stars 14 forks source link

Change module to be CommonJS instead of ES2015 #16

Open igorrmotta opened 3 years ago

igorrmotta commented 3 years ago

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?

igorrmotta commented 3 years ago

Solves the problem: https://github.com/AveroLLC/typesafe-react-router/pull/14