Skip to content

Commit

Permalink
Add svelte.config.js (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vatroslav Vrbanic committed Sep 8, 2022
1 parent e6fef54 commit b7d6779
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import adapter from "@sveltejs/adapter-auto"
import preprocess from "svelte-preprocess"

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),

kit: {
adapter: adapter(),

alias: {
"$app/env": "./src/lib/$app/env/index.ts",
"svelthree/stores": "./src/lib/stores/index.ts",
svelthree: "./src/lib/index.ts",
"svelthree/*": "./src/lib/*"
}
},

package: {
dir: "package",
emitTypes: true,
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
exports: (filepath) => {
console.log(filepath)
if (filepath.startsWith(`index.ts`)) return true
if (filepath.startsWith(`utils/index`)) return true
//if (filepath.startsWith(`logic/if$/index`)) return true
//if (filepath.startsWith(`logic/shared/index`)) return true
//if (filepath.startsWith(`logic/special/index`)) return true
if (filepath.startsWith(`stores/index`)) return true
}
}
}

export default config

0 comments on commit b7d6779

Please sign in to comment.