Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtantay committed May 31, 2024
1 parent aa1b946 commit 6dcd40c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/components/baker-embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function addWebComponentsLoader() {

/**
* Appends the baker custom element script to the body
*
* @param {string} filepath
*/
function addBakerElementScript(filepath) {
Expand Down Expand Up @@ -66,6 +67,7 @@ window.baker = window.baker || {};

/**
* Renders the baker component
*
* @param {string} webComponentPath
* @param {string} param
* @returns {void}
Expand Down
1 change: 1 addition & 0 deletions lib/components/web-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class BakerWebComponent extends HTMLElement {

/**
* Parse the base URL from the baker-embed.js script
*
* @returns {string}
*/
static getBaseURL() {
Expand Down
3 changes: 3 additions & 0 deletions lib/engines/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ export class RollupEngine extends BaseEngine {

/**
* Bundles embed files for the Baker element
*
* @param {string} output
* @returns {Promise<void>}
*/
async buildEmbed(output) {
// baker-embed.js
Expand Down
1 change: 0 additions & 1 deletion lib/rollup-plugins/manifest-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import fs from 'fs';
/**
* @typedef {import('rollup').Plugin} RollupPlugin
*
*
* @returns {{generateBundle(*, *): void, name: string}}
*/
export function manifestPlugin() {
Expand Down

0 comments on commit 6dcd40c

Please sign in to comment.