-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move to
import.meta.*
flags (#1349)
- Loading branch information
Showing
15 changed files
with
51 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { defineNuxtModule, useNuxt } from 'nuxt/kit' | ||
import type { InputPluginOption } from 'rollup' | ||
|
||
export default defineNuxtModule({ | ||
meta: { | ||
name: 'playwright-inline', | ||
}, | ||
setup() { | ||
// Work around a weird tracing behaviour that traces and includes imports that are not used in production | ||
const nuxt = useNuxt() | ||
nuxt.hook('nitro:config', config => { | ||
;(config.rollupConfig!.plugins as InputPluginOption[]).push({ | ||
name: 'purge-the-handler', | ||
transform(_code, id) { | ||
if (id.includes('og/[slug]') || id.includes('thumbnail/[slug]')) { | ||
return 'export default defineEventHandler(() => {})' | ||
} | ||
}, | ||
}) | ||
}) | ||
|
||
nuxt.hook('nitro:init', nitro => { | ||
nitro.options._config.rollupConfig!.plugins = ( | ||
nitro.options._config.rollupConfig!.plugins as InputPluginOption[] | ||
).filter(p => !p || !('name' in p) || p.name !== 'purge-the-handler') | ||
}) | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37e5152
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
roe.dev – ./
roe.dev
nuxt.ninja
www.danielcroe.com
iocalho.st
www.danielroe.me
www.danielroe.com
danielroe.me
www.nuxt.ninja
danielcroe.com
danielroe.com
roedev-danielroe.vercel.app
roedev-git-main-danielroe.vercel.app