Skip to content

Commit

Permalink
Merge pull request #566 from benmccann/esm-fix
Browse files Browse the repository at this point in the history
fix: make package to work correctly with Vite
  • Loading branch information
bestguy authored Aug 30, 2023
2 parents 2b4854d + 05638f3 commit a979132
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Tooltip.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { onDestroy, onMount } from 'svelte';
import { createPopper } from '@popperjs/core/dist/esm/popper';
import { createPopper } from '@popperjs/core';
import classnames, { uuid } from './utils';
import InlineContainer from './InlineContainer.svelte';
import Portal from './Portal.svelte';
Expand Down
2 changes: 1 addition & 1 deletion src/popper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createPopper } from '@popperjs/core/dist/esm/popper';
import { createPopper } from '@popperjs/core';

// Code derived from https://github.com/bryanmylee/svelte-popperjs/blob/master/src/index.ts
export function createPopperActions(initOptions) {
Expand Down
1 change: 0 additions & 1 deletion src/shims.d.ts

This file was deleted.

6 changes: 3 additions & 3 deletions stories/welcome/Index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@
your component hierarchy.
</p>

<h4>Server-side Rendering (SSR) Note:</h4>
<h4>Note on usage with Sapper</h4>
<p>
If you are using Sveltestrap in an SSR environment (such as Sapper),
it's recommended you import the component src directly:
If you are using Sveltestrap with Sapper, it's recommended you import the component source directly.
Note that this issue does not affect SvelteKit. For example:
</p>
<pre>
<PrismCode class="language-javascript">
Expand Down

0 comments on commit a979132

Please sign in to comment.