Skip to content

Commit

Permalink
Added support for rudder-analytics.js
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Aug 25, 2021
1 parent 8a3aeee commit 88fabc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,8 @@ class Analytics {
if (
curScriptSrc &&
curScriptSrc.startsWith("http") &&
curScriptSrc.endsWith("rudder-analytics.min.js")
(curScriptSrc.endsWith("rudder-analytics.min.js") ||
curScriptSrc.endsWith("rudder-analytics.js"))
) {
this.intCdnBaseURL = curScriptSrc
.split("/")
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default {
},
],
["@babel/plugin-transform-arrow-functions"],
["@babel/plugin-transform-object-assign"]
["@babel/plugin-transform-object-assign"],
],
}),
process.env.uglify === "true" && terser(),
Expand Down

0 comments on commit 88fabc6

Please sign in to comment.