Skip to content

Commit

Permalink
⬆️ Update dependencies and minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amoutonbrady committed Jan 30, 2021
1 parent b723b26 commit b37df18
Show file tree
Hide file tree
Showing 10 changed files with 99 additions and 74 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-solid",
"version": "0.7.0",
"version": "0.7.1",
"description": "solid-js integration plugin for vite 2",
"files": [
"dist"
Expand Down Expand Up @@ -46,18 +46,19 @@
"@babel/core": "^7.12.7",
"@babel/preset-typescript": "^7.12.7",
"babel-preset-solid": "^0.23",
"resolve.exports": "^1.0.2",
"solid-js": "^0.23.11",
"vite": "^2.0.0-beta.44"
"vite": "^2.0.0-beta.59"
},
"devDependencies": {
"@babel/plugin-transform-typescript": "^7.12.1",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-node-resolve": "^11.1.0",
"@rollup/plugin-babel": "^5.2.3",
"@rollup/plugin-node-resolve": "^11.1.1",
"@skypack/package-check": "^0.2.2",
"@types/babel__core": "^7.1.12",
"@types/node": "^14.14.22",
"prettier": "^2.2.1",
"rollup": "^2.38.0",
"rollup": "^2.38.1",
"rollup-plugin-cleaner": "^1.0.0",
"typescript": "^4.1.2"
}
Expand Down
26 changes: 14 additions & 12 deletions playground/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import { lazy } from 'solid-js';
import { render } from 'solid-js/web';
import { Link } from 'solid-app-router';
import { MetaProvider } from 'solid-meta';
import { Router, Route, RouteDefinition } from 'solid-app-router';
import { Link } from 'solid-app-router';
import { render } from 'solid-js/web';
import { createApp } from 'solid-utils';

const pages = import.meta.globEager('./pages/*.tsx');

const routes = Object.entries(pages).map<RouteDefinition>(([file, { default: component }]) => {
const path = file
.replace('./pages', '')
.replace('index', '')
.replace(/\.[tj]sx?/gi, '');
import Home from './pages';

return { component, path } as RouteDefinition;
});
const routes: RouteDefinition[] = [
{
path: '/',
component: Home,
},
{
path: '/about',
component: lazy(() => import('./pages/about')),
},
];

const App = () => (
<>
Expand Down
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"author": "Alexandre Mouton-Brady",
"license": "ISC",
"devDependencies": {
"vite": "^2.0.0-beta.44"
"vite": "^2.0.0-beta.59"
},
"dependencies": {
"solid-app-router": "^0.0.19",
"solid-js": "^0.23.11",
"solid-meta": "^0.23.11",
"solid-utils": "^0.2.0"
"solid-utils": "^0.2.1"
}
}
4 changes: 2 additions & 2 deletions playground/pages/about.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default () => {
export default function About() {
return <h1>Hello about</h1>;
};
}
4 changes: 2 additions & 2 deletions playground/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Title } from 'solid-meta';

export default () => {
export default function Home() {
return (
<>
<Title>Home!!!</Title>
<h1>Hello home</h1>
</>
);
};
}
28 changes: 14 additions & 14 deletions playground/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import solid from '..';
import type { UserConfig } from 'vite';
import solid from '../src';
import { defineConfig } from 'vite';

const config: UserConfig = {
export default defineConfig({
plugins: [solid()],
};

export default config;
});
66 changes: 37 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b37df18

Please sign in to comment.