mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Use webpack-import-meta-loader for all contexts
This commit is contained in:
parent
6955094f37
commit
3a5660ce1e
1 changed files with 13 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue