eddev 2.0.0-beta.112 → 2.0.0-beta.113

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
- export declare const VERSION = "2.0.0-beta.112";
1
+ export declare const VERSION = "2.0.0-beta.113";
@@ -1 +1 @@
1
- export const VERSION = "2.0.0-beta.112";
1
+ export const VERSION = "2.0.0-beta.113";
@@ -164,6 +164,7 @@ export function getViteConfig(args) {
164
164
  logger.clearScreen = () => {
165
165
  args.console.resetLog();
166
166
  };
167
+ const entryFile = `./.eddev/${args.mode === "production" ? "prod" : "dev"}-spa/entry.${args.target === "cms" ? "admin" : "client"}.tsx`;
167
168
  /** Initial config */
168
169
  const config = {
169
170
  appType: "custom",
@@ -182,15 +183,16 @@ export function getViteConfig(args) {
182
183
  minify: args.mode === "production",
183
184
  modulePreload: false,
184
185
  outDir: args.outDir,
185
- lib: {
186
- entry: [
187
- `./.eddev/${args.mode === "production" ? "prod" : "dev"}-spa/entry.${args.target === "cms" ? "admin" : "client"}.tsx`,
188
- ],
189
- fileName: (format, entryName) => `${entryName}.${format}.js`,
190
- name: "eddev",
191
- formats: args.target === "cms" ? ["iife"] : ["es"],
192
- },
186
+ lib: args.target === "cms"
187
+ ? {
188
+ entry: [entryFile],
189
+ fileName: (format, entryName) => `${entryName}.${format}.js`,
190
+ name: "eddev",
191
+ formats: args.target === "cms" ? ["iife"] : ["es"],
192
+ }
193
+ : undefined,
193
194
  rollupOptions: {
195
+ input: args.target === "frontend" ? entryFile : "./.eddev/prod-spa/entry.admin.tsx",
194
196
  external: args.target === "cms" ? ["react", "react-dom"] : [],
195
197
  onwarn(warning, warn) {
196
198
  if (!cliMode.verbose &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.112",
3
+ "version": "2.0.0-beta.113",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",