Skip to content

Commit

Permalink
Minor: Giving the main function a name (sevelteRetag) in case we even…
Browse files Browse the repository at this point in the history
…tually start exporting other functions. Also, very minor refactor of demo site component variable (FeaturesInfo), making consistent with name of .svelte file.
  • Loading branch information
patricknelson committed Dec 4, 2023
1 parent 6c6e2ba commit 2578acf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions demo/vercel/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Counter from './lib/Counter.svelte';
import ExampleTag from './lib/ExampleTag.svelte';
import { TabsWrapper, TabList, TabPanel, TabButton } from './lib/tabs';
import TabsDemo from './lib/TabsDemo.svelte';
import KeyFeatures from './lib/FeaturesInfo.svelte';
import FeaturesInfo from './lib/FeaturesInfo.svelte';
import ExamplesInfo from './lib/ExamplesInfo.svelte';
import TabsInfo from './lib/TabsInfo.svelte';

Expand Down Expand Up @@ -49,7 +49,7 @@ svelteRetag({
});

svelteRetag({
component: KeyFeatures,
component: FeaturesInfo,
tagname: 'features-info',
debugMode,
hydratable,
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function renderElements(timestamp) {
*
* @param {boolean|string?} opts.debugMode Hidden option to enable debugging for package development purposes.
*/
export default function(opts) {
export default function svelteRetag(opts) {
/**
* Reserves our special <svelte-retag> custom element container which is used to wrap Svelte components.
*
Expand Down

0 comments on commit 2578acf

Please sign in to comment.