Skip to content

Commit

Permalink
Merge pull request #22 from projectblacklight/change-name
Browse files Browse the repository at this point in the history
Change the name of the defined function for non-esm (sprockets) build
  • Loading branch information
taylor-steve authored Jan 10, 2025
2 parents 25bda99 + f0732f4 commit 230b3bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/blacklight_oembed/oembed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
}
Expand Down

0 comments on commit 230b3bf

Please sign in to comment.