zustand/examples/config-overrides.js
Mike 97d2da70be
feat(example): Upgrade threejs related packages to the latest version (#1086)
* build(deps)(example): Bump versions for packages related to `three`

1. Bump versions for `@react-three/drei`, `@react-three/fiber`, `@react-three/postprocessing`, and `three`.
2. Update the imported package from files.
3. Update the usage of `useAspect`.
4. Rename `useTextureLoader` to `useTexture`.
5. Replace deprecated `state.pointer` with `state.mouse` in `useFrame`.

* build: Remove the tree shaking for package three

Removing it because the code in config-overrides is causing error
on yarn start, will put it back later if tree shaking is still
necessary, maybe with anothor approach.

* fix: incorrect size of scene

* fix: replace package "threejs-meshline" with "meshline"

The threejs-meshline cannot work with new version of @react-three/*,
changing it to meshline fixes the problem.

* fix: brightness of texture

The textures became too bright after the upgrade, changing the
gl_FragColor in `layerMaterial` makes them back to normal.

* refactor: replace deprecated props of DepthOfField

Props with and height has been renamed to resolutionX and resolutionY
ref: https://github.com/pmndrs/postprocessing/releases/tag/v6.27.0

* fix: increase resolution to fix dof effect
2022-07-15 18:13:14 +09:00

7 lines
210 B
JavaScript

const { override } = require('customize-cra')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = override(
//addWebpackPlugin(new BundleAnalyzerPlugin())
)