⬆️ Update to latest dependencies

This commit is contained in:
Alexandre Mouton-Brady
2021-01-23 13:56:41 +01:00
parent 9db0670fcc
commit 2711f753a4
21 changed files with 139 additions and 91 deletions
+25 -4
View File
@@ -1,33 +1,54 @@
# Vite templates for Solid
This repository holds most of the official starter templates for Vite.
You get:
* HMR out of the box
* Minimal bundle size
* All the vite features..
## Install ## Install
Those templates dependencies are maintained via [pnpm](https://pnpm.js.org/) via `pnpm up -i --latest`.
This is the reason you see a `pnpm-lock.yaml`. This is my favorite package manager because it's fast and doesn't bloat the `node_modules` folder.
Note that any package manager should work. I'd just advice you to remove the `pnpm-lock.yml` file before doing an install via your package manager of choice.
```bash ```bash
# Javascript template # Javascript template
$ npx degit amoutonbrady/vite-template-solid/js my-solid-project $ npx degit amoutonbrady/vite-template-solid/js my-solid-project
$ cd my-solid-project $ cd my-solid-project
$ npm install # or pnpm install or yarn install $ pnpm install # or npm install or yarn install
``` ```
```bash ```bash
# Typescript template # Typescript template
$ npx degit amoutonbrady/vite-template-solid/ts my-solid-project $ npx degit amoutonbrady/vite-template-solid/ts my-solid-project
$ cd my-solid-project $ cd my-solid-project
$ npm install # or pnpm install or yarn install $ pnpm install # or npm install or yarn install
``` ```
```bash ```bash
# Typescript minimal template # Typescript minimal template
$ npx degit amoutonbrady/vite-template-solid/ts-minimal my-solid-project $ npx degit amoutonbrady/vite-template-solid/ts-minimal my-solid-project
$ cd my-solid-project $ cd my-solid-project
$ npm install # or pnpm install or yarn install $ pnpm install # or npm install or yarn install
``` ```
```bash ```bash
# Typescript tailwind template # Typescript tailwind template
$ npx degit amoutonbrady/vite-template-solid/ts-tailwind my-solid-project $ npx degit amoutonbrady/vite-template-solid/ts-tailwind my-solid-project
$ cd my-solid-project $ cd my-solid-project
$ npm install # or pnpm install or yarn install $ pnpm install # or npm install or yarn install
``` ```
## I don't see a template that matches my need?
You wish there was a template with a router? Bootstrap? Your favorite library?
Feel free to make a pull request. Copy on of the template already available, tweak, name it properly and make a PR.
## Troubleshooting ## Troubleshooting
It appears that Webstorm generate some weird triggers when saving a file. In order to prevent that you can follow [this thread](https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000154544-I-m-having-a-huge-problem-with-Webstorm-and-react-hot-loader-) and disable the **"Safe Write"** option in **"Settings | Appearance & Behavior | System Settings"**. It appears that Webstorm generate some weird triggers when saving a file. In order to prevent that you can follow [this thread](https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000154544-I-m-having-a-huge-problem-with-Webstorm-and-react-hot-loader-) and disable the **"Safe Write"** option in **"Settings | Appearance & Behavior | System Settings"**.
+6 -1
View File
@@ -1,7 +1,12 @@
## Usage ## Usage
Those templates dependencies are maintained via [pnpm](https://pnpm.js.org/) via `pnpm up -i --latest`.
This is the reason you see a `pnpm-lock.yaml`. This is my favorite package manager because it's fast and doesn't bloat the `node_modules` folder.
Note that any package manager should work. I'd just advice you to remove the `pnpm-lock.yml` file before doing an install via your package manager of choice.
```bash ```bash
$ npm install # or pnpm install or yarn install $ pnpm install # or npm install or yarn install
``` ```
## Available Scripts ## Available Scripts
+3 -3
View File
@@ -3,13 +3,13 @@
"version": "0.0.0", "version": "0.0.0",
"description": "My solid + vite project", "description": "My solid + vite project",
"scripts": { "scripts": {
"dev": "vite", "start": "vite",
"build": "vite build" "build": "vite build"
}, },
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"vite": "^2.0.0-beta.33", "vite": "^2.0.0-beta.44",
"vite-plugin-solid": "^0.6.0" "vite-plugin-solid": "^0.7.0"
}, },
"dependencies": { "dependencies": {
"solid-js": "^0.23.11" "solid-js": "^0.23.11"
+15 -15
View File
@@ -1,8 +1,8 @@
dependencies: dependencies:
solid-js: 0.23.11 solid-js: 0.23.11
devDependencies: devDependencies:
vite: 2.0.0-beta.33 vite: 2.0.0-beta.44
vite-plugin-solid: 0.6.0 vite-plugin-solid: 0.7.0
lockfileVersion: 5.2 lockfileVersion: 5.2
packages: packages:
/@babel/code-frame/7.12.11: /@babel/code-frame/7.12.11:
@@ -295,12 +295,12 @@ packages:
optional: true optional: true
resolution: resolution:
integrity: sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== integrity: sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==
/esbuild/0.8.33: /esbuild/0.8.34:
dev: true dev: true
hasBin: true hasBin: true
requiresBuild: true requiresBuild: true
resolution: resolution:
integrity: sha512-2ms/P6Y9zJfopR9dKo2vHzhXKfGSNlquVVoVOF8YnhjuzZVrvManMVBPadBsR/t7jzIkRnwqvxrs7d4f3C3eyg== integrity: sha512-tnr0V1ooakYr1aRLXQLzCn2GVG1kBTW3FWpRyC+NgrR3ntsouVpJOlTOV0BS4YLATx3/c+x3h/uBq9lWJlUAtQ==
/escape-string-regexp/1.0.5: /escape-string-regexp/1.0.5:
dev: true dev: true
engines: engines:
@@ -413,7 +413,7 @@ packages:
dev: true dev: true
resolution: resolution:
integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==
/rollup/2.37.0: /rollup/2.38.0:
dev: true dev: true
engines: engines:
node: '>=10.0.0' node: '>=10.0.0'
@@ -421,7 +421,7 @@ packages:
optionalDependencies: optionalDependencies:
fsevents: 2.1.3 fsevents: 2.1.3
resolution: resolution:
integrity: sha512-cbxuxkMGCQV+TnVh+yZSUerbVb5i8soRydbzHYoMNojgt7MMi+jDLLs24U9HHCssKkwkXmsj+LXcOZMldTbz2w== integrity: sha512-ay9zDiNitZK/LNE/EM2+v5CZ7drkB2xyDljvb1fQJCGnq43ZWRkhxN145oV8GmoW1YNi4sA/1Jdkr2LfawJoXw==
/safe-buffer/5.1.2: /safe-buffer/5.1.2:
dev: true dev: true
resolution: resolution:
@@ -460,22 +460,22 @@ packages:
node: '>=4' node: '>=4'
resolution: resolution:
integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=
/vite-plugin-solid/0.6.0: /vite-plugin-solid/0.7.0:
dependencies: dependencies:
'@babel/core': 7.12.10 '@babel/core': 7.12.10
'@babel/preset-typescript': 7.12.7_@[email protected] '@babel/preset-typescript': 7.12.7_@[email protected]
babel-preset-solid: 0.23.8_@[email protected] babel-preset-solid: 0.23.8_@[email protected]
solid-js: 0.23.11 solid-js: 0.23.11
vite: 2.0.0-beta.33 vite: 2.0.0-beta.44
dev: true dev: true
resolution: resolution:
integrity: sha512-nGF87Mh6g5ZKsmausJRRl1MQRduv2T/v57JZQVYPAtLhIboVE62BtfXBkVNKHBhU7WoKM+0wCm5bt34uEJwrRw== integrity: sha512-gU0xb5zFpjIZiCvPpyir5fSBDIUPC2S32NYdJ9x8pbA/W0J/bzfB5yw2DTa7ZQoFXfnkNWZsEdsjkGXhw0aHTw==
/vite/2.0.0-beta.33: /vite/2.0.0-beta.44:
dependencies: dependencies:
esbuild: 0.8.33 esbuild: 0.8.34
postcss: 8.2.4 postcss: 8.2.4
resolve: 1.19.0 resolve: 1.19.0
rollup: 2.37.0 rollup: 2.38.0
dev: true dev: true
engines: engines:
node: '>=12.0.0' node: '>=12.0.0'
@@ -483,8 +483,8 @@ packages:
optionalDependencies: optionalDependencies:
fsevents: 2.1.3 fsevents: 2.1.3
resolution: resolution:
integrity: sha512-vg7rZbO19w1+nkV3fXsk0ggfI7J8DBDm74olVKgN7/SarrlisOZI/YWwP4XybGVNPnsSsOG9pKXhXl1mY6Oe5A== integrity: sha512-NTzmP7HEKDg3J5r3I22f87jK3ugPVEU81BQ8hWn3hNWU0msCziUlj7aHwItSUEbQA+ymqO3TBO2fN7Aa+OKckQ==
specifiers: specifiers:
solid-js: ^0.23.11 solid-js: ^0.23.11
vite: ^2.0.0-beta.33 vite: ^2.0.0-beta.44
vite-plugin-solid: ^0.6.0 vite-plugin-solid: ^0.7.0
+5 -5
View File
@@ -1,16 +1,16 @@
import logo from "./logo.svg"; import logo from "./logo.svg";
import "./App.css"; import styles from "./App.module.css";
function App() { function App() {
return ( return (
<div class="App"> <div class={styles.App}>
<header class="App-header"> <header class={styles.header}>
<img src={logo} class="App-logo" alt="logo" /> <img src={logo} class={styles.logo} alt="logo" />
<p> <p>
Edit <code>src/App.js</code> and save to reload. Edit <code>src/App.js</code> and save to reload.
</p> </p>
<a <a
class="App-link" class={styles.link}
href="https://github.com/ryansolid/solid" href="https://github.com/ryansolid/solid"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
+5 -5
View File
@@ -2,13 +2,13 @@
text-align: center; text-align: center;
} }
.App-logo { .logo {
animation: App-logo-spin infinite 20s linear; animation: logo-spin infinite 20s linear;
height: 40vmin; height: 40vmin;
pointer-events: none; pointer-events: none;
} }
.App-header { .header {
background-color: #282c34; background-color: #282c34;
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
@@ -19,11 +19,11 @@
color: white; color: white;
} }
.App-link { .link {
color: #b318f0; color: #b318f0;
} }
@keyframes App-logo-spin { @keyframes logo-spin {
from { from {
transform: rotate(0deg); transform: rotate(0deg);
} }
+3 -3
View File
@@ -1,4 +1,4 @@
import { render } from "solid-js/dom"; import { render } from "solid-js/web";
import "./index.css"; import "./index.css";
import App from "./App"; import App from "./App";
@@ -6,6 +6,6 @@ import App from "./App";
const dispose = render(App, document.getElementById("root")); const dispose = render(App, document.getElementById("root"));
if (import.meta.hot) { if (import.meta.hot) {
import.meta.hot.accept() import.meta.hot.accept();
import.meta.hot.dispose(dispose) import.meta.hot.dispose(dispose);
} }
+4
View File
@@ -3,4 +3,8 @@ import solidPlugin from "vite-plugin-solid";
export default defineConfig({ export default defineConfig({
plugins: [solidPlugin()], plugins: [solidPlugin()],
build: {
target: "esnext",
polyfillDynamicImport: false,
},
}); });
+8 -4
View File
@@ -1,14 +1,18 @@
## Usage ## Usage
```bash Those templates dependencies are maintained via [pnpm](https://pnpm.js.org/) via `pnpm up -i --latest`.
$ npm install # or pnpm install or yarn install This is the reason you see a `pnpm-lock.yaml`. This is my favorite package manager because it's fast and doesn't bloat the `node_modules` folder.
```
Note that any package manager should work. I'd just advice you to remove the `pnpm-lock.yml` file before doing an install via your package manager of choice.
```bash
$ pnpm install # or npm install or yarn install
```
## Available Scripts ## Available Scripts
In the project directory, you can run: In the project directory, you can run:
### `npm start` ### `npm run dev`
Runs the app in the development mode.<br> Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
+2 -2
View File
@@ -8,8 +8,8 @@
}, },
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"vite": "^2.0.0-beta.33", "vite": "^2.0.0-beta.44",
"vite-plugin-solid": "^0.6.0" "vite-plugin-solid": "^0.7.0"
}, },
"dependencies": { "dependencies": {
"solid-js": "^0.23.11" "solid-js": "^0.23.11"
+15 -15
View File
@@ -1,8 +1,8 @@
dependencies: dependencies:
solid-js: 0.23.11 solid-js: 0.23.11
devDependencies: devDependencies:
vite: 2.0.0-beta.33 vite: 2.0.0-beta.44
vite-plugin-solid: 0.6.0 vite-plugin-solid: 0.7.0
lockfileVersion: 5.2 lockfileVersion: 5.2
packages: packages:
/@babel/code-frame/7.12.11: /@babel/code-frame/7.12.11:
@@ -295,12 +295,12 @@ packages:
optional: true optional: true
resolution: resolution:
integrity: sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== integrity: sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==
/esbuild/0.8.33: /esbuild/0.8.34:
dev: true dev: true
hasBin: true hasBin: true
requiresBuild: true requiresBuild: true
resolution: resolution:
integrity: sha512-2ms/P6Y9zJfopR9dKo2vHzhXKfGSNlquVVoVOF8YnhjuzZVrvManMVBPadBsR/t7jzIkRnwqvxrs7d4f3C3eyg== integrity: sha512-tnr0V1ooakYr1aRLXQLzCn2GVG1kBTW3FWpRyC+NgrR3ntsouVpJOlTOV0BS4YLATx3/c+x3h/uBq9lWJlUAtQ==
/escape-string-regexp/1.0.5: /escape-string-regexp/1.0.5:
dev: true dev: true
engines: engines:
@@ -413,7 +413,7 @@ packages:
dev: true dev: true
resolution: resolution:
integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==
/rollup/2.37.0: /rollup/2.38.0:
dev: true dev: true
engines: engines:
node: '>=10.0.0' node: '>=10.0.0'
@@ -421,7 +421,7 @@ packages:
optionalDependencies: optionalDependencies:
fsevents: 2.1.3 fsevents: 2.1.3
resolution: resolution:
integrity: sha512-cbxuxkMGCQV+TnVh+yZSUerbVb5i8soRydbzHYoMNojgt7MMi+jDLLs24U9HHCssKkwkXmsj+LXcOZMldTbz2w== integrity: sha512-ay9zDiNitZK/LNE/EM2+v5CZ7drkB2xyDljvb1fQJCGnq43ZWRkhxN145oV8GmoW1YNi4sA/1Jdkr2LfawJoXw==
/safe-buffer/5.1.2: /safe-buffer/5.1.2:
dev: true dev: true
resolution: resolution:
@@ -460,22 +460,22 @@ packages:
node: '>=4' node: '>=4'
resolution: resolution:
integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=
/vite-plugin-solid/0.6.0: /vite-plugin-solid/0.7.0:
dependencies: dependencies:
'@babel/core': 7.12.10 '@babel/core': 7.12.10
'@babel/preset-typescript': 7.12.7_@[email protected] '@babel/preset-typescript': 7.12.7_@[email protected]
babel-preset-solid: 0.23.8_@[email protected] babel-preset-solid: 0.23.8_@[email protected]
solid-js: 0.23.11 solid-js: 0.23.11
vite: 2.0.0-beta.33 vite: 2.0.0-beta.44
dev: true dev: true
resolution: resolution:
integrity: sha512-nGF87Mh6g5ZKsmausJRRl1MQRduv2T/v57JZQVYPAtLhIboVE62BtfXBkVNKHBhU7WoKM+0wCm5bt34uEJwrRw== integrity: sha512-gU0xb5zFpjIZiCvPpyir5fSBDIUPC2S32NYdJ9x8pbA/W0J/bzfB5yw2DTa7ZQoFXfnkNWZsEdsjkGXhw0aHTw==
/vite/2.0.0-beta.33: /vite/2.0.0-beta.44:
dependencies: dependencies:
esbuild: 0.8.33 esbuild: 0.8.34
postcss: 8.2.4 postcss: 8.2.4
resolve: 1.19.0 resolve: 1.19.0
rollup: 2.37.0 rollup: 2.38.0
dev: true dev: true
engines: engines:
node: '>=12.0.0' node: '>=12.0.0'
@@ -483,8 +483,8 @@ packages:
optionalDependencies: optionalDependencies:
fsevents: 2.1.3 fsevents: 2.1.3
resolution: resolution:
integrity: sha512-vg7rZbO19w1+nkV3fXsk0ggfI7J8DBDm74olVKgN7/SarrlisOZI/YWwP4XybGVNPnsSsOG9pKXhXl1mY6Oe5A== integrity: sha512-NTzmP7HEKDg3J5r3I22f87jK3ugPVEU81BQ8hWn3hNWU0msCziUlj7aHwItSUEbQA+ymqO3TBO2fN7Aa+OKckQ==
specifiers: specifiers:
solid-js: ^0.23.11 solid-js: ^0.23.11
vite: ^2.0.0-beta.33 vite: ^2.0.0-beta.44
vite-plugin-solid: ^0.6.0 vite-plugin-solid: ^0.7.0
+2 -2
View File
@@ -1,7 +1,7 @@
import { Component } from "solid-js"; import type { Component } from "solid-js";
const App: Component = () => { const App: Component = () => {
return <p>minimal</p>; return <h1>Hello world!</h1>;
}; };
export default App; export default App;
+1 -1
View File
@@ -1,4 +1,4 @@
import { render } from "solid-js/dom"; import { render } from "solid-js/web";
import App from "./App"; import App from "./App";
+4
View File
@@ -3,4 +3,8 @@ import solidPlugin from "vite-plugin-solid";
export default defineConfig({ export default defineConfig({
plugins: [solidPlugin()], plugins: [solidPlugin()],
build: {
target: "esnext",
polyfillDynamicImport: false,
},
}); });
+6 -1
View File
@@ -1,7 +1,12 @@
## Usage ## Usage
Those templates dependencies are maintained via [pnpm](https://pnpm.js.org/) via `pnpm up -i --latest`.
This is the reason you see a `pnpm-lock.yaml`. This is my favorite package manager because it's fast and doesn't bloat the `node_modules` folder.
Note that any package manager should work. I'd just advice you to remove the `pnpm-lock.yml` file before doing an install via your package manager of choice.
```bash ```bash
$ npm install # or pnpm install or yarn install $ pnpm install # or npm install or yarn install
``` ```
## Available Scripts ## Available Scripts
+3 -3
View File
@@ -3,13 +3,13 @@
"version": "0.0.0", "version": "0.0.0",
"description": "My solid + vite project + ts", "description": "My solid + vite project + ts",
"scripts": { "scripts": {
"dev": "vite", "start": "vite",
"build": "vite build" "build": "vite build"
}, },
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"vite": "^2.0.0-beta.33", "vite": "^2.0.0-beta.44",
"vite-plugin-solid": "^0.6.0" "vite-plugin-solid": "^0.7.0"
}, },
"dependencies": { "dependencies": {
"solid-js": "^0.23.11" "solid-js": "^0.23.11"
+15 -15
View File
@@ -1,8 +1,8 @@
dependencies: dependencies:
solid-js: 0.23.11 solid-js: 0.23.11
devDependencies: devDependencies:
vite: 2.0.0-beta.33 vite: 2.0.0-beta.44
vite-plugin-solid: 0.6.0 vite-plugin-solid: 0.7.0
lockfileVersion: 5.2 lockfileVersion: 5.2
packages: packages:
/@babel/code-frame/7.12.11: /@babel/code-frame/7.12.11:
@@ -295,12 +295,12 @@ packages:
optional: true optional: true
resolution: resolution:
integrity: sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ== integrity: sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==
/esbuild/0.8.33: /esbuild/0.8.34:
dev: true dev: true
hasBin: true hasBin: true
requiresBuild: true requiresBuild: true
resolution: resolution:
integrity: sha512-2ms/P6Y9zJfopR9dKo2vHzhXKfGSNlquVVoVOF8YnhjuzZVrvManMVBPadBsR/t7jzIkRnwqvxrs7d4f3C3eyg== integrity: sha512-tnr0V1ooakYr1aRLXQLzCn2GVG1kBTW3FWpRyC+NgrR3ntsouVpJOlTOV0BS4YLATx3/c+x3h/uBq9lWJlUAtQ==
/escape-string-regexp/1.0.5: /escape-string-regexp/1.0.5:
dev: true dev: true
engines: engines:
@@ -413,7 +413,7 @@ packages:
dev: true dev: true
resolution: resolution:
integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg== integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==
/rollup/2.37.0: /rollup/2.38.0:
dev: true dev: true
engines: engines:
node: '>=10.0.0' node: '>=10.0.0'
@@ -421,7 +421,7 @@ packages:
optionalDependencies: optionalDependencies:
fsevents: 2.1.3 fsevents: 2.1.3
resolution: resolution:
integrity: sha512-cbxuxkMGCQV+TnVh+yZSUerbVb5i8soRydbzHYoMNojgt7MMi+jDLLs24U9HHCssKkwkXmsj+LXcOZMldTbz2w== integrity: sha512-ay9zDiNitZK/LNE/EM2+v5CZ7drkB2xyDljvb1fQJCGnq43ZWRkhxN145oV8GmoW1YNi4sA/1Jdkr2LfawJoXw==
/safe-buffer/5.1.2: /safe-buffer/5.1.2:
dev: true dev: true
resolution: resolution:
@@ -460,22 +460,22 @@ packages:
node: '>=4' node: '>=4'
resolution: resolution:
integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= integrity: sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=
/vite-plugin-solid/0.6.0: /vite-plugin-solid/0.7.0:
dependencies: dependencies:
'@babel/core': 7.12.10 '@babel/core': 7.12.10
'@babel/preset-typescript': 7.12.7_@[email protected] '@babel/preset-typescript': 7.12.7_@[email protected]
babel-preset-solid: 0.23.8_@[email protected] babel-preset-solid: 0.23.8_@[email protected]
solid-js: 0.23.11 solid-js: 0.23.11
vite: 2.0.0-beta.33 vite: 2.0.0-beta.44
dev: true dev: true
resolution: resolution:
integrity: sha512-nGF87Mh6g5ZKsmausJRRl1MQRduv2T/v57JZQVYPAtLhIboVE62BtfXBkVNKHBhU7WoKM+0wCm5bt34uEJwrRw== integrity: sha512-gU0xb5zFpjIZiCvPpyir5fSBDIUPC2S32NYdJ9x8pbA/W0J/bzfB5yw2DTa7ZQoFXfnkNWZsEdsjkGXhw0aHTw==
/vite/2.0.0-beta.33: /vite/2.0.0-beta.44:
dependencies: dependencies:
esbuild: 0.8.33 esbuild: 0.8.34
postcss: 8.2.4 postcss: 8.2.4
resolve: 1.19.0 resolve: 1.19.0
rollup: 2.37.0 rollup: 2.38.0
dev: true dev: true
engines: engines:
node: '>=12.0.0' node: '>=12.0.0'
@@ -483,8 +483,8 @@ packages:
optionalDependencies: optionalDependencies:
fsevents: 2.1.3 fsevents: 2.1.3
resolution: resolution:
integrity: sha512-vg7rZbO19w1+nkV3fXsk0ggfI7J8DBDm74olVKgN7/SarrlisOZI/YWwP4XybGVNPnsSsOG9pKXhXl1mY6Oe5A== integrity: sha512-NTzmP7HEKDg3J5r3I22f87jK3ugPVEU81BQ8hWn3hNWU0msCziUlj7aHwItSUEbQA+ymqO3TBO2fN7Aa+OKckQ==
specifiers: specifiers:
solid-js: ^0.23.11 solid-js: ^0.23.11
vite: ^2.0.0-beta.33 vite: ^2.0.0-beta.44
vite-plugin-solid: ^0.6.0 vite-plugin-solid: ^0.7.0
+5 -5
View File
@@ -2,13 +2,13 @@
text-align: center; text-align: center;
} }
.App-logo { .logo {
animation: App-logo-spin infinite 20s linear; animation: logo-spin infinite 20s linear;
height: 40vmin; height: 40vmin;
pointer-events: none; pointer-events: none;
} }
.App-header { .header {
background-color: #282c34; background-color: #282c34;
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
@@ -19,11 +19,11 @@
color: white; color: white;
} }
.App-link { .link {
color: #b318f0; color: #b318f0;
} }
@keyframes App-logo-spin { @keyframes logo-spin {
from { from {
transform: rotate(0deg); transform: rotate(0deg);
} }
+7 -6
View File
@@ -1,17 +1,18 @@
import type { Component } from "solid-js";
import logo from "./logo.svg"; import logo from "./logo.svg";
import "./App.css"; import styles from "./App.module.css";
import { Component } from "solid-js";
const App: Component = () => { const App: Component = () => {
return ( return (
<div class="App"> <div class={styles.App}>
<header class="App-header"> <header class={styles.header}>
<img src={logo} class="App-logo" alt="logo" /> <img src={logo} class={styles.logo} alt="logo" />
<p> <p>
Edit <code>src/App.tsx</code> and save to reload. Edit <code>src/App.tsx</code> and save to reload.
</p> </p>
<a <a
class="App-link" class={styles.link}
href="https://github.com/ryansolid/solid" href="https://github.com/ryansolid/solid"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
+1 -1
View File
@@ -1,4 +1,4 @@
import { render } from "solid-js/dom"; import { render } from "solid-js/web";
import "./index.css"; import "./index.css";
import App from "./App"; import App from "./App";
+4
View File
@@ -3,4 +3,8 @@ import solidPlugin from "vite-plugin-solid";
export default defineConfig({ export default defineConfig({
plugins: [solidPlugin()], plugins: [solidPlugin()],
build: {
target: "esnext",
polyfillDynamicImport: false,
},
}); });