From 043d1fb03eaea1d02fe5e06a02f4621ffea5f5bf Mon Sep 17 00:00:00 2001 From: Brian Takita Date: Wed, 1 Mar 2023 14:18:31 -0500 Subject: [PATCH] ESM support fixes https://github.com/mholt/PapaParse/issues/977 --- papaparse.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/papaparse.js b/papaparse.js index f5a1f8ff..6faf6b5a 100755 --- a/papaparse.js +++ b/papaparse.js @@ -10,11 +10,13 @@ License: MIT /* globals define */ if (typeof define === 'function' && define.amd) { + console.debug('papaparse.js|amd|debug|1') // AMD. Register as an anonymous module. define([], factory); } else if (typeof module === 'object' && typeof exports !== 'undefined') { + console.debug('papaparse.js|exports|debug|1') // Node. Does not work with strict CommonJS, but // only CommonJS-like environments that support module.exports, // like Node. @@ -22,6 +24,7 @@ License: MIT } else { + console.debug('papaparse.js|root.Papa|debug|1') // Browser globals (root is window) root.Papa = factory(); }