Skip to content

Commit

Permalink
chore: cleanup hasContentFlag
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Apr 26, 2023
1 parent ec1a315 commit df3e433
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/astro/src/content/vite-plugin-content-assets.ts
Expand Up @@ -20,11 +20,6 @@ import {
} from './consts.js';
import { hasContentFlag } from './utils.js';

function isPropagatedAsset(viteId: string) {
const flags = new URLSearchParams(viteId.split('?')[1]);
return flags.has(PROPAGATED_ASSET_FLAG);
}

export function astroContentAssetPropagationPlugin({
mode,
settings,
Expand Down Expand Up @@ -61,7 +56,7 @@ export function astroContentAssetPropagationPlugin({
}
},
async transform(_, id, options) {
if (isPropagatedAsset(id)) {
if (hasContentFlag(id, CONTENT_RENDER_FLAG)) {
const basePath = id.split('?')[0];
let stringifiedLinks: string, stringifiedStyles: string, stringifiedScripts: string;

Expand Down

0 comments on commit df3e433

Please sign in to comment.