// Set up the rebind oracle for the module.
// It has to wait until now because we need to inject javascript.
//
Rules rules = module.getRules();
PrecompileTaskOptionsImpl options = new PrecompileTaskOptionsImpl();
options.setGenDir(genDir);
CompilerContext compilerContext =
new CompilerContext.Builder().module(module).options(options).build();
StandardGeneratorContext genCtx =
new StandardGeneratorContext(compilerContext, compilationState, new ArtifactSet(), false);