jspm / generator

JSPM Import Map Generator
Apache License 2.0
160 stars 20 forks source link

import map generator, Resolver.analyze fails on valid JS syntax #326

Closed trusktr closed 8 months ago

trusktr commented 8 months ago

playground

This is the file that it fails on:

https://unpkg.com/three@0.157.0/src/renderers/shaders/ShaderChunk/default_vertex.glsl.js

with error:

Error: 
  `;
> 
  ^
  undefined

Error parsing https://unpkg.com/three@0.157.0/src/renderers/shaders/ShaderChunk/default_fragment.glsl.js:6:1
    at Resolver.analyze (17f28187.js:14:22696)
    at async 17f28187.js:46:3491
    at async TraceMap.getTraceEntry (17f28187.js:46:3726)
    at async TraceMap.visit (17f28187.js:43:430)
    at async 17f28187.js:43:1203
    at async Promise.all (/index 5)
    at async TraceMap.visit (17f28187.js:43:1148)
    at async 17f28187.js:43:1203
    at async Promise.all (/index 9)
    at async TraceMap.visit (17f28187.js:43:1148)
guybedford commented 8 months ago

Turns out this was an issue with the generator application itself, and fixed via a dependency update in https://github.com/jspm/generator.jspm.io/commit/9bd1da220156a5c6c90827f9c6c9b91c5e05c98d.