We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9d4f7 commit 165f45aCopy full SHA for 165f45a
lib/extra/vite-plugin/utils.js
@@ -19,10 +19,15 @@ export async function getSpank() {
19
}
20
21
export const stripLogs = async (id, code) =>
22
- id.match(/routify3?\/lib/) &&
23
- code
24
- .replace(/\/\/ *routify-dev-only-start[\s\S]+?\/\/ *routify-dev-only-end/gim, '')
25
- .replace(/.+ \/\/ *routify-dev-only/gi, '')
+ id.match(/routify3?\/lib/) && {
+ code: code
+ .replace(
+ /\/\/ *routify-dev-only-start[\s\S]+?\/\/ *routify-dev-only-end/gim,
26
+ '',
27
+ )
28
+ .replace(/.+ \/\/ *routify-dev-only/gi, ''),
29
+ map: null,
30
+ }
31
32
export const optionsCheck = (options, isProduction) => {
33
const depprecationNote =
0 commit comments