create-vite-extra 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vite-extra",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bjorn Lu",
@@ -1,13 +1,14 @@
1
1
  import { defineConfig } from 'npm:vite'
2
2
 
3
- import "npm:lit";
3
+ import 'npm:lit'
4
4
 
5
5
  // https://vitejs.dev/config/
6
6
  export default defineConfig({
7
7
  build: {
8
8
  lib: {
9
9
  entry: 'src/my-element.js',
10
- formats: ['es']
10
+ formats: ['es'],
11
+ fileName: 'app'
11
12
  },
12
13
  rollupOptions: {
13
14
  external: /^lit/
@@ -1,8 +1,8 @@
1
1
  import { defineConfig } from 'npm:vite'
2
2
  import preact from 'npm:@preact/preset-vite'
3
3
 
4
- import "npm:preact";
5
- import "npm:preact/hooks";
4
+ import 'npm:preact'
5
+ import 'npm:preact/hooks'
6
6
 
7
7
  // https://vitejs.dev/config/
8
8
  export default defineConfig({
@@ -1,8 +1,8 @@
1
1
  import { defineConfig } from 'npm:vite'
2
2
  import react from 'npm:@vitejs/plugin-react'
3
3
 
4
- import "npm:react";
5
- import "npm:react-dom/client";
4
+ import 'npm:react'
5
+ import 'npm:react-dom/client'
6
6
 
7
7
  // https://vitejs.dev/config/
8
8
  export default defineConfig({
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from 'npm:vite'
2
2
  import { svelte } from 'npm:@sveltejs/vite-plugin-svelte'
3
3
 
4
- import "npm:svelte";
4
+ import 'npm:svelte'
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig({
@@ -1,5 +1,5 @@
1
- import { createApp } from "vue";
2
- import "./style.css";
3
- import App from "./App.vue";
1
+ import { createApp } from 'vue'
2
+ import './style.css'
3
+ import App from './App.vue'
4
4
 
5
- createApp(App).mount("#app");
5
+ createApp(App).mount('#app')
@@ -1,10 +1,9 @@
1
- import { defineConfig } from "npm:vite";
2
- import vue from "npm:@vitejs/plugin-vue";
1
+ import { defineConfig } from 'npm:vite'
2
+ import vue from 'npm:@vitejs/plugin-vue'
3
3
 
4
- // NOTE(bartlomieju): this is a papercut that shouldn't be required, see README.md
5
- import "npm:vue";
4
+ import 'npm:vue'
6
5
 
7
6
  // https://vitejs.dev/config/
8
7
  export default defineConfig({
9
- plugins: [vue()],
10
- });
8
+ plugins: [vue()]
9
+ })