ractivejs/rcu-builders

duplicate require fails in ES6 mode

Rich-Harris opened this issue · 1 comments

The following causes problems in Safari and old IE:

<script>
  var foo = require('./x').foo;
  var bar = require('./x').bar;
  // ...
</script>

It's because imports aren't deduped, so you end up with a map of imports with ./x listed twice.

Fixed upstream