Hi Jeremy,
There are two different things that could be a problem here, and you may be hitting one or more of them. Unfortunately I haven't touched chrome extensions for a long time, but maybe I can point you in the right direction:
The first issue is module URIs. In normal web use of stratifiedjs, each module lives at a canonical URI, say "
http://example.com/__sjs/sequence.sjs". Module shorthands like "sjs:sequence" are expanded under the hood. And relative paths are also expanded, relative to the path of the current module. But the "current module" of a <script> tag is a bit of a unique case, I'm pretty sure it uses `document.location.href`. But to remove one source of indirection, it might be useful to specify an absolute URI for your script's "main" attribute, at least to get it working.
The second issue is resource loading - SJS knows how to load http / https / file URIs, but I can't remember how chrome extensions access bundled content. And even if SJS _does_ know how to load your resource, it may be unable to execute it as code due to chrome's content security policy. This is what the thread you linked was concerned with - using the "-aot" version of the runtime _combined_ with the output of the `sjs:bundle` tool is a way for SJS to precompile all the modules you need, which should make them work in a chrome extension. Note that this all sits on top of the same URI scheme as above - so you'll need to first figure out the appropriate URIs for your modules, and _then_ you can use this mechanism to load precompiled versions of those modules.
Sorry I couldn't pinpoint exactly what's going wrong, but hopefully the above can point you in the right direction,
Cheers,
- Tim.