[UPD]Update to Solid 0.6.0

This commit is contained in:
Fabien BOURGEOIS 2019-05-07 15:56:05 +02:00
parent 2513e0d8a6
commit a9734f32c2
3 changed files with 9 additions and 10 deletions

View File

@ -3,7 +3,6 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import { createRoot, createSignal, createState, createEffect } from 'solid-js'; import { createRoot, createSignal, createState, createEffect } from 'solid-js';
import { r } from 'solid-js/dom';
function createLocalState(initState) { function createLocalState(initState) {
const [state, setState] = createState(initState); const [state, setState] = createState(initState);

View File

@ -16,16 +16,16 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"babel-plugin-jsx-dom-expressions": "~0.7.0",
"polka": "^0.5.2", "polka": "^0.5.2",
"sirv": "^0.4.0", "sirv": "^0.4.0"
"solid-js": "~0.5.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.1.0", "@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.3", "@babel/preset-env": "^7.4.4",
"babel-loader": "^8.0.2", "babel-loader": "^8.0.5",
"webpack": "^4.19.1", "babel-plugin-jsx-dom-expressions": "^0.8.0",
"webpack-cli": "^3.1.0" "solid-js": "~0.6.1",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.2"
} }
} }

View File

@ -19,7 +19,7 @@ module.exports = {
use: { use: {
loader: 'babel-loader', loader: 'babel-loader',
options: { options: {
plugins: ['jsx-dom-expressions'] plugins: [["jsx-dom-expressions", {moduleName: 'solid-js/dom'}]]
} }
} }
}] }]