-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Build site using Vite #3022
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Pull Request Test Coverage Report for Build 7660493092
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
st
index.html
Outdated
@@ -2,7 +2,7 @@ | |||
<html lang="en"> | |||
<head> | |||
<meta charset="utf-8" /> | |||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" /> | |||
<!-- <link rel="shortcut icon" href="%VITE_BASE_URL%/favicon.ico" /> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it still required?
src/modules/worlds/sagas.ts
Outdated
@@ -31,7 +32,7 @@ function* handlefetchWorldsWalletStatsRequest(action: FetchWalletWorldsStatsRequ | |||
|
|||
yield put(fetchWorldsWalletStatsSuccess(address, stats)) | |||
} catch (e) { | |||
yield put(fetchWorldsWalletStatsFailure(address, e.message)) | |||
yield put(fetchWorldsWalletStatsFailure(address, isErrorWithMessage(e) ? e.message : 'Unknown')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yield put(fetchWorldsWalletStatsFailure(address, isErrorWithMessage(e) ? e.message : 'Unknown')) | |
yield put(fetchWorldsWalletStatsFailure(address, isErrorWithMessage(e) ? e.message : 'Unknown error')) |
src/modules/project/export.ts
Outdated
import * as ECS from 'decentraland-ecs' | ||
import { SceneWriter, LightweightWriter } from 'dcl-scene-writer' | ||
import packageJson from 'decentraland/samples/ecs/package.json' | ||
import { isErrorWithMessage } from 'decentraland-dapps/dist/lib/error' | ||
import sceneJsonSample from 'decentraland/samples/ecs/scene.json' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to lazy load this one too?
import sceneJsonSample from 'decentraland/samples/ecs/scene.json'
src/modules/common/store.ts
Outdated
@@ -40,15 +40,10 @@ import { rootSaga } from './sagas' | |||
import { RootState, RootStore } from './types' | |||
|
|||
// eslint-disable-next-line @typescript-eslint/no-var-requires | |||
const builderVersion = require('../../../package.json').version | |||
// const builderVersion = require('../../../package.json').version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still required? 🤔
src/lib/date.ts
Outdated
@@ -39,6 +39,7 @@ export function formatTime(seconds: number) { | |||
} | |||
|
|||
function includeLocale(options: Options): Options { | |||
console.log('Current locale', getCurrentLocale) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wildconsole.log
appeared!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 🚀 🚀
This PR changes the build mechanism to use Vite.
It also:
isErrorWithMessage
which was required due to the TS upgrade.modules/modals/actions