tonka-vite-plugin 1.10.0 → 1.11.0
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/bin/index.js +6 -6
- package/lib/index.d.ts +7 -1
- package/package.json +3 -3
package/bin/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
|
-
export default function(
|
|
2
|
+
export default function() {
|
|
3
3
|
return {
|
|
4
4
|
name: 'rollup-plugin-tonka-vite',
|
|
5
5
|
transformIndexHtml: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
order: 'pre',
|
|
7
|
+
async handler() {
|
|
8
|
+
return await fs.promises.readFile('./resources/views/app.twig.php', 'utf8');
|
|
9
|
+
}
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
}
|
|
12
12
|
}
|
package/lib/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tonka-vite-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Tonka vite plugin for Inertia",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "./bin/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
"url": "https://github.com/clicalmani/inertia-vite-plugin/issues"
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/clicalmani/inertia-vite-plugin#readme"
|
|
24
|
-
}
|
|
24
|
+
}
|