victory icon indicating copy to clipboard operation
victory copied to clipboard

victory-native: Consider using core packages instead of `victory-<name>/es`

Open ryan-roemer opened this issue 2 years ago • 0 comments

We presently do something like:

import { VictoryArea } from "victory-area/es";

in victory-native so that we know we point to transpiled source with ESM. This means, however, for things like Jest tests we have to transpile the already transpiled other victory-<name>/es files.

Task:

  • [ ] Investigate if we can switch over to like import { VictoryArea } from "victory-area"; and not transpile further in Jest.
  • [ ] Update jest-native-config.js to only transpile in /test/ in transform setting.

ryan-roemer avatar May 04 '22 21:05 ryan-roemer