@promoboxx/react-scripts-vite 0.1.15 → 0.1.16

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/dist/viteConfig.js +3 -58
  2. package/package.json +1 -1
@@ -16,10 +16,8 @@ exports.default = (0, config_1.defineConfig)({
16
16
  },
17
17
  plugins: [
18
18
  // React specific.
19
- // process.env.NODE_ENV !== 'test' && reactRefresh(),
20
19
  (0, plugin_react_1.default)(),
21
20
  (0, vite_plugin_svgr_1.default)(),
22
- // reactJsx(),
23
21
  // import.meta.env -> process.env
24
22
  (0, vite_plugin_env_compatible_1.default)(),
25
23
  // Support TypeScript paths.
@@ -34,12 +32,9 @@ exports.default = (0, config_1.defineConfig)({
34
32
  enableBuild: true,
35
33
  }),
36
34
  ],
37
- resolve: {
38
- alias: {
39
- // This fixes weird styling issues with material-ui.
40
- '@material-ui/core': '@material-ui/core/esm',
41
- '@material-ui/icons': '@material-ui/icons/esm',
42
- },
35
+ server: {
36
+ open: true,
37
+ host: '0.0.0.0',
43
38
  },
44
39
  test: {
45
40
  globals: true,
@@ -47,54 +42,4 @@ exports.default = (0, config_1.defineConfig)({
47
42
  setupFiles: './src/test/setup.ts',
48
43
  },
49
44
  });
50
- //
51
- //
52
- //
53
- //
54
- //
55
- //
56
- //
57
- //
58
- //
59
- // import react from '@vitejs/plugin-react'
60
- // import { UserConfig } from 'vite'
61
- // import pluginChecker from 'vite-plugin-checker'
62
- // import envCompatible from 'vite-plugin-env-compatible'
63
- // import svgr from 'vite-plugin-svgr'
64
- // import tsconfigPaths from 'vite-tsconfig-paths'
65
- // const viteConfig: UserConfig = {
66
- // build: {
67
- // outDir: 'build',
68
- // sourcemap: true,
69
- // },
70
- // plugins: [
71
- // // React specific.
72
- // react(),
73
- // svgr(),
74
- // // import.meta.env -> process.env
75
- // envCompatible(),
76
- // // Support TypeScript paths.
77
- // tsconfigPaths(),
78
- // // Check for issues.
79
- // // TODO
80
- // // https://github.com/fi3ework/vite-plugin-checker/issues/68
81
- // pluginChecker({
82
- // eslint: {
83
- // lintCommand: `eslint --max-warnings=${
84
- // process.env.CI === 'true' ? 0 : -1
85
- // } "./src/**/*.{ts,tsx,js,jsx,mjs}"`,
86
- // },
87
- // typescript: true,
88
- // enableBuild: true,
89
- // }),
90
- // ],
91
- // resolve: {
92
- // alias: {
93
- // // This fixes weird styling issues with material-ui.
94
- // '@material-ui/core': '@material-ui/core/esm',
95
- // '@material-ui/icons': '@material-ui/icons/esm',
96
- // },
97
- // },
98
- // }
99
- // export default viteConfig
100
45
  //# sourceMappingURL=viteConfig.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promoboxx/react-scripts-vite",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [],