WebPack 2: Migrate preLoaders and postLoaders : <p>I've installed <code>webpack@2.1.0-beta.27</code>. Before, I was using <code>webpack@2.1.0-beta.22</code>. On my configuration file I was using <code>preLoaders</code> and <code>postLoaders</code>:</p>

<pre><code>preLoaders: [
    {
      test: /\.ts$/,
      loader: 'string-replace-loader',
      query: {
        search: '(System|SystemJS)(.*[\\n\\r]\\s*\\.|\\.)import\\((.+)\\)',
        replace: '$1.import($3).then(mod =&gt; (mod.__esModule &amp;&amp; mod.default) ? mod.default : mod)',
        flags: 'g'
      },
      include: [helpers.root('src')]
    },

  ],
  loaders: [...],
  postLoaders: [
    {
      test: /\.js$/,
      loader: 'string-replace-loader',
      query: {
        search: 'var sourceMappingUrl = extractSourceMappingUrl\\(cssText\\);',
        replace: 'var sourceMappingUrl = "";',
        flags: 'g'
      }
    }
  ]
</code></pre>

<p>I'm not able to figure out once I've took a look on internet how to migrate this <code>preLoaders</code> and <code>postLoaders</code>.</p>

<p>Should I put them inside <code>loaders</code>? Only that?</p>
