We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the feature
.svelte files containing imports are currently not supported. They look like HTML/Vue files.
.svelte
import
Demo
This is what a .svelte file looks like:
<script> import CustomButton from './CustomButton.svelte'; function handleClick() { alert('clicked'); } </script> <CustomButton on:click={handleClick}/>
Real-life example: https://github.com/hankxdev/one-click-extensions-manager/blob/918841cbdbca86a88498595e660c122c7cef576b/source/App.svelte
Imports of .svelte files from .js files are already supported: https://github.com/hankxdev/one-click-extensions-manager/blob/918841cbdbca86a88498595e660c122c7cef576b/source/main.js
.js
Additional information
Full docs about the language are here, but it looks like HTML for the most part (imports are found in regular <script> tags). My guess is that the .svelte extension can just be added to https://github.com/OctoLinker/OctoLinker/blob/a139f7f8fbc68b4f439edf12941b93271585b98f/packages/plugin-html/index.js
<script>
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the feature
.svelte
files containingimport
s are currently not supported. They look like HTML/Vue files.Demo
This is what a
.svelte
file looks like:Real-life example: https://github.com/hankxdev/one-click-extensions-manager/blob/918841cbdbca86a88498595e660c122c7cef576b/source/App.svelte
Imports of
.svelte
files from.js
files are already supported: https://github.com/hankxdev/one-click-extensions-manager/blob/918841cbdbca86a88498595e660c122c7cef576b/source/main.jsAdditional information
Full docs about the language are here, but it looks like HTML for the most part (imports are found in regular
<script>
tags). My guess is that the .svelte extension can just be added to https://github.com/OctoLinker/OctoLinker/blob/a139f7f8fbc68b4f439edf12941b93271585b98f/packages/plugin-html/index.jsThe text was updated successfully, but these errors were encountered: