Site275 Documents

Import Order

In site code, order imports from Qwik and Qwik City through third-party libraries, core, parts, and shared modules to local modules.

Correct

import { component$ } from '@builder.io/qwik'
import { routeLoader$ } from '@builder.io/qwik-city'
import SiteRoot from 'siteRoot'
import { Posts } from 'blog'
import { Header } from 'layout'

Incorrect

import { Header } from 'layout'
import { component$ } from '@builder.io/qwik'

Fix

Move imports into the required layer order.