-
解决方法:安装 Snabbdom@v0.7.4版本
原因:v1.0.1 版本相对于 v0.7.4 版本的变化,去除了 snabbdom.ts 模块,新增了 init.ts 模块,如果使用 v1.0.1 版本的话导入 h、init 函数,文档中写的是如下的方式:
```js
import { init } from 'snabbdom/init'
import { h } from 's…
-
When importing snabbdom-pragma like so into my project
```
import Snabbdom from 'snabbdom-pragma';
```
TypeScript throws the following error
```
TS1192: Module '"/snabbdom-pragma/snabbdom-pragma…
-
由于vue2中的虚拟dom是基于snabbdom,在看vue源码中的patch吃力的时候不妨先看看snabbdom,snabbdom没有vue中的其他逻辑,代码量更少,更容易弄懂
https://github.com/snabbdom/snabbdom
-
Hello,
I am starting to play with FlimFlam and I decided to go with Rollup (ES6) + Gulp for the build tasks.
I had some problem with those lines:
```js
const patch = snabbdom.init([
require…
-
Hi! I'm just trying to get `snabbdom-to-html` working with TypeScript and I'm getting a bunch of error messages about the type definitions using `tsc` v2.4.2:
```
node_modules/snabbdom-to-html/typ…
gfmio updated
6 years ago
-
I can create a campaign by clicking through and adding a name, description etc. The campaign successfully accepts payments. If I then add a gift option, I see a bunch of JavaScript errors in the conso…
-
Hello,
I want to use the new Version 3.0 of the convert-units module because I need a couple of custom units, but the sample Code from the README seems broken. I installed the module with `yarn add…
-
I'm curious to know more about how to measure performance in `op/sec`, to have a comparison between :
* snabbdom-pragma 2.1.0
* snabbdom-pragma 1.10.0
* snabbdom/h 0.6.6
Swizz updated
6 years ago
-
## 🎛 Configuration
`tsconfig.json`
```json
{
"compilerOptions": {
"moduleResolution": "Node",
"jsx": "react",
"jsxFactory": "createCell",
"jsxFragmentFactory": "Fragment"…
-
# Overview
Add modules option for makeHTMLDriver
``` diff
import Rx from 'rx'
-import toHTML from 'snabbdom-to-html'
+import init from from 'snabbdom-to-html/init'
+import AttrsModule from 'snabbdom…