@@ -95,7 +95,6 @@ export function createPlugin(optimizerOptions: OptimizerOptions = {}) {
95
95
insightsManifest : null ,
96
96
manifestOutput : null ,
97
97
transformedModuleOutput : null ,
98
- vendorRoots : [ ] ,
99
98
scope : null ,
100
99
devTools : {
101
100
imageDevTools : true ,
@@ -286,7 +285,6 @@ export function createPlugin(optimizerOptions: OptimizerOptions = {}) {
286
285
opts . transformedModuleOutput = updatedOpts . transformedModuleOutput ;
287
286
}
288
287
289
- opts . vendorRoots = updatedOpts . vendorRoots ? updatedOpts . vendorRoots : [ ] ;
290
288
opts . scope = updatedOpts . scope ?? null ;
291
289
292
290
if ( typeof updatedOpts . resolveQwikBuild === 'boolean' ) {
@@ -617,11 +615,7 @@ export function createPlugin(optimizerOptions: OptimizerOptions = {}) {
617
615
const dir = parsedPathId . dir ;
618
616
const base = parsedPathId . base ;
619
617
const ext = parsedPathId . ext . toLowerCase ( ) ;
620
- if (
621
- ext in TRANSFORM_EXTS ||
622
- TRANSFORM_REGEX . test ( pathId ) ||
623
- insideRoots ( ext , dir , opts . srcDir , opts . vendorRoots )
624
- ) {
618
+ if ( ext in TRANSFORM_EXTS || TRANSFORM_REGEX . test ( pathId ) ) {
625
619
/** Strip client|server code from qwik server|client, but not in lib/test */
626
620
const strip = opts . target === 'client' || opts . target === 'ssr' ;
627
621
const normalizedID = normalizePath ( pathId ) ;
@@ -899,21 +893,6 @@ export const makeNormalizePath = (sys: OptimizerSystem) => (id: string) => {
899
893
return id ;
900
894
} ;
901
895
902
- const insideRoots = ( ext : string , dir : string , srcDir : string | null , vendorRoots : string [ ] ) => {
903
- if ( ext !== '.js' ) {
904
- return false ;
905
- }
906
- if ( srcDir != null && dir . startsWith ( srcDir ) ) {
907
- return true ;
908
- }
909
- for ( const root of vendorRoots ) {
910
- if ( dir . startsWith ( root ) ) {
911
- return true ;
912
- }
913
- }
914
- return false ;
915
- } ;
916
-
917
896
function isAdditionalFile ( mod : TransformModule ) {
918
897
return mod . isEntry || mod . hook ;
919
898
}
@@ -994,6 +973,7 @@ export interface QwikPluginOptions {
994
973
entryStrategy ?: EntryStrategy ;
995
974
rootDir ?: string ;
996
975
tsconfigFileNames ?: string [ ] ;
976
+ /** @deprecated No longer used */
997
977
vendorRoots ?: string [ ] ;
998
978
manifestOutput ?: ( ( manifest : QwikManifest ) => Promise < void > | void ) | null ;
999
979
manifestInput ?: QwikManifest | null ;
@@ -1024,7 +1004,8 @@ export interface QwikPluginOptions {
1024
1004
lint ?: boolean ;
1025
1005
}
1026
1006
1027
- export interface NormalizedQwikPluginOptions extends Required < QwikPluginOptions > {
1007
+ export interface NormalizedQwikPluginOptions
1008
+ extends Omit < Required < QwikPluginOptions > , 'vendorRoots' > {
1028
1009
input : string [ ] | { [ entry : string ] : string } ;
1029
1010
}
1030
1011
0 commit comments