<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naga_sawa</author_name>
  <author_url>https://blog.hatena.ne.jp/naga_sawa/</author_url>
  <blog_title>..たれろぐ..</blog_title>
  <blog_url>https://naga-sawa.hatenadiary.org/</blog_url>
  <categories>
    <anon>開発</anon>
    <anon>tips</anon>
  </categories>
  <description>まとめ @babel/preset-env の targets 設定を見直して、Babel のターゲット指定を適切にしてやると無駄なPolyfillも使わずエラーもなくなる。 内容 webpack@4.43.0, babel-loader@8.1.0 な環境。対象はフロント（ブラウザ）用。エラーメッセージで検索すると先例が色々とあるので、対処そのものは難しくないと思います。 async/await を bable でトランスパイルしたはいいが、必要な regeneratorRuntime が無いのというのがエラー要因なので、 必要な polyfill を追加する async/awaitを使用し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaga-sawa.hatenadiary.org%2Fentry%2F2020%2F07%2F05%2F191355&quot; title=&quot;フロント向け webpack で &amp;quot;regeneratorRuntime is not defined&amp;quot; エラーが出たときの対処 - ..たれろぐ..&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-07-05 19:13:55</published>
  <title>フロント向け webpack で &quot;regeneratorRuntime is not defined&quot; エラーが出たときの対処</title>
  <type>rich</type>
  <url>https://naga-sawa.hatenadiary.org/entry/2020/07/05/191355</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
