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) {
// Always run
// Push meta import rule for zip.js
config.module.rules.push({
test: /\.js$/,
loader: require.resolve('@open-wc/webpack-import-meta-loader')
})
// Client
if (ctx.isClient) {
// Push meta import rule for zip.js
config.module.rules.push({
test: /\.js$/,
loader: require.resolve('@open-wc/webpack-import-meta-loader')
})
}
// if (ctx.isClient) {
// }
// Run ESLint on save
if (ctx.isDev && ctx.isClient) {