Skip to content

Commit

Permalink
refactor(babelrc): add geojson and remove gltf from import extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff authored and Desplandis committed Mar 15, 2024
1 parent f6b6bf4 commit dd3f80d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
["babel-plugin-inline-import", {
"extensions": [
".json",
".geojson",
".glsl",
".gltf",
".css"
]
}],
Expand Down
4 changes: 3 additions & 1 deletion test/unit/gltfLoader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import assert from 'assert';
import fs from 'fs';
import { glTFLoader } from 'Parser/B3dmParser';
import gltf from '../data/gltf/Box.gltf';

const gltf = fs.readFileSync('./test/data/gltf/Box.gltf');

if (typeof atob === 'undefined') {
global.atob = b64Encoded => Buffer.from(b64Encoded, 'base64').toString('binary');
Expand Down

0 comments on commit dd3f80d

Please sign in to comment.