Skip to content

Commit

Permalink
chore(docs): import defaultAssetExts (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
huextrat authored Jul 17, 2024
1 parent a1699b4 commit d8a3fde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/guides/GETTING_STARTED.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ You'll likely import 3D related files when using react-native-filament. To make
```js
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');

const defaultConfig = getDefaultConfig(__dirname)

/**
* Metro configuration
* https://metrobundler.dev/docs/configuration
Expand All @@ -110,12 +112,10 @@ const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const config = {
resolver: {
// This makes it possible to import .glb files in your code:
assetExts: ['glb']
assetExts: [...(defaultConfig.resolver?.assetExts || []), 'glb']
}
};

const defaultConfig = getDefaultConfig(__dirname)

module.exports = mergeConfig(defaultConfig, config);
```
Expand Down

0 comments on commit d8a3fde

Please sign in to comment.