Skip to content

Commit

Permalink
add chevrotain as dependency to VTMLLoader module
Browse files Browse the repository at this point in the history
  • Loading branch information
palortoff committed Jun 19, 2019
1 parent c11ee3c commit ea3065c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/libs/chevrotain.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/jsm/loaders/VRMLLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
Vector3,
VertexColors
} from "../../../build/three.module.js";
import chevrotain from "../libs/chevrotain.min.js";

/* global chevrotain */

Expand Down
4 changes: 2 additions & 2 deletions utils/modularize.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var files = [
{ path: 'loaders/TDSLoader.js', dependencies: [], ignoreList: [] },
{ path: 'loaders/TGALoader.js', dependencies: [], ignoreList: [] },
{ path: 'loaders/TTFLoader.js', dependencies: [], ignoreList: [ 'Font' ] },
{ path: 'loaders/VRMLLoader.js', dependencies: [], ignoreList: [] },
{ path: 'loaders/VRMLLoader.js', dependencies: [ { name: 'chevrotain', path: 'libs/chevrotain.min.js', defaultImport: true } ], ignoreList: [] },
{ path: 'loaders/VRMLoader.js', dependencies: [ { name: 'GLTFLoader', path: 'loaders/GLTFLoader.js' } ], ignoreList: [] },
{ path: 'loaders/VTKLoader.js', dependencies: [ { name: 'Zlib', path: 'libs/inflate.min.js' } ], ignoreList: [] },
{ path: 'loaders/XLoader.js', dependencies: [], ignoreList: [] },
Expand Down Expand Up @@ -369,7 +369,7 @@ function convert( path, exampleDependencies, ignoreList ) {

for ( var dependency of exampleDependencies ) {

imports += `\nimport { ${dependency.name} } from "${pathPrefix}${dependency.path}";`;
imports += `\nimport ${dependency.defaultImport ? dependency.name : `{ ${dependency.name} }`} from "${pathPrefix}${dependency.path}";`;

}

Expand Down

0 comments on commit ea3065c

Please sign in to comment.