pluginCompile now accept isDynamic flags to support ghci