revine 1.1.1 → 1.1.2
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.d.ts","sourceRoot":"","sources":["../../../../src/runtime/bundler/defaults/vite.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/runtime/bundler/defaults/vite.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import react from "@vitejs/plugin-react";
|
|
2
|
+
import path from "path";
|
|
2
3
|
import { revinePlugin } from "../revinePlugin.js";
|
|
3
4
|
import { revineLoggerPlugin } from "../viteLoggerPlugin.js";
|
|
4
5
|
export const defaultViteConfig = {
|
|
@@ -7,6 +8,12 @@ export const defaultViteConfig = {
|
|
|
7
8
|
// Only expose env variables prefixed with REVINE_PUBLIC_ to the browser bundle.
|
|
8
9
|
// Variables without this prefix are never included in client-side code.
|
|
9
10
|
envPrefix: "REVINE_PUBLIC_",
|
|
11
|
+
resolve: {
|
|
12
|
+
alias: {
|
|
13
|
+
// @ always points to the user's project /src directory
|
|
14
|
+
"@": path.resolve(process.cwd(), "src"),
|
|
15
|
+
},
|
|
16
|
+
},
|
|
10
17
|
server: {
|
|
11
18
|
clearScreen: false,
|
|
12
19
|
open: false,
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import react from "@vitejs/plugin-react";
|
|
2
|
+
import path from "path";
|
|
2
3
|
import { revinePlugin } from "../revinePlugin.js";
|
|
3
4
|
import { revineLoggerPlugin } from "../viteLoggerPlugin.js";
|
|
4
5
|
|
|
@@ -8,6 +9,12 @@ export const defaultViteConfig = {
|
|
|
8
9
|
// Only expose env variables prefixed with REVINE_PUBLIC_ to the browser bundle.
|
|
9
10
|
// Variables without this prefix are never included in client-side code.
|
|
10
11
|
envPrefix: "REVINE_PUBLIC_",
|
|
12
|
+
resolve: {
|
|
13
|
+
alias: {
|
|
14
|
+
// @ always points to the user's project /src directory
|
|
15
|
+
"@": path.resolve(process.cwd(), "src"),
|
|
16
|
+
},
|
|
17
|
+
},
|
|
11
18
|
server: {
|
|
12
19
|
clearScreen: false,
|
|
13
20
|
open: false,
|