File tree Expand file tree Collapse file tree 3 files changed +27
-9
lines changed Expand file tree Collapse file tree 3 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 4
4
"author" : " mParticle Developers <developers@mparticle.com> (https://www.mparticle.com)" ,
5
5
"description" : " mParticle integration sdk for facebook" ,
6
6
"main" : " dist/FacebookEventForwarder.common.js" ,
7
+ "module" : " dist/FacebookEventForwarder.esm.js" ,
7
8
"browser" : " dist/FacebookEventForwarder.common.js" ,
8
9
"files" : [
9
- " dist/FacebookEventForwarder.common.js"
10
+ " dist/FacebookEventForwarder.common.js" ,
11
+ " dist/FacebookEventForwarder.esm.js"
10
12
],
11
13
"repository" : " https://github.com/mparticle-integrations/mparticle-javascript-integration-facebook" ,
12
14
"scripts" : {
Original file line number Diff line number Diff line change @@ -33,5 +33,21 @@ export default [
33
33
} ) ,
34
34
commonjs ( )
35
35
]
36
+ } ,
37
+ {
38
+ input : 'src/FacebookEventForwarder.js' ,
39
+ output : {
40
+ file : 'dist/FacebookEventForwarder.esm.js' ,
41
+ format : 'esm' ,
42
+ exports : 'named' ,
43
+ name : 'mpFacebookKit' ,
44
+ strict : false
45
+ } ,
46
+ plugins : [
47
+ resolve ( {
48
+ browser : true
49
+ } ) ,
50
+ commonjs ( )
51
+ ]
36
52
}
37
- ]
53
+ ]
Original file line number Diff line number Diff line change 50
50
} ,
51
51
SupportedCommerceTypes = [ ] ,
52
52
// Standard FB Event Names from https://developers.facebook.com/docs/facebook-pixel/reference#standard-events
53
- ADD_TO_CART_EVENT_NAME = 'AddToCart' ;
54
- ADD_TO_WISHLIST_EVENT_NAME = 'AddToWishlist' ;
55
- CHECKOUT_EVENT_NAME = 'InitiateCheckout' ;
56
- PAGE_VIEW_EVENT_NAME = 'PageView' ;
57
- PURCHASE_EVENT_NAME = 'Purchase' ;
58
- REMOVE_FROM_CART_EVENT_NAME = 'RemoveFromCart' ;
59
- VIEW_CONTENT_EVENT_NAME = 'ViewContent' ;
53
+ ADD_TO_CART_EVENT_NAME = 'AddToCart' ,
54
+ ADD_TO_WISHLIST_EVENT_NAME = 'AddToWishlist' ,
55
+ CHECKOUT_EVENT_NAME = 'InitiateCheckout' ,
56
+ PAGE_VIEW_EVENT_NAME = 'PageView' ,
57
+ PURCHASE_EVENT_NAME = 'Purchase' ,
58
+ REMOVE_FROM_CART_EVENT_NAME = 'RemoveFromCart' ,
59
+ VIEW_CONTENT_EVENT_NAME = 'ViewContent' ,
60
60
constructor = function ( ) {
61
61
var self = this ,
62
62
isInitialized = false ,
You can’t perform that action at this time.
0 commit comments