File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ export interface LibraryOptions {
271
271
fileName ?: string | ( ( format : ModuleFormat , entryName : string ) => string )
272
272
}
273
273
274
- export type LibraryFormats = 'es' | 'cjs' /* | 'umd' | 'iife' | 'system'*/
274
+ export type LibraryFormats = 'es' | 'cjs' | 'iife' /* | 'umd' | 'system'*/
275
275
276
276
export interface ModulePreloadOptions {
277
277
/**
@@ -1162,7 +1162,7 @@ const relativeUrlMechanisms: Record<
1162
1162
getResolveUrl (
1163
1163
`'${ escapeId ( partialEncodeURIPath ( relativePath ) ) } ', import.meta.url` ,
1164
1164
) ,
1165
- // iife: (relativePath) => getRelativeUrlFromDocument(relativePath),
1165
+ iife : ( relativePath ) => getRelativeUrlFromDocument ( relativePath ) ,
1166
1166
// // NOTE: make sure rollup generate `module` params
1167
1167
// system: (relativePath) =>
1168
1168
// getResolveUrl(
@@ -1234,7 +1234,7 @@ export function createToImportMetaURLBasedRelativeRuntime(
1234
1234
format : InternalModuleFormat ,
1235
1235
isWorker : boolean ,
1236
1236
) : ( filename : string , importer : string ) => { runtime : string } {
1237
- const formatLong = /* isWorker && format === 'iife' ? 'worker-iife' : */ format
1237
+ const formatLong = isWorker && format === 'iife' ? 'worker-iife' : format
1238
1238
const toRelativePath = customRelativeUrlMechanisms [ formatLong ]
1239
1239
return ( filename , importer ) => ( {
1240
1240
runtime : toRelativePath (
You can’t perform that action at this time.
0 commit comments