@adonisjs/vite 0.0.1-2 → 0.0.1-3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite_provider.d.ts","sourceRoot":"","sources":["../../providers/vite_provider.ts"],"names":[],"mappings":"AASA,OAAO,gBAAgB,CAAA;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAKzD,MAAM,CAAC,OAAO,OAAO,mBAAmB;;IAC1B,SAAS,CAAC,GAAG,EAAE,kBAAkB;gBAAvB,GAAG,EAAE,kBAAkB;IA2D7C,QAAQ;IAIF,IAAI;
|
|
1
|
+
{"version":3,"file":"vite_provider.d.ts","sourceRoot":"","sources":["../../providers/vite_provider.ts"],"names":[],"mappings":"AASA,OAAO,gBAAgB,CAAA;AACvB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAKzD,MAAM,CAAC,OAAO,OAAO,mBAAmB;;IAC1B,SAAS,CAAC,GAAG,EAAE,kBAAkB;gBAAvB,GAAG,EAAE,kBAAkB;IA2D7C,QAAQ;IAIF,IAAI;CAUX"}
|
|
@@ -42,6 +42,7 @@ export default class ViteServiceProvider {
|
|
|
42
42
|
const view = await this.app.container.make('view');
|
|
43
43
|
const vite = await this.app.container.make('vite');
|
|
44
44
|
view.global('vite', vite);
|
|
45
|
+
view.global('asset', vite.assetPath.bind(vite));
|
|
45
46
|
this.#registerViteTag(view);
|
|
46
47
|
this.#registerViteReactTag(view);
|
|
47
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../stubs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../stubs/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QAA8B,CAAA"}
|
package/build/stubs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export const stubsRoot =
|
|
1
|
+
import { getDirname } from '@poppinss/utils';
|
|
2
|
+
export const stubsRoot = getDirname(import.meta.url);
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
to: {{ destination }}
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import { defineConfig } from
|
|
6
|
-
import Adonis from
|
|
5
|
+
import { defineConfig } from "vite";
|
|
6
|
+
import Adonis from "@adonisjs/vite/plugin";
|
|
7
7
|
|
|
8
8
|
export default defineConfig({
|
|
9
9
|
plugins: [
|
|
10
10
|
Adonis({
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Entrypoints of your application. Each entrypoint will
|
|
13
|
+
* result in a separate bundle.
|
|
14
|
+
*/
|
|
15
|
+
entrypoints: ["resources/js/app.js"],
|
|
12
16
|
}),
|
|
13
17
|
],
|
|
14
|
-
})
|
|
18
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/vite",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-3",
|
|
4
4
|
"description": "Vite plugin for Adonis.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -77,7 +77,6 @@
|
|
|
77
77
|
"c8": "^7.13.0",
|
|
78
78
|
"copyfiles": "^2.4.1",
|
|
79
79
|
"del-cli": "^5.0.0",
|
|
80
|
-
"desm": "^1.3.0",
|
|
81
80
|
"eslint": "^8.39.0",
|
|
82
81
|
"eslint-config-prettier": "^8.8.0",
|
|
83
82
|
"eslint-plugin-adonis": "^3.0.3",
|