Skip to content

Commit 880f560

Browse files
authored
fix(create-vite): remove import from public (#9074)
1 parent 592d879 commit 880f560

File tree

10 files changed

+10
-20
lines changed

10 files changed

+10
-20
lines changed

packages/create-vite/template-lit-ts/src/my-element.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { html, css, LitElement } from 'lit'
22
import { customElement, property } from 'lit/decorators.js'
3-
import viteLogo from '/vite.svg'
43
import litLogo from './assets/lit.svg'
54

65
/**
@@ -27,7 +26,7 @@ export class MyElement extends LitElement {
2726
return html`
2827
<div>
2928
<a href="https://vitejs.dev" target="_blank">
30-
<img src="${viteLogo}" class="logo" alt="Vite logo" />
29+
<img src="/vite.svg" class="logo" alt="Vite logo" />
3130
</a>
3231
<a href="https://lit.dev" target="_blank">
3332
<img src=${litLogo} class="logo lit" alt="Lit logo" />

packages/create-vite/template-lit/src/my-element.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { html, css, LitElement } from 'lit'
2-
import viteLogo from '/vite.svg'
32
import litLogo from './assets/lit.svg'
43

54
/**
@@ -33,7 +32,7 @@ export class MyElement extends LitElement {
3332
return html`
3433
<div>
3534
<a href="https://vitejs.dev" target="_blank">
36-
<img src="${viteLogo}" class="logo" alt="Vite logo" />
35+
<img src="/vite.svg" class="logo" alt="Vite logo" />
3736
</a>
3837
<a href="https://lit.dev" target="_blank">
3938
<img src=${litLogo} class="logo lit" alt="Lit logo" />

packages/create-vite/template-preact-ts/src/app.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useState } from 'preact/hooks'
2-
import viteLogo from '/vite.svg'
32
import preactLogo from './assets/preact.svg'
43
import './app.css'
54

@@ -10,7 +9,7 @@ export function App() {
109
<>
1110
<div>
1211
<a href="https://vitejs.dev" target="_blank">
13-
<img src={viteLogo} class="logo" alt="Vite logo" />
12+
<img src="/vite.svg" class="logo" alt="Vite logo" />
1413
</a>
1514
<a href="https://preactjs.com" target="_blank">
1615
<img src={preactLogo} class="logo preact" alt="Preact logo" />

packages/create-vite/template-preact/src/app.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useState } from 'preact/hooks'
2-
import viteLogo from '/vite.svg'
32
import preactLogo from './assets/preact.svg'
43
import './app.css'
54

@@ -10,7 +9,7 @@ export function App() {
109
<>
1110
<div>
1211
<a href="https://vitejs.dev" target="_blank">
13-
<img src={viteLogo} class="logo" alt="Vite logo" />
12+
<img src="/vite.svg" class="logo" alt="Vite logo" />
1413
</a>
1514
<a href="https://preactjs.com" target="_blank">
1615
<img src={preactLogo} class="logo preact" alt="Preact logo" />

packages/create-vite/template-react-ts/src/App.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useState } from 'react'
2-
import viteLogo from '/vite.svg'
32
import reactLogo from './assets/react.svg'
43
import './App.css'
54

@@ -10,7 +9,7 @@ function App() {
109
<div className="App">
1110
<div>
1211
<a href="https://vitejs.dev" target="_blank">
13-
<img src={viteLogo} className="logo" alt="Vite logo" />
12+
<img src="/vite.svg" className="logo" alt="Vite logo" />
1413
</a>
1514
<a href="https://reactjs.org" target="_blank">
1615
<img src={reactLogo} className="logo react" alt="React logo" />

packages/create-vite/template-react/src/App.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useState } from 'react'
2-
import viteLogo from '/vite.svg'
32
import reactLogo from './assets/react.svg'
43
import './App.css'
54

@@ -10,7 +9,7 @@ function App() {
109
<div className="App">
1110
<div>
1211
<a href="https://vitejs.dev" target="_blank">
13-
<img src={viteLogo} className="logo" alt="Vite logo" />
12+
<img src="/vite.svg" className="logo" alt="Vite logo" />
1413
</a>
1514
<a href="https://reactjs.org" target="_blank">
1615
<img src={reactLogo} className="logo react" alt="React logo" />

packages/create-vite/template-svelte-ts/src/App.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<script lang="ts">
2-
import viteLogo from '/vite.svg'
32
import svelteLogo from './assets/svelte.svg'
43
import Counter from './lib/Counter.svelte'
54
</script>
65

76
<main>
87
<div>
98
<a href="https://vitejs.dev" target="_blank">
10-
<img src={viteLogo} class="logo" alt="Vite Logo" />
9+
<img src="/vite.svg" class="logo" alt="Vite Logo" />
1110
</a>
1211
<a href="https://svelte.dev" target="_blank">
1312
<img src={svelteLogo} class="logo svelte" alt="Svelte Logo" />

packages/create-vite/template-svelte/src/App.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<script>
2-
import viteLogo from '/vite.svg'
32
import svelteLogo from './assets/svelte.svg'
43
import Counter from './lib/Counter.svelte'
54
</script>
65

76
<main>
87
<div>
98
<a href="https://vitejs.dev" target="_blank">
10-
<img src={viteLogo} class="logo" alt="Vite Logo" />
9+
<img src="/vite.svg" class="logo" alt="Vite Logo" />
1110
</a>
1211
<a href="https://svelte.dev" target="_blank">
1312
<img src={svelteLogo} class="logo svelte" alt="Svelte Logo" />

packages/create-vite/template-vanilla-ts/src/main.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import './style.css'
2-
import viteLogo from '/vite.svg'
32
import typescriptLogo from './typescript.svg'
43
import { setupCounter } from './counter'
54

65
document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
76
<div>
87
<a href="https://vitejs.dev" target="_blank">
9-
<img src="${viteLogo}" class="logo" alt="Vite logo" />
8+
<img src="/vite.svg" class="logo" alt="Vite logo" />
109
</a>
1110
<a href="https://www.typescriptlang.org/" target="_blank">
1211
<img src="${typescriptLogo}" class="logo vanilla" alt="TypeScript logo" />

packages/create-vite/template-vanilla/main.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import './style.css'
2-
import viteLogo from '/vite.svg'
32
import javascriptLogo from './javascript.svg'
43
import { setupCounter } from './counter.js'
54

65
document.querySelector('#app').innerHTML = `
76
<div>
87
<a href="https://vitejs.dev" target="_blank">
9-
<img src="${viteLogo}" class="logo" alt="Vite logo" />
8+
<img src="/vite.svg" class="logo" alt="Vite logo" />
109
</a>
1110
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank">
1211
<img src="${javascriptLogo}" class="logo vanilla" alt="JavaScript logo" />

0 commit comments

Comments
 (0)