diff --git a/app/assets/javascripts/blacklight_oembed/oembed.js b/app/assets/javascripts/blacklight_oembed/oembed.js index 0098e4b..063dc89 100644 --- a/app/assets/javascripts/blacklight_oembed/oembed.js +++ b/app/assets/javascripts/blacklight_oembed/oembed.js @@ -1,7 +1,7 @@ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BlacklightOembed = factory()); + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.oembed = factory()); })(this, (function () { 'use strict'; function oEmbed(elements) { diff --git a/rollup.config.js b/rollup.config.js index aa60c05..1e928e1 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -19,7 +19,7 @@ const rollupConfig = { file: `app/assets/javascripts/blacklight_oembed/${fileDest}.js`, format: ESM ? 'es' : 'umd', generatedCode: { preset: 'es2015' }, - name: ESM ? undefined : 'BlacklightOembed' + name: ESM ? undefined : 'oembed' }, plugins: [includePaths(includePathOptions)] }