Skip to content

Commit

Permalink
feat: Expose adapter functions
Browse files Browse the repository at this point in the history
  • Loading branch information
44px committed Nov 5, 2018
1 parent 882507f commit 032eada
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
18 changes: 9 additions & 9 deletions rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import sourceMaps from 'rollup-plugin-sourcemaps'
import camelCase from 'lodash.camelcase'
import typescript from 'rollup-plugin-typescript2'
import json from 'rollup-plugin-json'
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import sourceMaps from 'rollup-plugin-sourcemaps';
import camelCase from 'lodash.camelcase';
import typescript from 'rollup-plugin-typescript2';
import json from 'rollup-plugin-json';

const pkg = require('./package.json')
const pkg = require('./package.json');

const libraryName = 'wrapped-analytics'
const libraryName = 'wrapped-analytics';

export default {
input: `src/${libraryName}.ts`,
Expand Down Expand Up @@ -35,4 +35,4 @@ export default {
// Resolve source maps to the original source
sourceMaps(),
],
}
};
3 changes: 3 additions & 0 deletions src/wrapped-analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ export function wrappedAnalytics(trackers: EventTracker[]): EventTracker {
trackers.forEach(track => track(event, eventProperties));
};
}

export { googleGA } from './adapters/google-ga';
export { googleGTAG } from './adapters/google-gtag';

0 comments on commit 032eada

Please sign in to comment.