@vuebro/loader-sfc 1.5.1 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Vue SFC Loader
2
2
 
3
- Single File Component loader for Vue3. Load .vue files directly from your HTML. No node.js environment, no build step.
3
+ Vue3 Single File Component (SFC) loader. Load .vue files directly from your browser without any build step.
4
4
 
5
5
  ## Installation
6
6
 
7
- Install @vuebro/loader-sfc with npm
7
+ Install `@vuebro/loader-sfc` with npm
8
8
 
9
9
  ```bash
10
10
  npm install @vuebro/loader-sfc
@@ -30,3 +30,5 @@ const AdminPage = defineAsyncComponent(() =>
30
30
  <AdminPage />
31
31
  </template>
32
32
  ```
33
+
34
+ A simple example of using `@vuebro/loader-sfc` in a template Vue 3 + TypeScript + Vite application for dynamic loading and compilation of an SFC module during application runtime in the browser can be found in the repository: [loader-sfc-example](https://github.com/vuebro/loader-sfc-example)
@@ -1,4 +1,2 @@
1
- declare module "index" {
2
- const loadModule: (filename: string) => Promise<Record<string, string | object>>;
3
- export default loadModule;
4
- }
1
+ declare const loadModule: (filename: string) => Promise<Record<string, string | object>>;
2
+ export default loadModule;