// @flow import type {AST, MutableAsset, TransformerResult} from '@parcel/types'; import {hashString} from '@parcel/hash'; import type {PostHTMLNode} from 'posthtml'; import PostHTML from 'posthtml'; const SCRIPT_TYPES = { 'application/ecmascript': 'js', 'application/javascript': 'js', 'text/javascript': 'js', module: 'js', }; export default function extractInlineAssets( asset: MutableAsset, ast: AST, ): Array { const program: PostHTMLNode = ast.program; let key = 0; // Extract