Webpack config example of polyfill and transpile needed for svelte to support IE 11
\
). test
property of babel-loader must be changed to include .mjs
(/\.m?js$/
) because svelte's runtime use .mjs
extension.core-js
. if you transpile it, polyfill won't work.use
property svelte-loader
must be after babel-loader
,
so that svelte-loader
would execute first.