Skip to content

Commit 02ccc26

Browse files
committed
fix(soba): another attempt to load injectGLTF
1 parent 78060c0 commit 02ccc26

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: libs/plugin/src/generators/gltf/generator.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { formatFiles, logger, names, readJson, readProjectConfiguration, Tree, workspaceRoot } from '@nx/devkit';
22
import { prompt } from 'enquirer';
3-
import { loadEsmModule } from 'ng-packagr/lib/utils/load-esm';
43
import { addSobaGenerator } from '../add-soba/generator';
54

65
export interface GltfGeneratorSchema {
@@ -45,10 +44,11 @@ export async function gltfGenerator(tree: Tree, options: GltfGeneratorSchema) {
4544
}
4645

4746
try {
48-
const injectGLTF = await loadEsmModule<typeof import('angular-three-soba/loaders')>(
49-
'angular-three-soba/loaders',
50-
).then((m) => m.injectGLTF);
51-
// const injectGLTF = await import('angular-three-soba/loaders').then((m) => m.injectGLTF);
47+
// const injectGLTF = await loadEsmModule<typeof import('angular-three-soba/loaders')>(
48+
// 'angular-three-soba/loaders',
49+
// ).then((m) => m.injectGLTF);
50+
// // const injectGLTF = await import('angular-three-soba/loaders').then((m) => m.injectGLTF);
51+
const injectGLTF = require('angular-three-soba/loaders').injectGLTF;
5252

5353
const { gltfPath, project, console: toConsole, modelName, outputPath, draco, meshopt } = normalizeOptions(options);
5454

0 commit comments

Comments
 (0)