Skip to content

Commit

Permalink
Fixing the user-activity polyfill/wrapper (take #2) (#79)
Browse files Browse the repository at this point in the history
Signed-off-by: Liam McLoughlin <lmcloughlin@fitbit.com>
  • Loading branch information
Hexxeh committed Mar 6, 2019
1 parent dc78c1d commit b179f84
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/buildTargets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ const baseBuildTargets: { [platform: string]: BuildTargetDescriptor } = {
orientation:
'export var OrientationSensor = undefined; export default OrientationSensor;',
'user-activity': `
export * from "user-activity";
export { default } from "user-activity";
import { today } from "user-activity";
Object.defineProperty(today.local, "elevationGain", {});
export { today, goals, default } from 'user-activity';
import { today } from 'user-activity';
Object.defineProperty(today.local, 'elevationGain', {});
`,
},
},
Expand Down

0 comments on commit b179f84

Please sign in to comment.