@rpcbase/vite 0.5.0 → 0.7.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.
Files changed (2) hide show
  1. package/index.js +2 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -54,9 +54,10 @@ const getBaseConfig = ({ command, mode, isSsrBuild, isPreview }) => {
54
54
  clearScreen: false,
55
55
  plugins: [react(), tailwindcss()],
56
56
  define: {
57
- "process.env": {
57
+ "__vite_env__": {
58
58
  ...env,
59
59
  },
60
+ // "process.env.NODE_DEBUG": JSON.stringify(process.env.NODE_DEBUG),
60
61
  },
61
62
  publicDir: path.join(process.cwd(), "./src/client/public"),
62
63
  build: {
@@ -118,10 +119,6 @@ export const extendConfig = (userConfig) => {
118
119
  const baseConfig = getBaseConfig({ command, mode, isSsrBuild, isPreview })
119
120
  return mergeConfig(baseConfig, config)
120
121
  })
121
-
122
- // return defineConfig(())
123
- // // userConfig /*: Record<string, any>*/
124
- // return mergeConfig(defineConfig(baseConfig), userConfig)
125
122
  }
126
123
 
127
124
  export const createServer = async (config /* : Record<string, any>*/) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/vite",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "scripts": {