@epilot360/webpack-config-epilot360 2.5.7 → 2.5.8

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.
@@ -54,10 +54,14 @@ function webpackConfigEpilot360ReactApp(opts) {
54
54
  const legacyEntrypoint = path.resolve(
55
55
  process.cwd(),
56
56
  'src',
57
- `${opts.orgName}-${opts.projectName}.tsx`
57
+ `${opts.orgName}-${opts.projectName}.ts`
58
58
  )
59
59
 
60
- const fileExists = (path) => fs.existsSync(path) ? path : null
60
+ const fileExists = (path) => {
61
+ if (fs.existsSync(path)) return path
62
+ if (fs.existsSync(path + 'x')) return path + 'x'
63
+ return null
64
+ }
61
65
 
62
66
  return {
63
67
  mode: isProduction ? "production" : "development",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot360/webpack-config-epilot360",
3
- "version": "2.5.7",
3
+ "version": "2.5.8",
4
4
  "description": "A webpack config for in-browser modules used with single-spa for Epilot360",
5
5
  "main": "lib/webpack-config-epilot360-portal.js",
6
6
  "directories": {