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.
@@ -2,6 +2,11 @@ export declare const defaultViteConfig: {
2
2
  plugins: any[];
3
3
  logLevel: string;
4
4
  envPrefix: string;
5
+ resolve: {
6
+ alias: {
7
+ "@": string;
8
+ };
9
+ };
5
10
  server: {
6
11
  clearScreen: boolean;
7
12
  open: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../../../src/runtime/bundler/defaults/vite.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAgB7B,CAAC"}
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,6 +1,6 @@
1
1
  {
2
2
  "name": "revine",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A react framework, but better.",
5
5
  "license": "MIT",
6
6
  "author": "Rachit Bharadwaj",
@@ -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,