File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/rollup-plugin-html/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ export interface ExtractAssetsParams {
22
22
export function extractAssets ( params : ExtractAssetsParams ) : InputAsset [ ] {
23
23
const assetNodes = findAssets ( params . document ) ;
24
24
const allAssets : InputAsset [ ] = [ ] ;
25
+ const isExternal = picomatch ( params . externalAssets || [ ] ) ;
25
26
26
27
for ( const node of assetNodes ) {
27
28
const sourcePaths = getSourcePaths ( node ) ;
28
29
for ( const sourcePath of sourcePaths ) {
29
- const isExternal = picomatch ( params . externalAssets || [ ] ) ;
30
30
if ( isExternal ( sourcePath ) ) continue ;
31
31
32
32
const filePath = resolveAssetFilePath (
Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ export function injectedUpdatedAssetPaths(args: InjectUpdatedAssetPathsArgs) {
49
49
absolutePathPrefix,
50
50
} = args ;
51
51
const assetNodes = findAssets ( document ) ;
52
+ const isExternal = picomatch ( externalAssets || [ ] ) ;
52
53
53
54
for ( const node of assetNodes ) {
54
55
const sourcePaths = getSourcePaths ( node ) ;
55
56
for ( const sourcePath of sourcePaths ) {
56
- const isExternal = picomatch ( externalAssets || [ ] ) ;
57
57
if ( isExternal ( sourcePath ) ) continue ;
58
58
59
59
const htmlFilePath = input . filePath ? input . filePath : path . join ( rootDir , input . name ) ;
You can’t perform that action at this time.
0 commit comments