Use webpack-import-meta-loader for all contexts

This commit is contained in:
Sam Carlton 2021-09-04 16:06:56 -05:00
parent 6955094f37
commit 3a5660ce1e

View file

@ -163,14 +163,20 @@ export default {
*/ */
extend(config, ctx) { extend(config, ctx) {
// Client
if (ctx.isClient) { // Always run
// Push meta import rule for zip.js // Push meta import rule for zip.js
config.module.rules.push({ config.module.rules.push({
test: /\.js$/, test: /\.js$/,
loader: require.resolve('@open-wc/webpack-import-meta-loader') loader: require.resolve('@open-wc/webpack-import-meta-loader')
}) })
}
// Client
// if (ctx.isClient) {
// }
// Run ESLint on save // Run ESLint on save
if (ctx.isDev && ctx.isClient) { if (ctx.isDev && ctx.isClient) {