svelte-docs
svelte-docs copied to clipboard
Typescript support?
I've tried adding to svelte-docs.config but it didn't seem to make much of a difference
aliases: {
comps: '../src/Components',
models: '../src/Models',
},
preprocess: [
svletePreprocess({
sourceMap: false,
}),
],
<script>
import Button from 'comps/Button.svelte';
</script>
<Button />
<div class="bg-red-500">Hello </div>
results in
Svelte-Docs: DEVELOPMENT server started...
Please open: http://localhost:5000/
[rollup-plugin-svelte] Unknown "dev" option. Please use "compilerOptions" for any Svelte compiler configuration.
[rollup-plugin-svelte] Unknown "dev" option. Please use "compilerOptions" for any Svelte compiler configuration.
rollup v2.38.0
bundles /Users/jmsunseri/dev/code/sveltail-ui/docs/node_modules/@svelte-docs/core/main.js → __DOCS__/dev/bundle.js...
LiveReload enabled
(!) A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.
(!) A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.
created __DOCS__/dev/bundle.js in 712ms
bundles /Users/jmsunseri/dev/code/sveltail-ui/docs/node_modules/@svelte-docs/core/examples.main.js → __DOCS__/dev/examples.js...
(!) A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
comps/Button.svelte (imported by Ex_0_ed78ec265f41da31351640aadba5be37.svelte)
(!) Missing global variable name
Use output.globals to specify browser global variable names corresponding to external modules
comps/Button.svelte (guessing 'Button')
created __DOCS__/dev/examples.js in 890ms
[2021-01-25 19:34:17] waiting for changes...
bundles /Users/jmsunseri/dev/code/sveltail-ui/docs/node_modules/@svelte-docs/core/main.js → __DOCS__/dev/bundle.js...
(!) A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.
(!) A plugin is directly adding properties to the bundle object in the "generateBundle" hook. This is deprecated and will be removed in a future Rollup version, please use "this.emitFile" instead.
created __DOCS__/dev/bundle.js in 287ms
[2021-01-25 19:34:18] waiting for changes...
TS nope.
Alias should be a file: comps: '../src/Components/index.js',
;
Why no possibility of TS support?
On Mon, Jan 25, 2021, 7:47 PM Alexey Schebelev [email protected] wrote:
TS nope. Alias should be a file: comps: '../src/Components/index.js',;
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AlexxNB/svelte-docs/issues/34#issuecomment-766760549, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGEPF2IY2MHRTXWNY6346DS3VK4VANCNFSM4WRTPTKQ .
What would it take to get TS support? This is killing me. Using javascript now feel barbaric.