Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
change from default to named exports
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-8 committed Mar 21, 2023
1 parent 4e8ec4f commit ece27e5
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 384 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["@svelte-scoped-uno/sveltekit-preprocess-example"]
}
6 changes: 6 additions & 0 deletions .changeset/tall-pianos-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"svelte-preprocess-unocss": patch
"svelte-scoped-uno": patch
---

change from default to named exports to easily allow for usage of Vite plugin from within svelte-preprocess-unocss if wanting to conveniently use the global reset, preflights, and safelist for a library demo app
2 changes: 1 addition & 1 deletion examples/svelte-vite-plugin/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import SvelteScopedUno from 'svelte-scoped-uno'
import { SvelteScopedUno } from 'svelte-scoped-uno'

export default defineConfig({
plugins: [
Expand Down
5 changes: 4 additions & 1 deletion examples/sveltekit-preprocess/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="stylesheet" href="%sveltekit.assets%/tailwind-reset.css">
<!-- If you have your preferred styles reset and don't want to use the option one provided by svelte-scoped-uno, add that first -->

<!-- Then the global styles from svelte-scoped-uno (optional reset, preflights and safelists). These are inlined in dev, added as a cacheable hashed css file in build. -->
%svelte-scoped-uno.global%

%sveltekit.head%
</head>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This is just here for our global usage of SvelteScopedUno to conveniently provide a reset and preflights to my demo app - this is unnecessary for your usage of svelte-preprocess-unocss

/** @type {import('@sveltejs/kit').Handle} */
export async function handle({ event, resolve }) {
const response = await resolve(event, {
Expand Down

0 comments on commit ece27e5

Please sign in to comment.