@segment/analytics-next
Version:
Analytics Next (aka Analytics 2.0) is the latest version of Segment’s JavaScript SDK - enabling you to send your data to any tool without having to learn, test, or use a new API every time.
20 lines (15 loc) • 443 B
text/typescript
import { getCDN, setGlobalCDNUrl } from '../lib/parse-cdn'
import { setVersionType } from '../lib/version-type'
if (process.env.IS_WEBPACK_BUILD) {
if (process.env.ASSET_PATH) {
// @ts-ignore
__webpack_public_path__ = process.env.ASSET_PATH
} else {
const cdn = getCDN()
setGlobalCDNUrl(cdn)
// @ts-ignore
__webpack_public_path__ = cdn + '/analytics-next/bundles/'
}
}
setVersionType('web')
export * from '.'