vite-plugin-hyperapp 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Add the plugin to your Vite config:
|
|
|
18
18
|
```js
|
|
19
19
|
// vite.config.js
|
|
20
20
|
import { defineConfig } from 'vite'
|
|
21
|
-
import
|
|
21
|
+
import hyperapp from 'vite-plugin-hyperapp'
|
|
22
22
|
|
|
23
23
|
export default defineConfig({
|
|
24
24
|
plugins: [hyperapp()],
|
|
@@ -166,7 +166,7 @@ If HMR is giving you grief, simply disable it by setting the `hmr` option to `fa
|
|
|
166
166
|
```js
|
|
167
167
|
// vite.config.js
|
|
168
168
|
import { defineConfig } from 'vite'
|
|
169
|
-
import
|
|
169
|
+
import hyperapp from 'vite-plugin-hyperapp'
|
|
170
170
|
|
|
171
171
|
export default defineConfig({
|
|
172
172
|
plugins: [hyperapp({
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAA;AAO5E,MAAM,UAAU,QAAQ,CAAC,OAAO,GAAoB,EAAE;IACpD,MAAM,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,CAAA;IAC/B,IAAI,OAAO,CAAC,GAAG,KAAK,KAAK;QAAE,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAA;IACtD,IAAI,OAAO,CAAC,wBAAwB;QAAE,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAA;IACpF,OAAO,OAAO,CAAA;AAChB,CAAC","sourcesContent":["import type { Plugin } from 'vite'\nimport { hyperappJsx } from './jsx/vite.ts'\nimport { hyperappHmr } from './hmr/vite.ts'\nimport { safariExternalSourcemapsPlugin } from './safari-sourcemaps/vite.ts'\n\nexport type HyperappOptions = {\n hmr?: boolean\n safariExternalSourcemaps?: boolean\n}\n\nexport function hyperapp(options: HyperappOptions = {}): Plugin[] {\n const plugins = [hyperappJsx()]\n if (options.hmr !== false) plugins.push(hyperappHmr())\n if (options.safariExternalSourcemaps) plugins.push(safariExternalSourcemapsPlugin())\n return plugins\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAA;AAO5E,MAAM,UAAU,QAAQ,CAAC,OAAO,GAAoB,EAAE;IACpD,MAAM,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,CAAA;IAC/B,IAAI,OAAO,CAAC,GAAG,KAAK,KAAK;QAAE,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAA;IACtD,IAAI,OAAO,CAAC,wBAAwB;QAAE,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAA;IACpF,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,eAAe,QAAQ,CAAA","sourcesContent":["import type { Plugin } from 'vite'\nimport { hyperappJsx } from './jsx/vite.ts'\nimport { hyperappHmr } from './hmr/vite.ts'\nimport { safariExternalSourcemapsPlugin } from './safari-sourcemaps/vite.ts'\n\nexport type HyperappOptions = {\n hmr?: boolean\n safariExternalSourcemaps?: boolean\n}\n\nexport function hyperapp(options: HyperappOptions = {}): Plugin[] {\n const plugins = [hyperappJsx()]\n if (options.hmr !== false) plugins.push(hyperappHmr())\n if (options.safariExternalSourcemaps) plugins.push(safariExternalSourcemapsPlugin())\n return plugins\n}\n\nexport default hyperapp\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-hyperapp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Plugin and helpers for using Hyperapp with Vite",
|
|
6
6
|
"author": "Zacharias Enochsson",
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
|
-
"files": [
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
28
30
|
"scripts": {
|
|
29
31
|
"build": "tsc -p tsconfig.build.json",
|
|
30
32
|
"test": "npm run build && vitest run"
|