message: improve bundle renderer file path detection
diff: @@ -37,7 +37,11 @@ export function createBundleRendererCreator (createRenderer: () => Renderer) {
  let basedir = rendererOptions && rendererOptions.basedir
  // load bundle if given filepath
  - if (typeof bundle === 'string' && bundle.charAt(0) === '/') {
  + if (
  + typeof bundle === 'string' &&
  + /\.js(on)?$/.test(bundle) &&
  + path.isAbsolute(bundle)
  + ) {
  if (fs.existsSync(bundle)) {
  basedir = basedir || path.dirname(bundle)
  bundle = fs.readFileSync(bundle, 'utf-8')
  