Skip to content

Commit

Permalink
Remove quasar rewrite warning due to inconsistency in dev/prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinovantes committed Apr 23, 2022
1 parent 4d3b906 commit ec02cba
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/webpack/QuasarUnusedPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ export class QuasarUnusedPlugin implements WebpackPluginInstance {
#rewriteQuasarModule(compiler: Compiler) {
const logger = compiler.getInfrastructureLogger(PLUGIN_NAME)
let isFirstPass = true
let modifiedQuasar = false

compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
// Need one complete compilation pass to be able to parse all source files for references to quasar components
Expand All @@ -137,10 +136,6 @@ export class QuasarUnusedPlugin implements WebpackPluginInstance {
return true
}

if (!modifiedQuasar) {
logger.warn(`Did not find Quasar module to rewrite. Did you import from "${QUASAR_INDEX_FILE}"?`)
}

return false
})

Expand Down Expand Up @@ -191,8 +186,6 @@ export class QuasarUnusedPlugin implements WebpackPluginInstance {
ident: null,
type: null,
})

modifiedQuasar = true
})
})
}
Expand Down

0 comments on commit ec02cba

Please sign in to comment.