diff --git a/src/Chunk.ts b/src/Chunk.ts index 5071e9cc6bb..b08695446fc 100644 --- a/src/Chunk.ts +++ b/src/Chunk.ts @@ -36,7 +36,7 @@ import { makeUnique, renderNamePattern } from './utils/renderNamePattern'; import { RESERVED_NAMES } from './utils/reservedNames'; import { sanitizeFileName } from './utils/sanitizeFileName'; import { timeEnd, timeStart } from './utils/timers'; -import { MISSING_EXPORT_SHIM_VARIABLE } from './utils/variableNames'; +import { INTEROP_DEFAULT_VARIABLE, MISSING_EXPORT_SHIM_VARIABLE } from './utils/variableNames'; export interface ModuleDeclarations { dependencies: ModuleDeclarationDependency[]; @@ -130,7 +130,6 @@ export default class Chunk { exportMode = 'named'; facadeModule: Module | null = null; graph: Graph; - hasDynamicImport = false; id: string = undefined as any; indentString: string = undefined as any; isEmpty: boolean; @@ -596,16 +595,17 @@ export default class Chunk { if (!this.renderedSource) throw new Error('Internal error: Chunk render called before preRender'); - const finalise = finalisers[options.format as string]; + const format = options.format as string; + const finalise = finalisers[format]; if (!finalise) { error({ code: 'INVALID_OPTION', - message: `Invalid format: ${options.format} - valid options are ${Object.keys( - finalisers - ).join(', ')}.` + message: `Invalid format: ${format} - valid options are ${Object.keys(finalisers).join( + ', ' + )}.` }); } - if (options.dynamicImportFunction && options.format !== 'es') { + if (options.dynamicImportFunction && format !== 'es') { this.graph.warn({ code: 'INVALID_OPTION', message: '"output.dynamicImportFunction" is ignored for formats other than "esm".' @@ -628,8 +628,8 @@ export default class Chunk { renderedDependency.id = relPath; } - this.finaliseDynamicImports(options.format as string); - const needsAmdModule = this.finaliseImportMetas(options); + this.finaliseDynamicImports(format); + this.finaliseImportMetas(format); const hasExports = this.renderedDeclarations.exports.length !== 0 || @@ -637,28 +637,40 @@ export default class Chunk { dep => (dep.reexports && dep.reexports.length !== 0) as boolean ); - const usesTopLevelAwait = this.orderedModules.some(module => module.usesTopLevelAwait); - if (usesTopLevelAwait && options.format !== 'es' && options.format !== 'system') { + let usesTopLevelAwait = false; + const accessedGlobals = new Set(); + for (const module of this.orderedModules) { + if (module.usesTopLevelAwait) { + usesTopLevelAwait = true; + } + const accessedGlobalVariablesByFormat = module.scope.accessedGlobalVariablesByFormat; + const accessedGlobalVariables = + accessedGlobalVariablesByFormat && accessedGlobalVariablesByFormat.get(format); + if (accessedGlobalVariables) { + for (const name of accessedGlobalVariables) { + accessedGlobals.add(name); + } + } + } + + if (usesTopLevelAwait && format !== 'es' && format !== 'system') { error({ code: 'INVALID_TLA_FORMAT', - message: `Module format ${ - options.format - } does not support top-level await. Use the "es" or "system" output formats rather.` + message: `Module format ${format} does not support top-level await. Use the "es" or "system" output formats rather.` }); } const magicString = finalise( this.renderedSource, { + accessedGlobals, dependencies: this.renderedDeclarations.dependencies, - dynamicImport: this.hasDynamicImport, exports: this.renderedDeclarations.exports, hasExports, indentString: this.indentString, intro: addons.intro as string, isEntryModuleFacade: this.facadeModule !== null && this.facadeModule.isEntryPoint, namedExportsMode: this.exportMode !== 'default', - needsAmdModule, outro: addons.outro as string, usesTopLevelAwait, varOrConst: options.preferConst ? 'const' : 'var', @@ -828,25 +840,14 @@ export default class Chunk { } } - private finaliseImportMetas(options: OutputOptions): boolean { - let needsAmdModule = false; + private finaliseImportMetas(format: string): void { for (let i = 0; i < this.orderedModules.length; i++) { const module = this.orderedModules[i]; const code = this.renderedModuleSources[i]; for (const importMeta of module.importMetas) { - if ( - importMeta.renderFinalMechanism( - code, - this.id, - options.format as string, - this.graph.pluginDriver - ) - ) { - needsAmdModule = true; - } + importMeta.renderFinalMechanism(code, this.id, format, this.graph.pluginDriver); } } - return needsAmdModule; } private getChunkDependencyDeclarations(options: OutputOptions): ChunkDependencies { @@ -1050,9 +1051,18 @@ export default class Chunk { } } - const usedNames = Object.create(null); + const usedNames = new Set(); if (this.needsExportsShim) { - usedNames[MISSING_EXPORT_SHIM_VARIABLE] = true; + usedNames.add(MISSING_EXPORT_SHIM_VARIABLE); + } + if (options.format !== 'es') { + usedNames.add('exports'); + if (options.format === 'cjs') { + usedNames.add(INTEROP_DEFAULT_VARIABLE); + if (this.exportMode === 'default') { + usedNames.add('module'); + } + } } deconflictChunk( @@ -1098,11 +1108,8 @@ export default class Chunk { } } for (const { node, resolution } of module.dynamicImports) { - if (node.included) { - this.hasDynamicImport = true; - if (resolution instanceof Module && resolution.chunk === this) - resolution.getOrCreateNamespace().include(); - } + if (node.included && resolution instanceof Module && resolution.chunk === this) + resolution.getOrCreateNamespace().include(); } } } diff --git a/src/Module.ts b/src/Module.ts index 63de02f482d..3c5d2f5d8de 100644 --- a/src/Module.ts +++ b/src/Module.ts @@ -618,8 +618,9 @@ export default class Module { } traceVariable(name: string): Variable | null { - if (name in this.scope.variables) { - return this.scope.variables[name]; + const localVariable = this.scope.variables.get(name); + if (localVariable) { + return localVariable; } if (name in this.importDescriptions) { diff --git a/src/ast/nodes/Import.ts b/src/ast/nodes/Import.ts index 7ed3325d5e3..fba12dab55e 100644 --- a/src/ast/nodes/Import.ts +++ b/src/ast/nodes/Import.ts @@ -47,6 +47,12 @@ const getDynamicImportMechanism = (options: RenderOptions): DynamicImportMechani return undefined as any; }; +const accessedImportGlobals = { + amd: ['require'], + cjs: ['require'], + system: ['module'] +}; + export default class Import extends NodeBase { parent: CallExpression; type: NodeType.tImport; @@ -55,8 +61,11 @@ export default class Import extends NodeBase { private resolutionNamespace: string; include() { - this.included = true; - this.context.includeDynamicImport(this); + if (!this.included) { + this.included = true; + this.context.includeDynamicImport(this); + this.scope.addAccessedGlobalsByFormat(accessedImportGlobals); + } } initialise() { diff --git a/src/ast/nodes/MetaProperty.ts b/src/ast/nodes/MetaProperty.ts index 08e6dc0047c..a3833e11f28 100644 --- a/src/ast/nodes/MetaProperty.ts +++ b/src/ast/nodes/MetaProperty.ts @@ -1,4 +1,5 @@ import MagicString from 'magic-string'; +import { accessedFileUrlGlobals, accessedMetaUrlGlobals } from '../../utils/defaultPlugin'; import { dirname, normalize, relative } from '../../utils/path'; import { PluginDriver } from '../../utils/pluginDriver'; import { ObjectPathKey } from '../values'; @@ -15,10 +16,30 @@ export default class MetaProperty extends NodeBase { property: Identifier; type: NodeType.tMetaProperty; + private metaProperty?: string | null; + hasEffectsWhenAccessedAtPath(path: ObjectPathKey[]): boolean { return path.length > 1; } + include() { + if (!this.included) { + this.included = true; + const parent = this.parent; + const metaProperty = (this.metaProperty = + parent instanceof MemberExpression && typeof parent.propertyKey === 'string' + ? parent.propertyKey + : null); + if (metaProperty) { + if (metaProperty === 'url') { + this.scope.addAccessedGlobalsByFormat(accessedMetaUrlGlobals); + } else if (metaProperty.startsWith(ASSET_PREFIX) || metaProperty.startsWith(CHUNK_PREFIX)) { + this.scope.addAccessedGlobalsByFormat(accessedFileUrlGlobals); + } + } + } + } + initialise() { if (this.meta.name === 'import') { this.context.addImportMeta(this); @@ -31,13 +52,10 @@ export default class MetaProperty extends NodeBase { chunkId: string, format: string, pluginDriver: PluginDriver - ): boolean { - if (!this.included) return false; + ): void { + if (!this.included) return; const parent = this.parent; - const importMetaProperty = - parent instanceof MemberExpression && typeof parent.propertyKey === 'string' - ? parent.propertyKey - : null; + const importMetaProperty = this.metaProperty as string | null; if ( importMetaProperty && @@ -86,7 +104,7 @@ export default class MetaProperty extends NodeBase { (parent as MemberExpression).end, replacement ); - return true; + return; } const replacement = pluginDriver.hookFirstSync('resolveImportMeta', [ @@ -103,8 +121,6 @@ export default class MetaProperty extends NodeBase { } else { code.overwrite(this.start, this.end, replacement); } - return true; } - return false; } } diff --git a/src/ast/nodes/ObjectExpression.ts b/src/ast/nodes/ObjectExpression.ts index 0e50979a6f6..cc32ad54df0 100644 --- a/src/ast/nodes/ObjectExpression.ts +++ b/src/ast/nodes/ObjectExpression.ts @@ -1,7 +1,6 @@ import MagicString from 'magic-string'; import { BLANK } from '../../utils/blank'; import { NodeRenderOptions, RenderOptions } from '../../utils/renderHelpers'; -import { NameCollection } from '../../utils/reservedNames'; import CallOptions from '../CallOptions'; import { DeoptimizableEntity } from '../DeoptimizableEntity'; import { ExecutionPathOptions } from '../ExecutionPathOptions'; @@ -41,11 +40,11 @@ export default class ObjectExpression extends NodeBase { properties: (Property | SpreadElement)[]; type: NodeType.tObjectExpression; - private deoptimizedPaths: NameCollection; + private deoptimizedPaths = new Set(); // We collect deoptimization information if we can resolve a computed property access - private expressionsToBeDeoptimized: { [key: string]: DeoptimizableEntity[] }; - private hasUnknownDeoptimizedProperty: boolean; - private propertyMap: PropertyMap | null; + private expressionsToBeDeoptimized = new Map(); + private hasUnknownDeoptimizedProperty = false; + private propertyMap: PropertyMap | null = null; private unmatchablePropertiesRead: (Property | SpreadElement)[] | null; private unmatchablePropertiesWrite: Property[] | null; @@ -72,13 +71,14 @@ export default class ObjectExpression extends NodeBase { this.deoptimizeAllProperties(); return; } - if (!this.deoptimizedPaths[key]) { - this.deoptimizedPaths[key] = true; + if (!this.deoptimizedPaths.has(key)) { + this.deoptimizedPaths.add(key); // we only deoptimizeCache exact matches as in all other cases, // we do not return a literal value or return expression - if (this.expressionsToBeDeoptimized[key]) { - for (const expression of this.expressionsToBeDeoptimized[key]) { + const expressionsToBeDeoptimized = this.expressionsToBeDeoptimized.get(key); + if (expressionsToBeDeoptimized) { + for (const expression of expressionsToBeDeoptimized) { expression.deoptimizeCache(); } } @@ -106,7 +106,7 @@ export default class ObjectExpression extends NodeBase { path.length === 0 || this.hasUnknownDeoptimizedProperty || typeof key !== 'string' || - this.deoptimizedPaths[key] + this.deoptimizedPaths.has(key) ) return UNKNOWN_VALUE; @@ -116,10 +116,11 @@ export default class ObjectExpression extends NodeBase { !objectMembers[key] && (this.unmatchablePropertiesRead as (Property | SpreadElement)[]).length === 0 ) { - if (!this.expressionsToBeDeoptimized[key]) { - this.expressionsToBeDeoptimized[key] = [origin]; + const expressionsToBeDeoptimized = this.expressionsToBeDeoptimized.get(key); + if (expressionsToBeDeoptimized) { + expressionsToBeDeoptimized.push(origin); } else { - this.expressionsToBeDeoptimized[key].push(origin); + this.expressionsToBeDeoptimized.set(key, [origin]); } return undefined; } @@ -128,13 +129,15 @@ export default class ObjectExpression extends NodeBase { !(this.propertyMap as PropertyMap)[key] || (this.propertyMap as PropertyMap)[key].exactMatchRead === null || (this.propertyMap as PropertyMap)[key].propertiesRead.length > 1 - ) + ) { return UNKNOWN_VALUE; + } - if (!this.expressionsToBeDeoptimized[key]) { - this.expressionsToBeDeoptimized[key] = [origin]; + const expressionsToBeDeoptimized = this.expressionsToBeDeoptimized.get(key); + if (expressionsToBeDeoptimized) { + expressionsToBeDeoptimized.push(origin); } else { - this.expressionsToBeDeoptimized[key].push(origin); + this.expressionsToBeDeoptimized.set(key, [origin]); } return ((this.propertyMap as PropertyMap)[key] .exactMatchRead as Property).getLiteralValueAtPath(path.slice(1), recursionTracker, origin); @@ -152,7 +155,7 @@ export default class ObjectExpression extends NodeBase { path.length === 0 || this.hasUnknownDeoptimizedProperty || typeof key !== 'string' || - this.deoptimizedPaths[key] + this.deoptimizedPaths.has(key) ) return UNKNOWN_EXPRESSION; @@ -172,10 +175,11 @@ export default class ObjectExpression extends NodeBase { ) return UNKNOWN_EXPRESSION; - if (!this.expressionsToBeDeoptimized[key]) { - this.expressionsToBeDeoptimized[key] = [origin]; + const expressionsToBeDeoptimized = this.expressionsToBeDeoptimized.get(key); + if (expressionsToBeDeoptimized) { + expressionsToBeDeoptimized.push(origin); } else { - this.expressionsToBeDeoptimized[key].push(origin); + this.expressionsToBeDeoptimized.set(key, [origin]); } return ((this.propertyMap as PropertyMap)[key] .exactMatchRead as Property).getReturnExpressionWhenCalledAtPath( @@ -192,7 +196,7 @@ export default class ObjectExpression extends NodeBase { path.length > 1 && (this.hasUnknownDeoptimizedProperty || typeof key !== 'string' || - this.deoptimizedPaths[key] || + this.deoptimizedPaths.has(key) || !(this.propertyMap as PropertyMap)[key] || (this.propertyMap as PropertyMap)[key].exactMatchRead === null) ) @@ -216,7 +220,7 @@ export default class ObjectExpression extends NodeBase { path.length > 1 && (this.hasUnknownDeoptimizedProperty || typeof key !== 'string' || - this.deoptimizedPaths[key] || + this.deoptimizedPaths.has(key) || !(this.propertyMap as PropertyMap)[key] || (this.propertyMap as PropertyMap)[key].exactMatchRead === null) ) @@ -245,7 +249,7 @@ export default class ObjectExpression extends NodeBase { path.length === 0 || this.hasUnknownDeoptimizedProperty || typeof key !== 'string' || - this.deoptimizedPaths[key] || + this.deoptimizedPaths.has(key) || ((this.propertyMap as PropertyMap)[key] ? !(this.propertyMap as PropertyMap)[key].exactMatchRead : path.length > 1 || !objectMembers[key]) @@ -264,10 +268,6 @@ export default class ObjectExpression extends NodeBase { initialise() { this.included = false; - this.hasUnknownDeoptimizedProperty = false; - this.deoptimizedPaths = Object.create(null); - this.propertyMap = null; - this.expressionsToBeDeoptimized = Object.create(null); } render( @@ -341,8 +341,8 @@ export default class ObjectExpression extends NodeBase { for (const property of this.properties) { property.deoptimizePath(UNKNOWN_PATH); } - for (const key of Object.keys(this.expressionsToBeDeoptimized)) { - for (const expression of this.expressionsToBeDeoptimized[key]) { + for (const expressionsToBeDeoptimized of this.expressionsToBeDeoptimized.values()) { + for (const expression of expressionsToBeDeoptimized) { expression.deoptimizeCache(); } } diff --git a/src/ast/nodes/shared/FunctionNode.ts b/src/ast/nodes/shared/FunctionNode.ts index e4304b10bf2..c832bd65dcc 100644 --- a/src/ast/nodes/shared/FunctionNode.ts +++ b/src/ast/nodes/shared/FunctionNode.ts @@ -74,7 +74,7 @@ export default class FunctionNode extends NodeBase { } include(includeAllChildrenRecursively: boolean) { - this.scope.variables.arguments.include(); + this.scope.argumentsVariable.include(); super.include(includeAllChildrenRecursively); } diff --git a/src/ast/nodes/shared/pureFunctions.ts b/src/ast/nodes/shared/pureFunctions.ts index 5f0f7607de2..95e27ab24ef 100644 --- a/src/ast/nodes/shared/pureFunctions.ts +++ b/src/ast/nodes/shared/pureFunctions.ts @@ -1,6 +1,6 @@ import { NameCollection } from '../../../utils/reservedNames'; -const pureFunctions: NameCollection = {}; +const pureFunctions: NameCollection = Object.create(null); const arrayTypes = 'Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array'.split( ' ' diff --git a/src/ast/scopes/ChildScope.ts b/src/ast/scopes/ChildScope.ts index 8e124d6587e..fe96b8d4e2c 100644 --- a/src/ast/scopes/ChildScope.ts +++ b/src/ast/scopes/ChildScope.ts @@ -1,11 +1,11 @@ -import { NameCollection } from '../../utils/reservedNames'; import { getSafeName } from '../../utils/safeName'; import { ExpressionEntity } from '../nodes/shared/Expression'; import Variable from '../variables/Variable'; import Scope from './Scope'; export default class ChildScope extends Scope { - accessedOutsideVariables: { [name: string]: Variable } = Object.create(null); + accessedGlobalVariablesByFormat?: Map>; + accessedOutsideVariables = new Map(); parent: Scope; constructor(parent: Scope) { @@ -14,8 +14,28 @@ export default class ChildScope extends Scope { parent.children.push(this); } + addAccessedGlobalsByFormat(globalsByFormat: { [format: string]: string[] }) { + let accessedGlobalVariablesByFormat = this.accessedGlobalVariablesByFormat; + if (!accessedGlobalVariablesByFormat) { + accessedGlobalVariablesByFormat = this.accessedGlobalVariablesByFormat = new Map(); + } + for (const format of Object.keys(globalsByFormat)) { + let accessedGlobalVariables = accessedGlobalVariablesByFormat.get(format); + if (!accessedGlobalVariables) { + accessedGlobalVariables = new Set(); + accessedGlobalVariablesByFormat.set(format, accessedGlobalVariables); + } + for (const name of globalsByFormat[format]) { + accessedGlobalVariables.add(name); + } + } + if (this.parent instanceof ChildScope) { + this.parent.addAccessedGlobalsByFormat(globalsByFormat); + } + } + addNamespaceMemberAccess(name: string, variable: Variable) { - this.accessedOutsideVariables[name] = variable; + this.accessedOutsideVariables.set(name, variable); if (this.parent instanceof ChildScope) { this.parent.addNamespaceMemberAccess(name, variable); } @@ -26,25 +46,33 @@ export default class ChildScope extends Scope { } contains(name: string): boolean { - return name in this.variables || this.parent.contains(name); + return this.variables.has(name) || this.parent.contains(name); } - deconflict(forbiddenNames: NameCollection) { - const usedNames: NameCollection = Object.assign(Object.create(null), forbiddenNames); - for (const name of Object.keys(this.accessedOutsideVariables)) { - const variable = this.accessedOutsideVariables[name]; + deconflict(format: string) { + const usedNames = new Set(); + for (const variable of this.accessedOutsideVariables.values()) { if (variable.included) { - usedNames[variable.getBaseVariableName()] = true; + usedNames.add(variable.getBaseVariableName()); + if (variable.exportName && format === 'system') { + usedNames.add('exports'); + } + } + } + const accessedGlobalVariables = + this.accessedGlobalVariablesByFormat && this.accessedGlobalVariablesByFormat.get(format); + if (accessedGlobalVariables) { + for (const name of accessedGlobalVariables) { + usedNames.add(name); } } - for (const name of Object.keys(this.variables)) { - const variable = this.variables[name]; + for (const [name, variable] of this.variables) { if (variable.included) { variable.setSafeName(getSafeName(name, usedNames)); } } for (const scope of this.children) { - scope.deconflict(forbiddenNames); + scope.deconflict(format); } } @@ -53,10 +81,12 @@ export default class ChildScope extends Scope { } findVariable(name: string): Variable { - const knownVariable = this.variables[name] || this.accessedOutsideVariables[name]; + const knownVariable = this.variables.get(name) || this.accessedOutsideVariables.get(name); if (knownVariable) { return knownVariable; } - return (this.accessedOutsideVariables[name] = this.parent.findVariable(name)); + const variable = this.parent.findVariable(name); + this.accessedOutsideVariables.set(name, variable); + return variable; } } diff --git a/src/ast/scopes/FunctionScope.ts b/src/ast/scopes/FunctionScope.ts index a3b77ee5bc6..5c524bee952 100644 --- a/src/ast/scopes/FunctionScope.ts +++ b/src/ast/scopes/FunctionScope.ts @@ -3,26 +3,21 @@ import CallOptions from '../CallOptions'; import { ExecutionPathOptions } from '../ExecutionPathOptions'; import { UNKNOWN_EXPRESSION, UnknownObjectExpression } from '../values'; import ArgumentsVariable from '../variables/ArgumentsVariable'; -import ExportDefaultVariable from '../variables/ExportDefaultVariable'; -import ExternalVariable from '../variables/ExternalVariable'; -import GlobalVariable from '../variables/GlobalVariable'; -import LocalVariable from '../variables/LocalVariable'; import ThisVariable from '../variables/ThisVariable'; import ChildScope from './ChildScope'; import ReturnValueScope from './ReturnValueScope'; export default class FunctionScope extends ReturnValueScope { - variables: { - [name: string]: LocalVariable | GlobalVariable | ExternalVariable | ArgumentsVariable; - arguments: ArgumentsVariable; - default: ExportDefaultVariable; - this: ThisVariable; - }; + argumentsVariable: ArgumentsVariable; + thisVariable: ThisVariable; constructor(parent: ChildScope, context: AstContext) { super(parent, context); - this.variables.arguments = new ArgumentsVariable(super.getParameterVariables(), context); - this.variables.this = new ThisVariable(context); + this.variables.set( + 'arguments', + (this.argumentsVariable = new ArgumentsVariable(super.getParameterVariables(), context)) + ); + this.variables.set('this', (this.thisVariable = new ThisVariable(context))); } findLexicalBoundary() { @@ -35,7 +30,7 @@ export default class FunctionScope extends ReturnValueScope { ): ExecutionPathOptions { return options .replaceVariableInit( - this.variables.this, + this.thisVariable, withNew ? new UnknownObjectExpression() : UNKNOWN_EXPRESSION ) .setArgumentsVariables( diff --git a/src/ast/scopes/GlobalScope.ts b/src/ast/scopes/GlobalScope.ts index 3975766ad70..d5c96644d7f 100644 --- a/src/ast/scopes/GlobalScope.ts +++ b/src/ast/scopes/GlobalScope.ts @@ -8,11 +8,15 @@ export default class GlobalScope extends Scope { constructor() { super(); - this.variables.undefined = new UndefinedVariable(); + this.variables.set('undefined', new UndefinedVariable()); } findVariable(name: string): Variable { - if (!this.variables[name]) return (this.variables[name] = new GlobalVariable(name)); - return this.variables[name] as GlobalVariable; + let variable = this.variables.get(name); + if (!variable) { + variable = new GlobalVariable(name); + this.variables.set(name, variable); + } + return variable; } } diff --git a/src/ast/scopes/ModuleScope.ts b/src/ast/scopes/ModuleScope.ts index b38bd20dadf..f1216638342 100644 --- a/src/ast/scopes/ModuleScope.ts +++ b/src/ast/scopes/ModuleScope.ts @@ -1,5 +1,4 @@ import { AstContext } from '../../Module'; -import { NameCollection } from '../../utils/reservedNames'; import ExportDefaultDeclaration from '../nodes/ExportDefaultDeclaration'; import { UNDEFINED_EXPRESSION } from '../values'; import ExportDefaultVariable from '../variables/ExportDefaultVariable'; @@ -16,7 +15,7 @@ export default class ModuleScope extends ChildScope { constructor(parent: GlobalScope, context: AstContext) { super(parent); this.context = context; - this.variables.this = new LocalVariable('this', null, UNDEFINED_EXPRESSION, context); + this.variables.set('this', new LocalVariable('this', null, UNDEFINED_EXPRESSION, context)); } addExportDefaultDeclaration( @@ -24,22 +23,20 @@ export default class ModuleScope extends ChildScope { exportDefaultDeclaration: ExportDefaultDeclaration, context: AstContext ): ExportDefaultVariable { - return (this.variables.default = new ExportDefaultVariable( - name, - exportDefaultDeclaration, - context - )); + const variable = new ExportDefaultVariable(name, exportDefaultDeclaration, context); + this.variables.set('default', variable); + return variable; } addNamespaceMemberAccess(_name: string, variable: Variable) { if (variable instanceof GlobalVariable) { - this.accessedOutsideVariables[variable.name] = variable; + this.accessedOutsideVariables.set(variable.name, variable); } } - deconflict(forbiddenNames: NameCollection) { + deconflict(format: string) { // all module level variables are already deconflicted when deconflicting the chunk - for (const scope of this.children) scope.deconflict(forbiddenNames); + for (const scope of this.children) scope.deconflict(format); } findLexicalBoundary() { @@ -47,13 +44,13 @@ export default class ModuleScope extends ChildScope { } findVariable(name: string) { - const knownVariable = this.variables[name] || this.accessedOutsideVariables[name]; + const knownVariable = this.variables.get(name) || this.accessedOutsideVariables.get(name); if (knownVariable) { return knownVariable; } const variable = this.context.traceVariable(name) || this.parent.findVariable(name); if (variable instanceof GlobalVariable) { - this.accessedOutsideVariables[name] = variable; + this.accessedOutsideVariables.set(name, variable); } return variable; } diff --git a/src/ast/scopes/ParameterScope.ts b/src/ast/scopes/ParameterScope.ts index 32460fa07a4..8e013382c70 100644 --- a/src/ast/scopes/ParameterScope.ts +++ b/src/ast/scopes/ParameterScope.ts @@ -23,14 +23,13 @@ export default class ParameterScope extends ChildScope { */ addParameterDeclaration(identifier: Identifier) { const name = identifier.name; - let variable; - if (name in this.hoistedBodyVarScope.variables) { - variable = this.hoistedBodyVarScope.variables[name] as LocalVariable; + let variable = this.hoistedBodyVarScope.variables.get(name) as LocalVariable; + if (variable) { variable.addDeclaration(identifier, null); } else { variable = new LocalVariable(name, identifier, UNKNOWN_EXPRESSION, this.context); } - this.variables[name] = variable; + this.variables.set(name, variable); this.parameters.push(variable); return variable; } diff --git a/src/ast/scopes/Scope.ts b/src/ast/scopes/Scope.ts index 28b5ee9a976..e38a5b068bc 100644 --- a/src/ast/scopes/Scope.ts +++ b/src/ast/scopes/Scope.ts @@ -8,9 +8,7 @@ import ChildScope from './ChildScope'; export default class Scope { children: ChildScope[] = []; - variables: { - [name: string]: Variable; - } = Object.create(null); + variables = new Map(); addDeclaration( identifier: Identifier, @@ -19,21 +17,23 @@ export default class Scope { _isHoisted: boolean ) { const name = identifier.name; - if (this.variables[name]) { - (this.variables[name] as LocalVariable).addDeclaration(identifier, init); + let variable = this.variables.get(name) as LocalVariable; + if (variable) { + variable.addDeclaration(identifier, init); } else { - this.variables[name] = new LocalVariable( + variable = new LocalVariable( identifier.name, identifier, init || UNDEFINED_EXPRESSION, context ); + this.variables.set(name, variable); } - return this.variables[name]; + return variable; } contains(name: string): boolean { - return name in this.variables; + return this.variables.has(name); } findVariable(_name: string): Variable { diff --git a/src/finalisers/amd.ts b/src/finalisers/amd.ts index 54ae7e83c57..54aeea91695 100644 --- a/src/finalisers/amd.ts +++ b/src/finalisers/amd.ts @@ -6,9 +6,6 @@ import getExportBlock from './shared/getExportBlock'; import getInteropBlock from './shared/getInteropBlock'; import warnOnBuiltins from './shared/warnOnBuiltins'; -// TODO consider using improved AMD relative imports: -// https://requirejs.org/docs/api.html#modulenotes-urls - // AMD resolution will only respect the AMD baseUrl if the .js extension is omitted. // The assumption is that this makes sense for all relative ids: // https://requirejs.org/docs/api.html#jsfiles @@ -22,15 +19,14 @@ function removeExtensionFromRelativeAmdId(id: string) { export default function amd( magicString: MagicStringBundle, { + accessedGlobals, dependencies, - dynamicImport, exports, hasExports, indentString: t, intro, isEntryModuleFacade, namedExportsMode, - needsAmdModule, outro, varOrConst, warn @@ -49,12 +45,12 @@ export default function amd( deps.unshift(`'exports'`); } - if (dynamicImport) { + if (accessedGlobals.has('require')) { args.unshift('require'); deps.unshift(`'require'`); } - if (needsAmdModule) { + if (accessedGlobals.has('module')) { args.unshift('module'); deps.unshift(`'module'`); } diff --git a/src/finalisers/index.ts b/src/finalisers/index.ts index 5b43a799282..e3bbfd38325 100644 --- a/src/finalisers/index.ts +++ b/src/finalisers/index.ts @@ -9,15 +9,14 @@ import system from './system'; import umd from './umd'; export interface FinaliserOptions { + accessedGlobals: Set; dependencies: ChunkDependencies; - dynamicImport: boolean; exports: ChunkExports; hasExports: boolean; indentString: string; intro: string; isEntryModuleFacade: boolean; namedExportsMode: boolean; - needsAmdModule: boolean; outro: string; usesTopLevelAwait: boolean; varOrConst: 'var' | 'const'; diff --git a/src/finalisers/system.ts b/src/finalisers/system.ts index a1ba07ba721..1eb45f65d43 100644 --- a/src/finalisers/system.ts +++ b/src/finalisers/system.ts @@ -80,8 +80,10 @@ const getMissingExportsBlock = (exports: ChunkExports, _: string, t: string, n: export default function system( magicString: MagicStringBundle, { + accessedGlobals, dependencies, exports, + hasExports, indentString: t, intro, outro, @@ -162,11 +164,16 @@ export default function system( }); const registeredName = options.name ? `'${options.name}',${_}` : ''; + const wrapperParams = accessedGlobals.has('module') + ? `exports,${_}module` + : hasExports + ? 'exports' + : ''; let wrapperStart = `System.register(${registeredName}[` + dependencyIds.join(`,${_}`) + - `],${_}function${_}(exports,${_}module)${_}{${n}${t}'use strict';` + + `],${_}function${_}(${wrapperParams})${_}{${n}${t}'use strict';` + getStarExcludesBlock(starExcludes, varOrConst, _, t, n) + getImportBindingsBlock(importBindings, _, t, n) + `${n}${t}return${_}{${ diff --git a/src/utils/deconflictChunk.ts b/src/utils/deconflictChunk.ts index 1deb225fd85..8bce2a67e75 100644 --- a/src/utils/deconflictChunk.ts +++ b/src/utils/deconflictChunk.ts @@ -3,12 +3,11 @@ import Variable from '../ast/variables/Variable'; import Chunk from '../Chunk'; import ExternalModule from '../ExternalModule'; import Module from '../Module'; -import { NameCollection, RESERVED_NAMES_BY_FORMAT } from './reservedNames'; import { getSafeName } from './safeName'; const DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT: { [format: string]: ( - usedNames: NameCollection, + usedNames: Set, imports: Set, dependencies: (ExternalModule | Chunk)[], interop: boolean, @@ -27,15 +26,12 @@ export function deconflictChunk( modules: Module[], dependencies: (ExternalModule | Chunk)[], imports: Set, - usedNames: NameCollection, + usedNames: Set, format: string, interop: boolean, preserveModules: boolean ) { - const { forbiddenNames, formatGlobals } = RESERVED_NAMES_BY_FORMAT[format]; - Object.assign(usedNames, forbiddenNames); - Object.assign(usedNames, formatGlobals); - addUsedGlobalNames(usedNames, modules); + addUsedGlobalNames(usedNames, modules, format); deconflictTopLevelVariables(usedNames, modules); DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT[format]( usedNames, @@ -46,26 +42,31 @@ export function deconflictChunk( ); for (const module of modules) { - module.scope.deconflict(forbiddenNames); + module.scope.deconflict(format); } } -function addUsedGlobalNames(usedNames: NameCollection, modules: Module[]) { - const accessedGlobals: { [name: string]: Variable } = Object.assign( - {}, - ...modules.map(module => module.scope.accessedOutsideVariables) - ); - - for (const name of Object.keys(accessedGlobals)) { - const variable = accessedGlobals[name]; - if (variable.included) { - usedNames[name] = true; +function addUsedGlobalNames(usedNames: Set, modules: Module[], format: string) { + for (const module of modules) { + const moduleScope = module.scope; + for (const [name, variable] of moduleScope.accessedOutsideVariables) { + if (variable.included) { + usedNames.add(name); + } + } + const accessedGlobalVariables = + moduleScope.accessedGlobalVariablesByFormat && + moduleScope.accessedGlobalVariablesByFormat.get(format); + if (accessedGlobalVariables) { + for (const name of accessedGlobalVariables) { + usedNames.add(name); + } } } } function deconflictImportsEsm( - usedNames: NameCollection, + usedNames: Set, imports: Set, _dependencies: (ExternalModule | Chunk)[], interop: boolean @@ -88,7 +89,7 @@ function deconflictImportsEsm( } function deconflictImportsOther( - usedNames: NameCollection, + usedNames: Set, imports: Set, dependencies: (ExternalModule | Chunk)[], interop: boolean, @@ -121,11 +122,9 @@ function deconflictImportsOther( } } -function deconflictTopLevelVariables(usedNames: NameCollection, modules: Module[]) { +function deconflictTopLevelVariables(usedNames: Set, modules: Module[]) { for (const module of modules) { - const moduleVariables = module.scope.variables; - for (const name of Object.keys(moduleVariables)) { - const variable = moduleVariables[name]; + for (const variable of module.scope.variables.values()) { if ( variable.included && // this will only happen for exports in some formats diff --git a/src/utils/defaultPlugin.ts b/src/utils/defaultPlugin.ts index 1c3c10f69d7..1da30300ae7 100644 --- a/src/utils/defaultPlugin.ts +++ b/src/utils/defaultPlugin.ts @@ -112,7 +112,7 @@ const getRelativeUrlFromDocument = (relativePath: string) => ); const relativeUrlMechanisms: Record string> = { - amd: relativePath => getResolveUrl(`module.uri + '/../${relativePath}', document.baseURI`), + amd: relativePath => getResolveUrl(`require.toUrl('${relativePath}'), document.baseURI`), cjs: relativePath => `(typeof document === 'undefined' ? ${getResolveUrl( `'file:' + __dirname + '/${relativePath}'`, @@ -127,3 +127,19 @@ const relativeUrlMechanisms: Record string> = `(require('u' + 'rl').URL)` )} : ${getRelativeUrlFromDocument(relativePath)})` }; + +export const accessedMetaUrlGlobals = { + amd: ['document', 'module', 'URL'], + cjs: ['document', 'require', 'URL'], + iife: ['document', 'URL'], + system: ['module'], + umd: ['document', 'require', 'URL'] +}; + +export const accessedFileUrlGlobals = { + amd: ['document', 'require', 'URL'], + cjs: ['document', 'require', 'URL'], + iife: ['document', 'URL'], + system: ['module', 'URL'], + umd: ['document', 'require', 'URL'] +}; diff --git a/src/utils/pluginDriver.ts b/src/utils/pluginDriver.ts index 8e74d2e1d0f..796b1a272cb 100644 --- a/src/utils/pluginDriver.ts +++ b/src/utils/pluginDriver.ts @@ -22,7 +22,6 @@ import { errInvalidRollupPhaseForEmitChunk, error } from './error'; -import { NameCollection } from './reservedNames'; type Args = T extends (...args: infer K) => any ? K : never; @@ -98,17 +97,17 @@ export function createPluginDriver( getRollupDefaultPlugin(options.preserveSymlinks as boolean) ]; const { emitAsset, getAssetFileName, setAssetSource } = createAssetPluginHooks(graph.assetsById); - const existingPluginKeys: NameCollection = {}; + const existingPluginKeys = new Set(); let hasLoadersOrTransforms = false; const pluginContexts: PluginContext[] = plugins.map((plugin, pidx) => { let cacheable = true; if (typeof plugin.cacheKey !== 'string') { - if (typeof plugin.name !== 'string' || existingPluginKeys[plugin.name]) { + if (typeof plugin.name !== 'string' || existingPluginKeys.has(plugin.name)) { cacheable = false; } else { - existingPluginKeys[plugin.name] = true; + existingPluginKeys.add(plugin.name); } } diff --git a/src/utils/reservedNames.ts b/src/utils/reservedNames.ts index a72f80a7bfb..6d4bdd6cb6e 100644 --- a/src/utils/reservedNames.ts +++ b/src/utils/reservedNames.ts @@ -1,5 +1,3 @@ -import { INTEROP_DEFAULT_VARIABLE } from './variableNames'; - export interface NameCollection { [name: string]: true; } @@ -59,23 +57,3 @@ export const RESERVED_NAMES: NameCollection = Object.assign(Object.create(null), with: true, yield: true }); - -const NONE: NameCollection = {}; -const EXPORTS: NameCollection = { exports: true }; - -export const RESERVED_NAMES_BY_FORMAT: { - [format: string]: { forbiddenNames: NameCollection; formatGlobals: NameCollection }; -} = { - amd: { formatGlobals: EXPORTS, forbiddenNames: RESERVED_NAMES }, - cjs: { - forbiddenNames: RESERVED_NAMES, - formatGlobals: { exports: true, module: true, [INTEROP_DEFAULT_VARIABLE]: true } - }, - es: { formatGlobals: NONE, forbiddenNames: RESERVED_NAMES }, - iife: { formatGlobals: EXPORTS, forbiddenNames: RESERVED_NAMES }, - system: { - forbiddenNames: Object.assign(Object.create(null), RESERVED_NAMES, EXPORTS), - formatGlobals: NONE - }, - umd: { formatGlobals: EXPORTS, forbiddenNames: RESERVED_NAMES } -}; diff --git a/src/utils/safeName.ts b/src/utils/safeName.ts index aad1d49a468..94644da71ae 100644 --- a/src/utils/safeName.ts +++ b/src/utils/safeName.ts @@ -1,12 +1,12 @@ import { toBase64 } from './base64'; -import { NameCollection } from './reservedNames'; +import { RESERVED_NAMES } from './reservedNames'; -export function getSafeName(baseName: string, usedNames: NameCollection): string { +export function getSafeName(baseName: string, usedNames: Set): string { let safeName = baseName; let count = 1; - while (usedNames[safeName]) { + while (usedNames.has(safeName) || RESERVED_NAMES[safeName]) { safeName = `${baseName}$${toBase64(count++)}`; } - usedNames[safeName] = true; + usedNames.add(safeName); return safeName; } diff --git a/src/utils/traverseStaticDependencies.ts b/src/utils/traverseStaticDependencies.ts index e8cc8345308..e1bc8a8063b 100644 --- a/src/utils/traverseStaticDependencies.ts +++ b/src/utils/traverseStaticDependencies.ts @@ -1,21 +1,20 @@ import ExternalModule from '../ExternalModule'; import Module from '../Module'; -import { NameCollection } from './reservedNames'; export function markModuleAndImpureDependenciesAsExecuted(baseModule: Module) { baseModule.isExecuted = true; const modules = [baseModule]; - const visitedModules: NameCollection = {}; + const visitedModules = new Set(); for (const module of modules) { for (const dependency of module.dependencies) { if ( !(dependency instanceof ExternalModule) && !dependency.isExecuted && dependency.moduleSideEffects && - !visitedModules[dependency.id] + !visitedModules.has(dependency.id) ) { dependency.isExecuted = true; - visitedModules[dependency.id] = true; + visitedModules.add(dependency.id); modules.push(dependency); } } diff --git a/test/chunking-form/samples/aliasing-extensions/_expected/system/generated-main4.dynamic.js b/test/chunking-form/samples/aliasing-extensions/_expected/system/generated-main4.dynamic.js index ad30223d53c..1fd85fc4363 100644 --- a/test/chunking-form/samples/aliasing-extensions/_expected/system/generated-main4.dynamic.js +++ b/test/chunking-form/samples/aliasing-extensions/_expected/system/generated-main4.dynamic.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/aliasing-extensions/_expected/system/generated-main5.js b/test/chunking-form/samples/aliasing-extensions/_expected/system/generated-main5.js index a5cc43bcc37..e71255e3ef3 100644 --- a/test/chunking-form/samples/aliasing-extensions/_expected/system/generated-main5.js +++ b/test/chunking-form/samples/aliasing-extensions/_expected/system/generated-main5.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/aliasing-extensions/_expected/system/main2.js b/test/chunking-form/samples/aliasing-extensions/_expected/system/main2.js index 80e8224ee07..a272843f834 100644 --- a/test/chunking-form/samples/aliasing-extensions/_expected/system/main2.js +++ b/test/chunking-form/samples/aliasing-extensions/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/aliasing-extensions/_expected/system/main3.js b/test/chunking-form/samples/aliasing-extensions/_expected/system/main3.js index 9e741c363b7..ddc6fb10c48 100644 --- a/test/chunking-form/samples/aliasing-extensions/_expected/system/main3.js +++ b/test/chunking-form/samples/aliasing-extensions/_expected/system/main3.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/asset-emission/_expected/amd/main.js b/test/chunking-form/samples/asset-emission/_expected/amd/main.js index ecd1444b38d..ad49a69bf83 100644 --- a/test/chunking-form/samples/asset-emission/_expected/amd/main.js +++ b/test/chunking-form/samples/asset-emission/_expected/amd/main.js @@ -1,6 +1,6 @@ -define(['module', 'require', './nested/chunk'], function (module, require, __chunk_1) { 'use strict'; +define(['require', './nested/chunk'], function (require, __chunk_1) { 'use strict'; - var logo = new URL(module.uri + '/../assets/logo1-25253976.svg', document.baseURI).href; + var logo = new URL(require.toUrl('assets/logo1-25253976.svg'), document.baseURI).href; __chunk_1.showImage(logo); new Promise(function (resolve, reject) { require(['./nested/chunk2'], resolve, reject) }); diff --git a/test/chunking-form/samples/asset-emission/_expected/amd/nested/chunk2.js b/test/chunking-form/samples/asset-emission/_expected/amd/nested/chunk2.js index c3c0a8c5af7..ad229a9409e 100644 --- a/test/chunking-form/samples/asset-emission/_expected/amd/nested/chunk2.js +++ b/test/chunking-form/samples/asset-emission/_expected/amd/nested/chunk2.js @@ -1,6 +1,6 @@ -define(['module', './chunk'], function (module, __chunk_1) { 'use strict'; +define(['require', './chunk'], function (require, __chunk_1) { 'use strict'; - var logo = new URL(module.uri + '/../../assets/logo2-25253976.svg', document.baseURI).href; + var logo = new URL(require.toUrl('../assets/logo2-25253976.svg'), document.baseURI).href; __chunk_1.showImage(logo); diff --git a/test/chunking-form/samples/asset-emission/_expected/system/nested/chunk.js b/test/chunking-form/samples/asset-emission/_expected/system/nested/chunk.js index ab95e6f2e52..11e47945a7d 100644 --- a/test/chunking-form/samples/asset-emission/_expected/system/nested/chunk.js +++ b/test/chunking-form/samples/asset-emission/_expected/system/nested/chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/basic-chunking/_expected/system/generated-chunk.js b/test/chunking-form/samples/basic-chunking/_expected/system/generated-chunk.js index ca77846f899..a5a0d584ede 100644 --- a/test/chunking-form/samples/basic-chunking/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/basic-chunking/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/basic-chunking/_expected/system/main1.js b/test/chunking-form/samples/basic-chunking/_expected/system/main1.js index 6b1bb5552aa..6d693637dce 100644 --- a/test/chunking-form/samples/basic-chunking/_expected/system/main1.js +++ b/test/chunking-form/samples/basic-chunking/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var fn$1; return { diff --git a/test/chunking-form/samples/basic-chunking/_expected/system/main2.js b/test/chunking-form/samples/basic-chunking/_expected/system/main2.js index bfe0d05d09a..f89c1969cba 100644 --- a/test/chunking-form/samples/basic-chunking/_expected/system/main2.js +++ b/test/chunking-form/samples/basic-chunking/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var fn$2; return { diff --git a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk.js index 521f722a36b..80adb5c2211 100644 --- a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk2.js b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk2.js index e631c284c55..51118121202 100644 --- a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk2.js +++ b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk3.js'], function (exports) { 'use strict'; var x$1, x$2; return { diff --git a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk3.js b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk3.js index b5720600293..6c2a87f635a 100644 --- a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk3.js +++ b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/generated-chunk3.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main1.js b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main1.js index 131e3c6a0d0..32946cf076f 100644 --- a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main1.js +++ b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function () { 'use strict'; var x, y; return { diff --git a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main2.js b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main2.js index 0dc9aea21dc..b03ec442333 100644 --- a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main2.js +++ b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function () { 'use strict'; return { setters: [function () {}, function () {}, function () {}], diff --git a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main3.js b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main3.js index fd707ad411c..0546a48da7c 100644 --- a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main3.js +++ b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main3.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main4.js b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main4.js index e5b7db939fe..1445de70bec 100644 --- a/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main4.js +++ b/test/chunking-form/samples/chunk-deshadowing-reassignment/_expected/system/main4.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk3.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk.js index 5f2cd618ed1..3f7c0ec4cbd 100644 --- a/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk2.js b/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk2.js index 5c8b8f3b61e..9af2689ddec 100644 --- a/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk2.js +++ b/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk3.js b/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk3.js index fc71f8f674c..2325334df60 100644 --- a/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk3.js +++ b/test/chunking-form/samples/chunk-execution-order/_expected/system/generated-chunk3.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js'], function () { 'use strict'; return { setters: [function () {}, function () {}], diff --git a/test/chunking-form/samples/chunk-execution-order/_expected/system/main1.js b/test/chunking-form/samples/chunk-execution-order/_expected/system/main1.js index 4868354497b..d3eed3ab319 100644 --- a/test/chunking-form/samples/chunk-execution-order/_expected/system/main1.js +++ b/test/chunking-form/samples/chunk-execution-order/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function () { 'use strict'; var x; return { diff --git a/test/chunking-form/samples/chunk-execution-order/_expected/system/main2.js b/test/chunking-form/samples/chunk-execution-order/_expected/system/main2.js index 0dc9aea21dc..b03ec442333 100644 --- a/test/chunking-form/samples/chunk-execution-order/_expected/system/main2.js +++ b/test/chunking-form/samples/chunk-execution-order/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function () { 'use strict'; return { setters: [function () {}, function () {}, function () {}], diff --git a/test/chunking-form/samples/chunk-execution-order/_expected/system/main3.js b/test/chunking-form/samples/chunk-execution-order/_expected/system/main3.js index fd707ad411c..0546a48da7c 100644 --- a/test/chunking-form/samples/chunk-execution-order/_expected/system/main3.js +++ b/test/chunking-form/samples/chunk-execution-order/_expected/system/main3.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/chunk-execution-order/_expected/system/main4.js b/test/chunking-form/samples/chunk-execution-order/_expected/system/main4.js index ef7af5f9dec..32b933bbc4f 100644 --- a/test/chunking-form/samples/chunk-execution-order/_expected/system/main4.js +++ b/test/chunking-form/samples/chunk-execution-order/_expected/system/main4.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk2.js'], function (exports, module) { +System.register(['./generated-chunk2.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/generated-chunk.js index 0575111e34d..503c153f3b0 100644 --- a/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/main1.js b/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/main1.js index a56e287cdeb..0c039cedaa5 100644 --- a/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/main1.js +++ b/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var fn; return { diff --git a/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/main2.js b/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/main2.js index 650cc337b2f..feb990ed1a8 100644 --- a/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/main2.js +++ b/test/chunking-form/samples/chunk-export-deshadowing/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var fn; return { diff --git a/test/chunking-form/samples/chunk-export-renaming/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunk-export-renaming/_expected/system/generated-chunk.js index 63d82892f97..68c57590ad1 100644 --- a/test/chunking-form/samples/chunk-export-renaming/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunk-export-renaming/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-export-renaming/_expected/system/main1.js b/test/chunking-form/samples/chunk-export-renaming/_expected/system/main1.js index 3478c9cfd3c..d76ff21e960 100644 --- a/test/chunking-form/samples/chunk-export-renaming/_expected/system/main1.js +++ b/test/chunking-form/samples/chunk-export-renaming/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/chunk-export-renaming/_expected/system/main2.js b/test/chunking-form/samples/chunk-export-renaming/_expected/system/main2.js index d761fa47734..26ccfa8c843 100644 --- a/test/chunking-form/samples/chunk-export-renaming/_expected/system/main2.js +++ b/test/chunking-form/samples/chunk-export-renaming/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var ONE_CONSTANT; return { diff --git a/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/generated-chunk.js index 41b6d9d348f..31d3ba3abb4 100644 --- a/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/main1.js b/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/main1.js index 84055b7a8b7..4b216f95f3c 100644 --- a/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/main1.js +++ b/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var emptyFunction; return { diff --git a/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/main2.js b/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/main2.js index d089c531d6b..f26bc7ab25f 100644 --- a/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/main2.js +++ b/test/chunking-form/samples/chunk-import-deshadowing/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/chunk-live-bindings/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunk-live-bindings/_expected/system/generated-chunk.js index 8434bcc69ab..511c22b7f83 100644 --- a/test/chunking-form/samples/chunk-live-bindings/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunk-live-bindings/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-live-bindings/_expected/system/main1.js b/test/chunking-form/samples/chunk-live-bindings/_expected/system/main1.js index 8466170dc26..abfa0773b80 100644 --- a/test/chunking-form/samples/chunk-live-bindings/_expected/system/main1.js +++ b/test/chunking-form/samples/chunk-live-bindings/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var fn, text; return { diff --git a/test/chunking-form/samples/chunk-live-bindings/_expected/system/main2.js b/test/chunking-form/samples/chunk-live-bindings/_expected/system/main2.js index f71a48d8761..fad90019042 100644 --- a/test/chunking-form/samples/chunk-live-bindings/_expected/system/main2.js +++ b/test/chunking-form/samples/chunk-live-bindings/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var fn, text; return { diff --git a/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/generated-chunk.js index c616844e3d7..ce39076798b 100644 --- a/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/main1.js b/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/main1.js index 20335243d09..f3b25331f17 100644 --- a/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/main1.js +++ b/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var commonjsGlobal, d; return { diff --git a/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/main2.js b/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/main2.js index 518c1827949..15f9ff21e60 100644 --- a/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/main2.js +++ b/test/chunking-form/samples/chunk-namespace-boundary/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var d; return { diff --git a/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk.js b/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk.js index 1a32db69510..6f90b945280 100644 --- a/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk.js +++ b/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk2.js b/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk2.js index ee9fde8fbcf..cb32055bf44 100644 --- a/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk2.js +++ b/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk3.js b/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk3.js index f1aa55c527c..77b824db0df 100644 --- a/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk3.js +++ b/test/chunking-form/samples/chunk-naming/_expected/system/chunks/chunk3.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunk-naming/_expected/system/custom/entryC.js b/test/chunking-form/samples/chunk-naming/_expected/system/custom/entryC.js index 60c6613414d..0ae872b28a0 100644 --- a/test/chunking-form/samples/chunk-naming/_expected/system/custom/entryC.js +++ b/test/chunking-form/samples/chunk-naming/_expected/system/custom/entryC.js @@ -1,4 +1,4 @@ -System.register(['../chunks/chunk.js', '../chunks/chunk3.js'], function (exports, module) { +System.register(['../chunks/chunk.js', '../chunks/chunk3.js'], function () { 'use strict'; var num, num$1; return { diff --git a/test/chunking-form/samples/chunk-naming/_expected/system/entryA.js b/test/chunking-form/samples/chunk-naming/_expected/system/entryA.js index 765530385b9..1f0441bc93e 100644 --- a/test/chunking-form/samples/chunk-naming/_expected/system/entryA.js +++ b/test/chunking-form/samples/chunk-naming/_expected/system/entryA.js @@ -1,4 +1,4 @@ -System.register(['./chunks/chunk.js', './chunks/chunk2.js'], function (exports, module) { +System.register(['./chunks/chunk.js', './chunks/chunk2.js'], function () { 'use strict'; var num, num$1; return { diff --git a/test/chunking-form/samples/chunk-naming/_expected/system/entryB.js b/test/chunking-form/samples/chunk-naming/_expected/system/entryB.js index f5eff513482..dee75a915fc 100644 --- a/test/chunking-form/samples/chunk-naming/_expected/system/entryB.js +++ b/test/chunking-form/samples/chunk-naming/_expected/system/entryB.js @@ -1,4 +1,4 @@ -System.register(['./chunks/chunk2.js', './chunks/chunk3.js'], function (exports, module) { +System.register(['./chunks/chunk2.js', './chunks/chunk3.js'], function () { 'use strict'; var num, num$1; return { diff --git a/test/chunking-form/samples/chunking-compact/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunking-compact/_expected/system/generated-chunk.js index 8d39b1cd2c9..c698a9a6a1d 100644 --- a/test/chunking-form/samples/chunking-compact/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunking-compact/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([],function(exports,module){'use strict';return{execute:function(){exports('f',fn$1);function fn () { +System.register([],function(exports){'use strict';return{execute:function(){exports('f',fn$1);function fn () { console.log('lib2 fn'); }function fn$1 () { fn(); diff --git a/test/chunking-form/samples/chunking-compact/_expected/system/main1.js b/test/chunking-form/samples/chunking-compact/_expected/system/main1.js index 4926c74c4a4..f8b5e0df27e 100644 --- a/test/chunking-form/samples/chunking-compact/_expected/system/main1.js +++ b/test/chunking-form/samples/chunking-compact/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'],function(exports,module){'use strict';var fn$1;return{setters:[function(module){fn$1=module.f;}],execute:function(){function fn () { +System.register(['./generated-chunk.js'],function(exports){'use strict';var fn$1;return{setters:[function(module){fn$1=module.f;}],execute:function(){function fn () { console.log('dep1 fn'); }class Main1 { constructor () { diff --git a/test/chunking-form/samples/chunking-compact/_expected/system/main2.js b/test/chunking-form/samples/chunking-compact/_expected/system/main2.js index fc41d548b36..17ddf05a6a4 100644 --- a/test/chunking-form/samples/chunking-compact/_expected/system/main2.js +++ b/test/chunking-form/samples/chunking-compact/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js','external'],function(exports,module){'use strict';var fn$3,fn$2;return{setters:[function(module){fn$3=module.f;},function(module){fn$2=module.fn;}],execute:function(){function fn () { +System.register(['./generated-chunk.js','external'],function(exports){'use strict';var fn$3,fn$2;return{setters:[function(module){fn$3=module.f;},function(module){fn$2=module.fn;}],execute:function(){function fn () { console.log('lib1 fn'); fn$2(); }function fn$1 () { diff --git a/test/chunking-form/samples/chunking-externals/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunking-externals/_expected/system/generated-chunk.js index ca77846f899..a5a0d584ede 100644 --- a/test/chunking-form/samples/chunking-externals/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunking-externals/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunking-externals/_expected/system/main1.js b/test/chunking-form/samples/chunking-externals/_expected/system/main1.js index 6b1bb5552aa..6d693637dce 100644 --- a/test/chunking-form/samples/chunking-externals/_expected/system/main1.js +++ b/test/chunking-form/samples/chunking-externals/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var fn$1; return { diff --git a/test/chunking-form/samples/chunking-externals/_expected/system/main2.js b/test/chunking-form/samples/chunking-externals/_expected/system/main2.js index 9078e3a0e47..c29d8e1b2ca 100644 --- a/test/chunking-form/samples/chunking-externals/_expected/system/main2.js +++ b/test/chunking-form/samples/chunking-externals/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', 'external'], function (exports, module) { +System.register(['./generated-chunk.js', 'external'], function (exports) { 'use strict'; var fn$3, fn$2; return { diff --git a/test/chunking-form/samples/chunking-reexport/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunking-reexport/_expected/system/generated-chunk.js index 37b5b00a8a3..fb314b87d49 100644 --- a/test/chunking-form/samples/chunking-reexport/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunking-reexport/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register(['external'], function (exports, module) { +System.register(['external'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/chunking-reexport/_expected/system/main1.js b/test/chunking-form/samples/chunking-reexport/_expected/system/main1.js index f4ef4ad6e8a..faadde80394 100644 --- a/test/chunking-form/samples/chunking-reexport/_expected/system/main1.js +++ b/test/chunking-form/samples/chunking-reexport/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['external', './generated-chunk.js'], function (exports, module) { +System.register(['external', './generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/chunking-reexport/_expected/system/main2.js b/test/chunking-form/samples/chunking-reexport/_expected/system/main2.js index f4ef4ad6e8a..faadde80394 100644 --- a/test/chunking-form/samples/chunking-reexport/_expected/system/main2.js +++ b/test/chunking-form/samples/chunking-reexport/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['external', './generated-chunk.js'], function (exports, module) { +System.register(['external', './generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/chunking-source-maps/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunking-source-maps/_expected/system/generated-chunk.js index 76f35f32a82..e9142c04be5 100644 --- a/test/chunking-form/samples/chunking-source-maps/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunking-source-maps/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/chunking-source-maps/_expected/system/main1.js b/test/chunking-form/samples/chunking-source-maps/_expected/system/main1.js index e110fba6476..93359f8e776 100644 --- a/test/chunking-form/samples/chunking-source-maps/_expected/system/main1.js +++ b/test/chunking-form/samples/chunking-source-maps/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var fn$1; return { diff --git a/test/chunking-form/samples/chunking-source-maps/_expected/system/main2.js b/test/chunking-form/samples/chunking-source-maps/_expected/system/main2.js index c99a9478c50..841980499c9 100644 --- a/test/chunking-form/samples/chunking-source-maps/_expected/system/main2.js +++ b/test/chunking-form/samples/chunking-source-maps/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var fn$2; return { diff --git a/test/chunking-form/samples/chunking-star-external/_expected/system/generated-chunk.js b/test/chunking-form/samples/chunking-star-external/_expected/system/generated-chunk.js index ad80881a5dd..d73c96188d2 100644 --- a/test/chunking-form/samples/chunking-star-external/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/chunking-star-external/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register(['starexternal2', 'external2'], function (exports, module) { +System.register(['starexternal2', 'external2'], function (exports) { 'use strict'; return { setters: [function () {}, function () {}], diff --git a/test/chunking-form/samples/chunking-star-external/_expected/system/main1.js b/test/chunking-form/samples/chunking-star-external/_expected/system/main1.js index 05ec616f62b..db0f67ab147 100644 --- a/test/chunking-form/samples/chunking-star-external/_expected/system/main1.js +++ b/test/chunking-form/samples/chunking-star-external/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['starexternal1', 'external1', 'starexternal2', 'external2', './generated-chunk.js'], function (exports, module) { +System.register(['starexternal1', 'external1', 'starexternal2', 'external2', './generated-chunk.js'], function (exports) { 'use strict'; var _starExcludes = { main: 1, default: 1, e: 1, dep: 1 }; return { diff --git a/test/chunking-form/samples/chunking-star-external/_expected/system/main2.js b/test/chunking-form/samples/chunking-star-external/_expected/system/main2.js index 2195036de0b..6e8f2c8a535 100644 --- a/test/chunking-form/samples/chunking-star-external/_expected/system/main2.js +++ b/test/chunking-form/samples/chunking-star-external/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['starexternal2', 'external2', './generated-chunk.js'], function (exports, module) { +System.register(['starexternal2', 'external2', './generated-chunk.js'], function (exports) { 'use strict'; var _starExcludes = { main: 1, default: 1, e: 1, dep: 1 }; return { diff --git a/test/chunking-form/samples/circular-entry-points/_expected/system/main1.js b/test/chunking-form/samples/circular-entry-points/_expected/system/main1.js index 836d351f7a4..1632ea1c0aa 100644 --- a/test/chunking-form/samples/circular-entry-points/_expected/system/main1.js +++ b/test/chunking-form/samples/circular-entry-points/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./main2.js'], function (exports, module) { +System.register(['./main2.js'], function (exports) { 'use strict'; var p$1; return { diff --git a/test/chunking-form/samples/circular-entry-points/_expected/system/main2.js b/test/chunking-form/samples/circular-entry-points/_expected/system/main2.js index 3d24b81c863..03413d21297 100644 --- a/test/chunking-form/samples/circular-entry-points/_expected/system/main2.js +++ b/test/chunking-form/samples/circular-entry-points/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./main1.js'], function (exports, module) { +System.register(['./main1.js'], function (exports) { 'use strict'; var p$1; return { diff --git a/test/chunking-form/samples/configure-asset-url/_expected/amd/main.js b/test/chunking-form/samples/configure-asset-url/_expected/amd/main.js index 47bef05d750..b521ad4b012 100644 --- a/test/chunking-form/samples/configure-asset-url/_expected/amd/main.js +++ b/test/chunking-form/samples/configure-asset-url/_expected/amd/main.js @@ -1,8 +1,8 @@ -define(['module', 'require'], function (module, require) { 'use strict'; +define(['require'], function (require) { 'use strict'; var asset2 = 'resolved'; - var asset3 = new URL(module.uri + '/../assets/asset-unresolved-9548436d.txt', document.baseURI).href; + var asset3 = new URL(require.toUrl('assets/asset-unresolved-9548436d.txt'), document.baseURI).href; new Promise(function (resolve, reject) { require(['./nested/chunk'], resolve, reject) }).then(result => console.log(result, asset2, asset3)); diff --git a/test/chunking-form/samples/configure-asset-url/_expected/amd/nested/chunk.js b/test/chunking-form/samples/configure-asset-url/_expected/amd/nested/chunk.js index bdbd7f73c64..2a8c640ebaf 100644 --- a/test/chunking-form/samples/configure-asset-url/_expected/amd/nested/chunk.js +++ b/test/chunking-form/samples/configure-asset-url/_expected/amd/nested/chunk.js @@ -1,4 +1,4 @@ -define(['module', 'exports'], function (module, exports) { 'use strict'; +define(['require', 'exports'], function (require, exports) { 'use strict'; var solved = 'nested/chunk.js:solved:assets/asset-solved-9b321da2.txt:../assets/asset-solved-9b321da2.txt'; diff --git a/test/chunking-form/samples/configure-file-url/_expected/amd/main.js b/test/chunking-form/samples/configure-file-url/_expected/amd/main.js index 3877c193000..75ab2148e8f 100644 --- a/test/chunking-form/samples/configure-file-url/_expected/amd/main.js +++ b/test/chunking-form/samples/configure-file-url/_expected/amd/main.js @@ -1,10 +1,10 @@ -define(['module', 'require'], function (module, require) { 'use strict'; +define(['require'], function (require) { 'use strict'; const asset = 'resolved'; const chunk = 'resolved'; - const asset$1 = new URL(module.uri + '/../assets/asset-unresolved-9548436d.txt', document.baseURI).href; - const chunk$1 = new URL(module.uri + '/../nested/chunk.js', document.baseURI).href; + const asset$1 = new URL(require.toUrl('assets/asset-unresolved-9548436d.txt'), document.baseURI).href; + const chunk$1 = new URL(require.toUrl('nested/chunk.js'), document.baseURI).href; new Promise(function (resolve, reject) { require(['./nested/chunk2'], resolve, reject) }).then(result => console.log(result, chunk, chunk$1, asset, asset$1)); diff --git a/test/chunking-form/samples/configure-file-url/_expected/amd/nested/chunk2.js b/test/chunking-form/samples/configure-file-url/_expected/amd/nested/chunk2.js index 6adfcf6b0fe..67a303be630 100644 --- a/test/chunking-form/samples/configure-file-url/_expected/amd/nested/chunk2.js +++ b/test/chunking-form/samples/configure-file-url/_expected/amd/nested/chunk2.js @@ -1,4 +1,4 @@ -define(['module', 'exports'], function (module, exports) { 'use strict'; +define(['require', 'exports'], function (require, exports) { 'use strict'; const asset = 'chunkId=nested/chunk2.js:moduleId=solved:fileName=assets/asset-solved-9b321da2.txt:format=amd:relativePath=../assets/asset-solved-9b321da2.txt:assetReferenceId=6296c678:chunkReferenceId=null' const chunk = 'chunkId=nested/chunk2.js:moduleId=solved:fileName=nested/chunk.js:format=amd:relativePath=chunk.js:assetReferenceId=null:chunkReferenceId=f6c25ae7' diff --git a/test/chunking-form/samples/configure-file-url/_expected/system/nested/chunk.js b/test/chunking-form/samples/configure-file-url/_expected/system/nested/chunk.js index 8f0f1907cfd..9d080a80d2d 100644 --- a/test/chunking-form/samples/configure-file-url/_expected/system/nested/chunk.js +++ b/test/chunking-form/samples/configure-file-url/_expected/system/nested/chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/deconflict-globals/_expected/system/generated-chunk.js b/test/chunking-form/samples/deconflict-globals/_expected/system/generated-chunk.js index 06cfd0e651d..51eb3ae7f88 100644 --- a/test/chunking-form/samples/deconflict-globals/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/deconflict-globals/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/deconflict-globals/_expected/system/main1.js b/test/chunking-form/samples/deconflict-globals/_expected/system/main1.js index 6a658f9df0b..15286672325 100644 --- a/test/chunking-form/samples/deconflict-globals/_expected/system/main1.js +++ b/test/chunking-form/samples/deconflict-globals/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var x; return { diff --git a/test/chunking-form/samples/deconflict-globals/_expected/system/main2.js b/test/chunking-form/samples/deconflict-globals/_expected/system/main2.js index 37408fb2493..1c6ae62b1de 100644 --- a/test/chunking-form/samples/deconflict-globals/_expected/system/main2.js +++ b/test/chunking-form/samples/deconflict-globals/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var x$1; return { diff --git a/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/generated-chunk.js b/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/generated-chunk.js index 9033a33bdef..354d4835b58 100644 --- a/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/main1.js b/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/main1.js index d151450d36b..95ef8b50f7f 100644 --- a/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/main1.js +++ b/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var bar; return { diff --git a/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/main2.js b/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/main2.js index d151450d36b..95ef8b50f7f 100644 --- a/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/main2.js +++ b/test/chunking-form/samples/deduplicate-imports-referencing-originals-2/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var bar; return { diff --git a/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/generated-chunk.js b/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/generated-chunk.js index e7176ddf8fc..301427ae8b5 100644 --- a/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/main1.js b/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/main1.js index d151450d36b..95ef8b50f7f 100644 --- a/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/main1.js +++ b/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var bar; return { diff --git a/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/main2.js b/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/main2.js index d151450d36b..95ef8b50f7f 100644 --- a/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/main2.js +++ b/test/chunking-form/samples/deduplicate-imports-referencing-originals/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var bar; return { diff --git a/test/chunking-form/samples/default-export-name-conflict/_expected/system/generated-chunk.js b/test/chunking-form/samples/default-export-name-conflict/_expected/system/generated-chunk.js index 3a380e061a4..fe71a291529 100644 --- a/test/chunking-form/samples/default-export-name-conflict/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/default-export-name-conflict/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/default-export-name-conflict/_expected/system/main1.js b/test/chunking-form/samples/default-export-name-conflict/_expected/system/main1.js index 015e0fc309c..123cb9a65df 100644 --- a/test/chunking-form/samples/default-export-name-conflict/_expected/system/main1.js +++ b/test/chunking-form/samples/default-export-name-conflict/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var b; return { diff --git a/test/chunking-form/samples/default-export-name-conflict/_expected/system/main2.js b/test/chunking-form/samples/default-export-name-conflict/_expected/system/main2.js index 015e0fc309c..123cb9a65df 100644 --- a/test/chunking-form/samples/default-export-name-conflict/_expected/system/main2.js +++ b/test/chunking-form/samples/default-export-name-conflict/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var b; return { diff --git a/test/chunking-form/samples/default-identifier-renaming/_expected/system/generated-chunk.js b/test/chunking-form/samples/default-identifier-renaming/_expected/system/generated-chunk.js index deb47839a3a..3411d00ec75 100644 --- a/test/chunking-form/samples/default-identifier-renaming/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/default-identifier-renaming/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/default-identifier-renaming/_expected/system/main1.js b/test/chunking-form/samples/default-identifier-renaming/_expected/system/main1.js index 723da3ce8dc..4b7d94d9d89 100644 --- a/test/chunking-form/samples/default-identifier-renaming/_expected/system/main1.js +++ b/test/chunking-form/samples/default-identifier-renaming/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var d; return { diff --git a/test/chunking-form/samples/default-identifier-renaming/_expected/system/main2.js b/test/chunking-form/samples/default-identifier-renaming/_expected/system/main2.js index 518c1827949..15f9ff21e60 100644 --- a/test/chunking-form/samples/default-identifier-renaming/_expected/system/main2.js +++ b/test/chunking-form/samples/default-identifier-renaming/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var d; return { diff --git a/test/chunking-form/samples/dynamic-import-chained/_expected/system/generated-dep2.js b/test/chunking-form/samples/dynamic-import-chained/_expected/system/generated-dep2.js index 135361ec64d..535b40f550f 100644 --- a/test/chunking-form/samples/dynamic-import-chained/_expected/system/generated-dep2.js +++ b/test/chunking-form/samples/dynamic-import-chained/_expected/system/generated-dep2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import-chunking/_expected/system/generated-chunk.js b/test/chunking-form/samples/dynamic-import-chunking/_expected/system/generated-chunk.js index f81c64c43e5..63fbd7708bf 100644 --- a/test/chunking-form/samples/dynamic-import-chunking/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/dynamic-import-chunking/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import-chunking/_expected/system/generated-dep2.js b/test/chunking-form/samples/dynamic-import-chunking/_expected/system/generated-dep2.js index 66ff1296e56..e732ae148d1 100644 --- a/test/chunking-form/samples/dynamic-import-chunking/_expected/system/generated-dep2.js +++ b/test/chunking-form/samples/dynamic-import-chunking/_expected/system/generated-dep2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var multiplier; return { diff --git a/test/chunking-form/samples/dynamic-import-facade/_expected/system/generated-chunk.js b/test/chunking-form/samples/dynamic-import-facade/_expected/system/generated-chunk.js index 749d862d623..0605f07ef7e 100644 --- a/test/chunking-form/samples/dynamic-import-facade/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/dynamic-import-facade/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import-facade/_expected/system/generated-dynamic.js b/test/chunking-form/samples/dynamic-import-facade/_expected/system/generated-dynamic.js index c6dfdcca26b..1ed42711b01 100644 --- a/test/chunking-form/samples/dynamic-import-facade/_expected/system/generated-dynamic.js +++ b/test/chunking-form/samples/dynamic-import-facade/_expected/system/generated-dynamic.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/dynamic-import-facade/_expected/system/main2.js b/test/chunking-form/samples/dynamic-import-facade/_expected/system/main2.js index 28d7c8ffa2c..5801a3edbbe 100644 --- a/test/chunking-form/samples/dynamic-import-facade/_expected/system/main2.js +++ b/test/chunking-form/samples/dynamic-import-facade/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var dynamic, dep; return { diff --git a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/system/generated-inlined.js b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/system/generated-inlined.js index d0c94460fe2..1e8f4870e3d 100644 --- a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/system/generated-inlined.js +++ b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/system/generated-inlined.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/system/generated-separate.js b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/system/generated-separate.js index a6804f10504..09405c5602c 100644 --- a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/system/generated-separate.js +++ b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/system/generated-separate.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import-only-reexports/_expected/system/generated-dynamic.js b/test/chunking-form/samples/dynamic-import-only-reexports/_expected/system/generated-dynamic.js index 7dc00320bec..437f1af456e 100644 --- a/test/chunking-form/samples/dynamic-import-only-reexports/_expected/system/generated-dynamic.js +++ b/test/chunking-form/samples/dynamic-import-only-reexports/_expected/system/generated-dynamic.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import-statically-imported-2/_expected/system/generated-dep1.js b/test/chunking-form/samples/dynamic-import-statically-imported-2/_expected/system/generated-dep1.js index f10c48c389e..dfd0e6bfdcf 100644 --- a/test/chunking-form/samples/dynamic-import-statically-imported-2/_expected/system/generated-dep1.js +++ b/test/chunking-form/samples/dynamic-import-statically-imported-2/_expected/system/generated-dep1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/dynamic-import-statically-imported-2/_expected/system/main.js b/test/chunking-form/samples/dynamic-import-statically-imported-2/_expected/system/main.js index 8140e2f08ec..c6ba95561cb 100644 --- a/test/chunking-form/samples/dynamic-import-statically-imported-2/_expected/system/main.js +++ b/test/chunking-form/samples/dynamic-import-statically-imported-2/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var foo, bar; return { diff --git a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/main.js b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/main.js index 8140e2f08ec..c6ba95561cb 100644 --- a/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/main.js +++ b/test/chunking-form/samples/dynamic-import-statically-imported/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var foo, bar; return { diff --git a/test/chunking-form/samples/dynamic-import-tree-shaking-1/_expected/system/entryA.js b/test/chunking-form/samples/dynamic-import-tree-shaking-1/_expected/system/entryA.js index 08e561ffa22..317d75ddb95 100644 --- a/test/chunking-form/samples/dynamic-import-tree-shaking-1/_expected/system/entryA.js +++ b/test/chunking-form/samples/dynamic-import-tree-shaking-1/_expected/system/entryA.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import-tree-shaking-1/_expected/system/entryB.js b/test/chunking-form/samples/dynamic-import-tree-shaking-1/_expected/system/entryB.js index 80e8224ee07..a272843f834 100644 --- a/test/chunking-form/samples/dynamic-import-tree-shaking-1/_expected/system/entryB.js +++ b/test/chunking-form/samples/dynamic-import-tree-shaking-1/_expected/system/entryB.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import-tree-shaking-2/_expected/system/main1.js b/test/chunking-form/samples/dynamic-import-tree-shaking-2/_expected/system/main1.js index d426b473433..13a22f40e14 100644 --- a/test/chunking-form/samples/dynamic-import-tree-shaking-2/_expected/system/main1.js +++ b/test/chunking-form/samples/dynamic-import-tree-shaking-2/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import-tree-shaking-2/_expected/system/main2.js b/test/chunking-form/samples/dynamic-import-tree-shaking-2/_expected/system/main2.js index 74d18f428b8..85359651b12 100644 --- a/test/chunking-form/samples/dynamic-import-tree-shaking-2/_expected/system/main2.js +++ b/test/chunking-form/samples/dynamic-import-tree-shaking-2/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import/_expected/system/chunks/chunk.js b/test/chunking-form/samples/dynamic-import/_expected/system/chunks/chunk.js index a078238c2c9..e50702721a5 100644 --- a/test/chunking-form/samples/dynamic-import/_expected/system/chunks/chunk.js +++ b/test/chunking-form/samples/dynamic-import/_expected/system/chunks/chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/dynamic-import/_expected/system/chunks/other.js b/test/chunking-form/samples/dynamic-import/_expected/system/chunks/other.js index 94ab520c0bd..49bbf27adb6 100644 --- a/test/chunking-form/samples/dynamic-import/_expected/system/chunks/other.js +++ b/test/chunking-form/samples/dynamic-import/_expected/system/chunks/other.js @@ -1,4 +1,4 @@ -System.register(['./chunk.js'], function (exports, module) { +System.register(['./chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/emit-chunk-existing/_expected/system/first-main.js b/test/chunking-form/samples/emit-chunk-existing/_expected/system/first-main.js index d3cb55d1a7c..80f3e6cfee2 100644 --- a/test/chunking-form/samples/emit-chunk-existing/_expected/system/first-main.js +++ b/test/chunking-form/samples/emit-chunk-existing/_expected/system/first-main.js @@ -1,4 +1,4 @@ -System.register(['./generated-dep.js'], function (exports, module) { +System.register(['./generated-dep.js'], function () { 'use strict'; var value; return { diff --git a/test/chunking-form/samples/emit-chunk-existing/_expected/system/generated-dep.js b/test/chunking-form/samples/emit-chunk-existing/_expected/system/generated-dep.js index a90fc7ba918..9cb117a6246 100644 --- a/test/chunking-form/samples/emit-chunk-existing/_expected/system/generated-dep.js +++ b/test/chunking-form/samples/emit-chunk-existing/_expected/system/generated-dep.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/emit-chunk-existing/_expected/system/second-main.js b/test/chunking-form/samples/emit-chunk-existing/_expected/system/second-main.js index d3cb55d1a7c..80f3e6cfee2 100644 --- a/test/chunking-form/samples/emit-chunk-existing/_expected/system/second-main.js +++ b/test/chunking-form/samples/emit-chunk-existing/_expected/system/second-main.js @@ -1,4 +1,4 @@ -System.register(['./generated-dep.js'], function (exports, module) { +System.register(['./generated-dep.js'], function () { 'use strict'; var value; return { diff --git a/test/chunking-form/samples/emit-chunk-facade/_expected/system/generated-build-starter.js b/test/chunking-form/samples/emit-chunk-facade/_expected/system/generated-build-starter.js index 89a6d83fcb2..75f69e53e87 100644 --- a/test/chunking-form/samples/emit-chunk-facade/_expected/system/generated-build-starter.js +++ b/test/chunking-form/samples/emit-chunk-facade/_expected/system/generated-build-starter.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/emit-chunk-facade/_expected/system/generated-buildStart.js b/test/chunking-form/samples/emit-chunk-facade/_expected/system/generated-buildStart.js index e91ec17260b..b82461c98ab 100644 --- a/test/chunking-form/samples/emit-chunk-facade/_expected/system/generated-buildStart.js +++ b/test/chunking-form/samples/emit-chunk-facade/_expected/system/generated-buildStart.js @@ -1,4 +1,4 @@ -System.register(['./generated-build-starter.js'], function (exports, module) { +System.register(['./generated-build-starter.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/emit-chunk-facade/_expected/system/main.js b/test/chunking-form/samples/emit-chunk-facade/_expected/system/main.js index 65d7f169f64..4b52f565751 100644 --- a/test/chunking-form/samples/emit-chunk-facade/_expected/system/main.js +++ b/test/chunking-form/samples/emit-chunk-facade/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-build-starter.js'], function (exports, module) { +System.register(['./generated-build-starter.js'], function () { 'use strict'; var value, otherValue; return { diff --git a/test/chunking-form/samples/emit-chunk-named/_expected/system/generated-chunk.js b/test/chunking-form/samples/emit-chunk-named/_expected/system/generated-chunk.js index 6064e844ef4..e69dcc529da 100644 --- a/test/chunking-form/samples/emit-chunk-named/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/emit-chunk-named/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/emit-chunk-named/_expected/system/generated-nested/my-chunk.js b/test/chunking-form/samples/emit-chunk-named/_expected/system/generated-nested/my-chunk.js index 1681878c999..f366fbd644f 100644 --- a/test/chunking-form/samples/emit-chunk-named/_expected/system/generated-nested/my-chunk.js +++ b/test/chunking-form/samples/emit-chunk-named/_expected/system/generated-nested/my-chunk.js @@ -1,4 +1,4 @@ -System.register(['../generated-chunk.js'], function (exports, module) { +System.register(['../generated-chunk.js'], function () { 'use strict'; var value; return { diff --git a/test/chunking-form/samples/emit-chunk-named/_expected/system/main.js b/test/chunking-form/samples/emit-chunk-named/_expected/system/main.js index 9a7867bab74..8a46bd2bdb1 100644 --- a/test/chunking-form/samples/emit-chunk-named/_expected/system/main.js +++ b/test/chunking-form/samples/emit-chunk-named/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var value; return { diff --git a/test/chunking-form/samples/emit-chunk-worker/_expected/amd/chunks/nested.js b/test/chunking-form/samples/emit-chunk-worker/_expected/amd/chunks/nested.js index 9ea6f6a2f08..af95071095a 100644 --- a/test/chunking-form/samples/emit-chunk-worker/_expected/amd/chunks/nested.js +++ b/test/chunking-form/samples/emit-chunk-worker/_expected/amd/chunks/nested.js @@ -1,7 +1,7 @@ -define(['module', 'exports'], function (module, exports) { 'use strict'; +define(['require', 'exports'], function (require, exports) { 'use strict'; const getWorkerMessage = () => new Promise(resolve => { - const worker = new Worker(new URL(module.uri + '/../worker-proxy.js', document.baseURI).href); + const worker = new Worker(new URL(require.toUrl('worker-proxy.js'), document.baseURI).href); worker.onmessage = resolve; }); diff --git a/test/chunking-form/samples/emit-chunk-worker/_expected/amd/main.js b/test/chunking-form/samples/emit-chunk-worker/_expected/amd/main.js index 287f2f571b1..f4916ec626e 100644 --- a/test/chunking-form/samples/emit-chunk-worker/_expected/amd/main.js +++ b/test/chunking-form/samples/emit-chunk-worker/_expected/amd/main.js @@ -1,7 +1,7 @@ -define(['module', 'require', './chunks/chunk'], function (module, require, __chunk_1) { 'use strict'; +define(['require', './chunks/chunk'], function (require, __chunk_1) { 'use strict'; const getWorkerMessage = () => new Promise(resolve => { - const worker = new Worker(new URL(module.uri + '/../chunks/worker-proxy.js', document.baseURI).href); + const worker = new Worker(new URL(require.toUrl('chunks/worker-proxy.js'), document.baseURI).href); worker.onmessage = resolve; }); diff --git a/test/chunking-form/samples/emit-chunk-worker/_expected/system/chunks/chunk.js b/test/chunking-form/samples/emit-chunk-worker/_expected/system/chunks/chunk.js index 402868bf495..48be08070fc 100644 --- a/test/chunking-form/samples/emit-chunk-worker/_expected/system/chunks/chunk.js +++ b/test/chunking-form/samples/emit-chunk-worker/_expected/system/chunks/chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/emit-chunk-worker/_expected/system/chunks/worker.js b/test/chunking-form/samples/emit-chunk-worker/_expected/system/chunks/worker.js index 5fbf0bd9a7f..b8ae183e3d0 100644 --- a/test/chunking-form/samples/emit-chunk-worker/_expected/system/chunks/worker.js +++ b/test/chunking-form/samples/emit-chunk-worker/_expected/system/chunks/worker.js @@ -1,4 +1,4 @@ -System.register(['./chunk.js'], function (exports, module) { +System.register(['./chunk.js'], function () { 'use strict'; var shared; return { diff --git a/test/chunking-form/samples/emit-chunk-worklet/_expected/amd/main.js b/test/chunking-form/samples/emit-chunk-worklet/_expected/amd/main.js index 7cdcf91f2ac..c8445b3eae1 100644 --- a/test/chunking-form/samples/emit-chunk-worklet/_expected/amd/main.js +++ b/test/chunking-form/samples/emit-chunk-worklet/_expected/amd/main.js @@ -1,6 +1,6 @@ -define(['module', './chunks/chunk'], function (module, __chunk_1) { 'use strict'; +define(['require', './chunks/chunk'], function (require, __chunk_1) { 'use strict'; - CSS.paintWorklet.addModule(new URL(module.uri + '/../chunks/worklet.js', document.baseURI).href); + CSS.paintWorklet.addModule(new URL(require.toUrl('chunks/worklet.js'), document.baseURI).href); document.body.innerHTML += `

color: ${__chunk_1.color}, size: ${__chunk_1.size}

`; diff --git a/test/chunking-form/samples/emit-chunk-worklet/_expected/system/chunks/chunk.js b/test/chunking-form/samples/emit-chunk-worklet/_expected/system/chunks/chunk.js index ded5ee2be5d..f348ef3f487 100644 --- a/test/chunking-form/samples/emit-chunk-worklet/_expected/system/chunks/chunk.js +++ b/test/chunking-form/samples/emit-chunk-worklet/_expected/system/chunks/chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/emit-chunk-worklet/_expected/system/chunks/worklet.js b/test/chunking-form/samples/emit-chunk-worklet/_expected/system/chunks/worklet.js index 00643bbfa63..95fe01bb0b4 100644 --- a/test/chunking-form/samples/emit-chunk-worklet/_expected/system/chunks/worklet.js +++ b/test/chunking-form/samples/emit-chunk-worklet/_expected/system/chunks/worklet.js @@ -1,4 +1,4 @@ -System.register(['./chunk.js'], function (exports, module) { +System.register(['./chunk.js'], function () { 'use strict'; var size, color; return { diff --git a/test/chunking-form/samples/emit-chunk/_expected/system/generated-buildStart.js b/test/chunking-form/samples/emit-chunk/_expected/system/generated-buildStart.js index 09cef3a4783..a19c2c2d671 100644 --- a/test/chunking-form/samples/emit-chunk/_expected/system/generated-buildStart.js +++ b/test/chunking-form/samples/emit-chunk/_expected/system/generated-buildStart.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var value; return { diff --git a/test/chunking-form/samples/emit-chunk/_expected/system/generated-chunk.js b/test/chunking-form/samples/emit-chunk/_expected/system/generated-chunk.js index 6064e844ef4..e69dcc529da 100644 --- a/test/chunking-form/samples/emit-chunk/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/emit-chunk/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/emit-chunk/_expected/system/main.js b/test/chunking-form/samples/emit-chunk/_expected/system/main.js index 9a7867bab74..8a46bd2bdb1 100644 --- a/test/chunking-form/samples/emit-chunk/_expected/system/main.js +++ b/test/chunking-form/samples/emit-chunk/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var value; return { diff --git a/test/chunking-form/samples/empty-chunks/_expected/system/main1.js b/test/chunking-form/samples/empty-chunks/_expected/system/main1.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/chunking-form/samples/empty-chunks/_expected/system/main1.js +++ b/test/chunking-form/samples/empty-chunks/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/empty-chunks/_expected/system/main2.js b/test/chunking-form/samples/empty-chunks/_expected/system/main2.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/chunking-form/samples/empty-chunks/_expected/system/main2.js +++ b/test/chunking-form/samples/empty-chunks/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/entry-chunk-export-mode/_expected/system/main1.js b/test/chunking-form/samples/entry-chunk-export-mode/_expected/system/main1.js index e920523e670..fe6d9ae5c23 100644 --- a/test/chunking-form/samples/entry-chunk-export-mode/_expected/system/main1.js +++ b/test/chunking-form/samples/entry-chunk-export-mode/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./main2.js'], function (exports, module) { +System.register(['./main2.js'], function () { 'use strict'; var fn; return { diff --git a/test/chunking-form/samples/entry-chunk-export-mode/_expected/system/main2.js b/test/chunking-form/samples/entry-chunk-export-mode/_expected/system/main2.js index 2e524c78455..94007ef7392 100644 --- a/test/chunking-form/samples/entry-chunk-export-mode/_expected/system/main2.js +++ b/test/chunking-form/samples/entry-chunk-export-mode/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/entry-point-without-own-code/_expected/system/generated-chunk.js b/test/chunking-form/samples/entry-point-without-own-code/_expected/system/generated-chunk.js index 1e78e1d95bd..e9359f1a885 100644 --- a/test/chunking-form/samples/entry-point-without-own-code/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/entry-point-without-own-code/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register(['./m2.js'], function (exports, module) { +System.register(['./m2.js'], function (exports) { 'use strict'; var m2; return { diff --git a/test/chunking-form/samples/entry-point-without-own-code/_expected/system/m1.js b/test/chunking-form/samples/entry-point-without-own-code/_expected/system/m1.js index f2f6739d8c4..4474abd1206 100644 --- a/test/chunking-form/samples/entry-point-without-own-code/_expected/system/m1.js +++ b/test/chunking-form/samples/entry-point-without-own-code/_expected/system/m1.js @@ -1,4 +1,4 @@ -System.register(['./m2.js', './generated-chunk.js'], function (exports, module) { +System.register(['./m2.js', './generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/entry-point-without-own-code/_expected/system/m2.js b/test/chunking-form/samples/entry-point-without-own-code/_expected/system/m2.js index 5f01a36266a..99666912c3f 100644 --- a/test/chunking-form/samples/entry-point-without-own-code/_expected/system/m2.js +++ b/test/chunking-form/samples/entry-point-without-own-code/_expected/system/m2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/entry-point-without-own-code/_expected/system/main.js b/test/chunking-form/samples/entry-point-without-own-code/_expected/system/main.js index ea34b06467b..6f7bc939a64 100644 --- a/test/chunking-form/samples/entry-point-without-own-code/_expected/system/main.js +++ b/test/chunking-form/samples/entry-point-without-own-code/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./m2.js', './generated-chunk.js'], function (exports, module) { +System.register(['./m2.js', './generated-chunk.js'], function () { 'use strict'; var ms; return { diff --git a/test/chunking-form/samples/entrypoint-aliasing/_expected/system/generated-main2alias.js b/test/chunking-form/samples/entrypoint-aliasing/_expected/system/generated-main2alias.js index 39e633e021a..6ef9c75bc0f 100644 --- a/test/chunking-form/samples/entrypoint-aliasing/_expected/system/generated-main2alias.js +++ b/test/chunking-form/samples/entrypoint-aliasing/_expected/system/generated-main2alias.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/entrypoint-aliasing/_expected/system/main1alias.js b/test/chunking-form/samples/entrypoint-aliasing/_expected/system/main1alias.js index 0ed7fa81a98..97c73a3bfa6 100644 --- a/test/chunking-form/samples/entrypoint-aliasing/_expected/system/main1alias.js +++ b/test/chunking-form/samples/entrypoint-aliasing/_expected/system/main1alias.js @@ -1,4 +1,4 @@ -System.register(['./generated-main2alias.js'], function (exports, module) { +System.register(['./generated-main2alias.js'], function () { 'use strict'; var log, dep; return { diff --git a/test/chunking-form/samples/entrypoint-aliasing/_expected/system/main2alias.js b/test/chunking-form/samples/entrypoint-aliasing/_expected/system/main2alias.js index b950dd430b4..c5d63486e0e 100644 --- a/test/chunking-form/samples/entrypoint-aliasing/_expected/system/main2alias.js +++ b/test/chunking-form/samples/entrypoint-aliasing/_expected/system/main2alias.js @@ -1,4 +1,4 @@ -System.register(['./generated-main2alias.js'], function (exports, module) { +System.register(['./generated-main2alias.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/entrypoint-facade/_expected/system/generated-chunk.js b/test/chunking-form/samples/entrypoint-facade/_expected/system/generated-chunk.js index 39e633e021a..6ef9c75bc0f 100644 --- a/test/chunking-form/samples/entrypoint-facade/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/entrypoint-facade/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/entrypoint-facade/_expected/system/main1.js b/test/chunking-form/samples/entrypoint-facade/_expected/system/main1.js index 9631a631529..e42bfafc58b 100644 --- a/test/chunking-form/samples/entrypoint-facade/_expected/system/main1.js +++ b/test/chunking-form/samples/entrypoint-facade/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var log, dep; return { diff --git a/test/chunking-form/samples/entrypoint-facade/_expected/system/main2.js b/test/chunking-form/samples/entrypoint-facade/_expected/system/main2.js index 2f068711437..8f75a67173f 100644 --- a/test/chunking-form/samples/entrypoint-facade/_expected/system/main2.js +++ b/test/chunking-form/samples/entrypoint-facade/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/export-default-from-entry/_expected/system/dep.js b/test/chunking-form/samples/export-default-from-entry/_expected/system/dep.js index 0d32931b472..dcce373e5a7 100644 --- a/test/chunking-form/samples/export-default-from-entry/_expected/system/dep.js +++ b/test/chunking-form/samples/export-default-from-entry/_expected/system/dep.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/export-default-from-entry/_expected/system/main.js b/test/chunking-form/samples/export-default-from-entry/_expected/system/main.js index b389030eb79..9e3ac3a6ab2 100644 --- a/test/chunking-form/samples/export-default-from-entry/_expected/system/main.js +++ b/test/chunking-form/samples/export-default-from-entry/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./dep.js'], function (exports, module) { +System.register(['./dep.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/filenames-patterns/_expected/system/chunk-chunk-63744fb4-system.js b/test/chunking-form/samples/filenames-patterns/_expected/system/chunk-chunk-63744fb4-system.js index 39e633e021a..6ef9c75bc0f 100644 --- a/test/chunking-form/samples/filenames-patterns/_expected/system/chunk-chunk-63744fb4-system.js +++ b/test/chunking-form/samples/filenames-patterns/_expected/system/chunk-chunk-63744fb4-system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/filenames-patterns/_expected/system/entry-main1-379caf56-system.js b/test/chunking-form/samples/filenames-patterns/_expected/system/entry-main1-379caf56-system.js index 522cb5c34a1..f39349ff449 100644 --- a/test/chunking-form/samples/filenames-patterns/_expected/system/entry-main1-379caf56-system.js +++ b/test/chunking-form/samples/filenames-patterns/_expected/system/entry-main1-379caf56-system.js @@ -1,4 +1,4 @@ -System.register(['./chunk-chunk-63744fb4-system.js'], function (exports, module) { +System.register(['./chunk-chunk-63744fb4-system.js'], function () { 'use strict'; var log, dep; return { diff --git a/test/chunking-form/samples/filenames-patterns/_expected/system/entry-main2-9e49ba04-system.js b/test/chunking-form/samples/filenames-patterns/_expected/system/entry-main2-9e49ba04-system.js index 406b3d0a39f..d17fe961092 100644 --- a/test/chunking-form/samples/filenames-patterns/_expected/system/entry-main2-9e49ba04-system.js +++ b/test/chunking-form/samples/filenames-patterns/_expected/system/entry-main2-9e49ba04-system.js @@ -1,4 +1,4 @@ -System.register(['./chunk-chunk-63744fb4-system.js'], function (exports, module) { +System.register(['./chunk-chunk-63744fb4-system.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/grouping-multiple/_expected/system/generated-chunk.js b/test/chunking-form/samples/grouping-multiple/_expected/system/generated-chunk.js index 7deebfb4b02..64d530f72b8 100644 --- a/test/chunking-form/samples/grouping-multiple/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/grouping-multiple/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/grouping-multiple/_expected/system/main1.js b/test/chunking-form/samples/grouping-multiple/_expected/system/main1.js index fce00c609fd..8cd2edf972f 100644 --- a/test/chunking-form/samples/grouping-multiple/_expected/system/main1.js +++ b/test/chunking-form/samples/grouping-multiple/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var x, y; return { diff --git a/test/chunking-form/samples/grouping-multiple/_expected/system/main2.js b/test/chunking-form/samples/grouping-multiple/_expected/system/main2.js index d7f2a2943ec..5dd376c685b 100644 --- a/test/chunking-form/samples/grouping-multiple/_expected/system/main2.js +++ b/test/chunking-form/samples/grouping-multiple/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var x, z; return { diff --git a/test/chunking-form/samples/grouping-multiple/_expected/system/main3.js b/test/chunking-form/samples/grouping-multiple/_expected/system/main3.js index e74cedfa01b..511c66a1978 100644 --- a/test/chunking-form/samples/grouping-multiple/_expected/system/main3.js +++ b/test/chunking-form/samples/grouping-multiple/_expected/system/main3.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var y, z; return { diff --git a/test/chunking-form/samples/grouping-size/_expected/system/generated-chunk.js b/test/chunking-form/samples/grouping-size/_expected/system/generated-chunk.js index dbf76724873..bfb6fbeec36 100644 --- a/test/chunking-form/samples/grouping-size/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/grouping-size/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/grouping-size/_expected/system/generated-chunk2.js b/test/chunking-form/samples/grouping-size/_expected/system/generated-chunk2.js index 5319156fed9..aa8e4c3b599 100644 --- a/test/chunking-form/samples/grouping-size/_expected/system/generated-chunk2.js +++ b/test/chunking-form/samples/grouping-size/_expected/system/generated-chunk2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/grouping-size/_expected/system/main1.js b/test/chunking-form/samples/grouping-size/_expected/system/main1.js index d7c3aaa8d76..2178827b1bd 100644 --- a/test/chunking-form/samples/grouping-size/_expected/system/main1.js +++ b/test/chunking-form/samples/grouping-size/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js'], function (exports) { 'use strict'; var x, y; return { diff --git a/test/chunking-form/samples/grouping-size/_expected/system/main2.js b/test/chunking-form/samples/grouping-size/_expected/system/main2.js index 3d2999d277d..3c03de1b558 100644 --- a/test/chunking-form/samples/grouping-size/_expected/system/main2.js +++ b/test/chunking-form/samples/grouping-size/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js'], function (exports) { 'use strict'; var x, z; return { diff --git a/test/chunking-form/samples/grouping-size/_expected/system/main3.js b/test/chunking-form/samples/grouping-size/_expected/system/main3.js index 0fd9f750a72..48858805f74 100644 --- a/test/chunking-form/samples/grouping-size/_expected/system/main3.js +++ b/test/chunking-form/samples/grouping-size/_expected/system/main3.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk2.js'], function (exports, module) { +System.register(['./generated-chunk2.js'], function (exports) { 'use strict'; var y, z; return { diff --git a/test/chunking-form/samples/import-meta-url/_expected/system/nested/chunk.js b/test/chunking-form/samples/import-meta-url/_expected/system/nested/chunk.js index 86e9a647f1a..a7b1c64c015 100644 --- a/test/chunking-form/samples/import-meta-url/_expected/system/nested/chunk.js +++ b/test/chunking-form/samples/import-meta-url/_expected/system/nested/chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/import-variable-duplicates/_expected/system/first.js b/test/chunking-form/samples/import-variable-duplicates/_expected/system/first.js index 44c3ac2e884..f6906bebd92 100644 --- a/test/chunking-form/samples/import-variable-duplicates/_expected/system/first.js +++ b/test/chunking-form/samples/import-variable-duplicates/_expected/system/first.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/import-variable-duplicates/_expected/system/head.js b/test/chunking-form/samples/import-variable-duplicates/_expected/system/head.js index 988ddae9b51..9f7b4572ac6 100644 --- a/test/chunking-form/samples/import-variable-duplicates/_expected/system/head.js +++ b/test/chunking-form/samples/import-variable-duplicates/_expected/system/head.js @@ -1,4 +1,4 @@ -System.register(['./first.js'], function (exports, module) { +System.register(['./first.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/import-variable-duplicates/_expected/system/main1.js b/test/chunking-form/samples/import-variable-duplicates/_expected/system/main1.js index 44bf0a387ea..7fc36d77ff9 100644 --- a/test/chunking-form/samples/import-variable-duplicates/_expected/system/main1.js +++ b/test/chunking-form/samples/import-variable-duplicates/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./first.js'], function (exports, module) { +System.register(['./first.js'], function () { 'use strict'; var head2; return { diff --git a/test/chunking-form/samples/import-variable-duplicates/_expected/system/main2.js b/test/chunking-form/samples/import-variable-duplicates/_expected/system/main2.js index 3fa43696276..3a99d9e3667 100644 --- a/test/chunking-form/samples/import-variable-duplicates/_expected/system/main2.js +++ b/test/chunking-form/samples/import-variable-duplicates/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./first.js'], function (exports, module) { +System.register(['./first.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/system/main1.js b/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/system/main1.js index 64e1dc330b9..7118a7af492 100644 --- a/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/system/main1.js +++ b/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./manual.js'], function (exports, module) { +System.register(['./manual.js'], function () { 'use strict'; var value; return { diff --git a/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/system/manual.js b/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/system/manual.js index 80b775efdee..e00ab6a2dca 100644 --- a/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/system/manual.js +++ b/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/system/manual.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/system/generated-outer.js b/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/system/generated-outer.js index 6c643ace670..64233ed6405 100644 --- a/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/system/generated-outer.js +++ b/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/system/generated-outer.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/system/main.js b/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/system/main.js index d08b1c13cbd..e9a5e02cdd8 100644 --- a/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/system/main.js +++ b/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-outer.js'], function (exports, module) { +System.register(['./generated-outer.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/system/main.js b/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/system/main.js index 6c03a5d5fb7..b92309e3bf3 100644 --- a/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/system/main.js +++ b/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/system/generated-other.js b/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/system/generated-other.js index 6c643ace670..64233ed6405 100644 --- a/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/system/generated-other.js +++ b/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/system/generated-other.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/system/main.js b/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/system/main.js index 18940857900..7c35b746e8f 100644 --- a/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/system/main.js +++ b/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-other.js'], function (exports, module) { +System.register(['./generated-other.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/system/main.js b/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/system/main.js index 6c03a5d5fb7..b92309e3bf3 100644 --- a/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/system/main.js +++ b/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-inner.js b/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-inner.js index bd48d6dccbe..7079c6deaf2 100644 --- a/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-inner.js +++ b/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-inner.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-middle.js b/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-middle.js index b08dca795bb..e972910e58e 100644 --- a/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-middle.js +++ b/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-middle.js @@ -1,4 +1,4 @@ -System.register(['./generated-manual-inner.js'], function (exports, module) { +System.register(['./generated-manual-inner.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-outer.js b/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-outer.js index 1bb210ffd84..8657192807b 100644 --- a/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-outer.js +++ b/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/generated-manual-outer.js @@ -1,4 +1,4 @@ -System.register(['./generated-manual-middle.js'], function (exports, module) { +System.register(['./generated-manual-middle.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/main.js b/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/main.js index 806c05886bf..07ba8910bbb 100644 --- a/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/main.js +++ b/test/chunking-form/samples/manual-chunks-different-nested/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-manual-inner.js', './generated-manual-middle.js', './generated-manual-outer.js'], function (exports, module) { +System.register(['./generated-manual-inner.js', './generated-manual-middle.js', './generated-manual-outer.js'], function () { 'use strict'; return { setters: [function () {}, function () {}, function () {}], diff --git a/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic.js b/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic.js index 297f23add80..aa776b3f279 100644 --- a/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic.js +++ b/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic2.js b/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic2.js index 3ea6944246f..06d1c404650 100644 --- a/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic2.js +++ b/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic2.js @@ -1,4 +1,4 @@ -System.register(['./generated-dynamic.js'], function (exports, module) { +System.register(['./generated-dynamic.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic3.js b/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic3.js index 9cd1dbdf3ed..e1c23d0e130 100644 --- a/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic3.js +++ b/test/chunking-form/samples/manual-chunks-dynamic-facades/_expected/system/generated-dynamic3.js @@ -1,4 +1,4 @@ -System.register(['./generated-dynamic.js'], function (exports, module) { +System.register(['./generated-dynamic.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/manual-chunks-dynamic-name-conflict/_expected/system/generated-dynamic.js b/test/chunking-form/samples/manual-chunks-dynamic-name-conflict/_expected/system/generated-dynamic.js index 213666c17ca..ff7914b0fea 100644 --- a/test/chunking-form/samples/manual-chunks-dynamic-name-conflict/_expected/system/generated-dynamic.js +++ b/test/chunking-form/samples/manual-chunks-dynamic-name-conflict/_expected/system/generated-dynamic.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunks-dynamic-name-conflict/_expected/system/generated-dynamic1.js b/test/chunking-form/samples/manual-chunks-dynamic-name-conflict/_expected/system/generated-dynamic1.js index f4755fbc899..bd46b39dd45 100644 --- a/test/chunking-form/samples/manual-chunks-dynamic-name-conflict/_expected/system/generated-dynamic1.js +++ b/test/chunking-form/samples/manual-chunks-dynamic-name-conflict/_expected/system/generated-dynamic1.js @@ -1,4 +1,4 @@ -System.register(['./generated-dynamic.js'], function (exports, module) { +System.register(['./generated-dynamic.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/manual-chunks-dynamic/_expected/system/generated-dynamic.js b/test/chunking-form/samples/manual-chunks-dynamic/_expected/system/generated-dynamic.js index babdf3ed714..cf05be5bb3b 100644 --- a/test/chunking-form/samples/manual-chunks-dynamic/_expected/system/generated-dynamic.js +++ b/test/chunking-form/samples/manual-chunks-dynamic/_expected/system/generated-dynamic.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunks-function/_expected/system/chunk-a.js b/test/chunking-form/samples/manual-chunks-function/_expected/system/chunk-a.js index 791b503f984..69e6ce429d3 100644 --- a/test/chunking-form/samples/manual-chunks-function/_expected/system/chunk-a.js +++ b/test/chunking-form/samples/manual-chunks-function/_expected/system/chunk-a.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk-b.js', './generated-chunk-c.js'], function (exports, module) { +System.register(['./generated-chunk-b.js', './generated-chunk-c.js'], function () { 'use strict'; return { setters: [function () {}, function () {}], diff --git a/test/chunking-form/samples/manual-chunks-function/_expected/system/generated-chunk-b.js b/test/chunking-form/samples/manual-chunks-function/_expected/system/generated-chunk-b.js index 5fe714bfe08..fabf038cbaa 100644 --- a/test/chunking-form/samples/manual-chunks-function/_expected/system/generated-chunk-b.js +++ b/test/chunking-form/samples/manual-chunks-function/_expected/system/generated-chunk-b.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunks-function/_expected/system/generated-chunk-c.js b/test/chunking-form/samples/manual-chunks-function/_expected/system/generated-chunk-c.js index 6486e19b0b8..4cd41ad57b6 100644 --- a/test/chunking-form/samples/manual-chunks-function/_expected/system/generated-chunk-c.js +++ b/test/chunking-form/samples/manual-chunks-function/_expected/system/generated-chunk-c.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk-b.js'], function (exports, module) { +System.register(['./generated-chunk-b.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/manual-chunks-nested/_expected/system/generated-manual.js b/test/chunking-form/samples/manual-chunks-nested/_expected/system/generated-manual.js index 6b13800502d..b297489bbda 100644 --- a/test/chunking-form/samples/manual-chunks-nested/_expected/system/generated-manual.js +++ b/test/chunking-form/samples/manual-chunks-nested/_expected/system/generated-manual.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunks-nested/_expected/system/main.js b/test/chunking-form/samples/manual-chunks-nested/_expected/system/main.js index 34f054c95fd..a1d452ebaf8 100644 --- a/test/chunking-form/samples/manual-chunks-nested/_expected/system/main.js +++ b/test/chunking-form/samples/manual-chunks-nested/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-manual.js'], function (exports, module) { +System.register(['./generated-manual.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/manual-chunks/_expected/system/generated-deps2and3.js b/test/chunking-form/samples/manual-chunks/_expected/system/generated-deps2and3.js index b19f8738062..2b10cd02e29 100644 --- a/test/chunking-form/samples/manual-chunks/_expected/system/generated-deps2and3.js +++ b/test/chunking-form/samples/manual-chunks/_expected/system/generated-deps2and3.js @@ -1,4 +1,4 @@ -System.register(['./generated-lib1.js'], function (exports, module) { +System.register(['./generated-lib1.js'], function (exports) { 'use strict'; var fn$3; return { diff --git a/test/chunking-form/samples/manual-chunks/_expected/system/generated-lib1.js b/test/chunking-form/samples/manual-chunks/_expected/system/generated-lib1.js index f1cccb110c7..46e60ceba06 100644 --- a/test/chunking-form/samples/manual-chunks/_expected/system/generated-lib1.js +++ b/test/chunking-form/samples/manual-chunks/_expected/system/generated-lib1.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/manual-chunks/_expected/system/main.js b/test/chunking-form/samples/manual-chunks/_expected/system/main.js index e0c7d193b46..b9ce4867e2b 100644 --- a/test/chunking-form/samples/manual-chunks/_expected/system/main.js +++ b/test/chunking-form/samples/manual-chunks/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-deps2and3.js', './generated-lib1.js'], function (exports, module) { +System.register(['./generated-deps2and3.js', './generated-lib1.js'], function (exports) { 'use strict'; var fn$1, fn$2; return { diff --git a/test/chunking-form/samples/missing-export-compact/_expected/system/dep.js b/test/chunking-form/samples/missing-export-compact/_expected/system/dep.js index a8964a3955a..fb1c2386f1c 100644 --- a/test/chunking-form/samples/missing-export-compact/_expected/system/dep.js +++ b/test/chunking-form/samples/missing-export-compact/_expected/system/dep.js @@ -1,3 +1,3 @@ -System.register([],function(exports,module){'use strict';return{execute:function(){exports('x',x);var _missingExportShim=void 0;function x () { +System.register([],function(exports){'use strict';return{execute:function(){exports('x',x);var _missingExportShim=void 0;function x () { sideEffect(); }exports({missingExport:_missingExportShim,missingFn:_missingExportShim});}}}); \ No newline at end of file diff --git a/test/chunking-form/samples/missing-export-compact/_expected/system/main.js b/test/chunking-form/samples/missing-export-compact/_expected/system/main.js index 68308ec298a..bf186d6ef5b 100644 --- a/test/chunking-form/samples/missing-export-compact/_expected/system/main.js +++ b/test/chunking-form/samples/missing-export-compact/_expected/system/main.js @@ -1,2 +1,2 @@ -System.register(['./dep.js'],function(exports,module){'use strict';var _missingExportShim,x;return{setters:[function(module){_missingExportShim=module.missingFn;x=module.x;}],execute:function(){_missingExportShim(); +System.register(['./dep.js'],function(){'use strict';var _missingExportShim,x;return{setters:[function(module){_missingExportShim=module.missingFn;x=module.x;}],execute:function(){_missingExportShim(); x(_missingExportShim);}}}); \ No newline at end of file diff --git a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/dep1.js b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/dep1.js index 526eda65d35..292047e5ff6 100644 --- a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/dep1.js +++ b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/dep1.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/dep2.js b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/dep2.js index 12b4f7bcaba..da8178d1d7f 100644 --- a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/dep2.js +++ b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/dep2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/main.js b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/main.js index 0fb8136ac7c..fa94551b2ef 100644 --- a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/main.js +++ b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./dep1.js', './dep2.js'], function (exports, module) { +System.register(['./dep1.js', './dep2.js'], function () { 'use strict'; var _missingExportShim, _missingExportShim$1, _missingExportShim$2; return { diff --git a/test/chunking-form/samples/missing-export/_expected/system/dep.js b/test/chunking-form/samples/missing-export/_expected/system/dep.js index bd861a5af38..7a4af01c110 100644 --- a/test/chunking-form/samples/missing-export/_expected/system/dep.js +++ b/test/chunking-form/samples/missing-export/_expected/system/dep.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/missing-export/_expected/system/main.js b/test/chunking-form/samples/missing-export/_expected/system/main.js index 8aeac7a4e88..7d5c20be8ff 100644 --- a/test/chunking-form/samples/missing-export/_expected/system/main.js +++ b/test/chunking-form/samples/missing-export/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./dep.js'], function (exports, module) { +System.register(['./dep.js'], function () { 'use strict'; var _missingExportShim, x; return { diff --git a/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk.js b/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk.js index 1a32db69510..6f90b945280 100644 --- a/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk2.js b/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk2.js index ee9fde8fbcf..cb32055bf44 100644 --- a/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk2.js +++ b/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk3.js b/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk3.js index f1aa55c527c..77b824db0df 100644 --- a/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk3.js +++ b/test/chunking-form/samples/multi-chunking/_expected/system/generated-chunk3.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/multi-chunking/_expected/system/main1.js b/test/chunking-form/samples/multi-chunking/_expected/system/main1.js index 164723d6e01..da512ecf173 100644 --- a/test/chunking-form/samples/multi-chunking/_expected/system/main1.js +++ b/test/chunking-form/samples/multi-chunking/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js'], function () { 'use strict'; var num, num$1; return { diff --git a/test/chunking-form/samples/multi-chunking/_expected/system/main2.js b/test/chunking-form/samples/multi-chunking/_expected/system/main2.js index b1af892c9da..38a4353f3f4 100644 --- a/test/chunking-form/samples/multi-chunking/_expected/system/main2.js +++ b/test/chunking-form/samples/multi-chunking/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk2.js', './generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk2.js', './generated-chunk3.js'], function () { 'use strict'; var num, num$1; return { diff --git a/test/chunking-form/samples/multi-chunking/_expected/system/main3.js b/test/chunking-form/samples/multi-chunking/_expected/system/main3.js index 66d7d085791..08c6b10c8df 100644 --- a/test/chunking-form/samples/multi-chunking/_expected/system/main3.js +++ b/test/chunking-form/samples/multi-chunking/_expected/system/main3.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk3.js'], function () { 'use strict'; var num, num$1; return { diff --git a/test/chunking-form/samples/multiple-entry-points/_expected/system/chunks/chunk.js b/test/chunking-form/samples/multiple-entry-points/_expected/system/chunks/chunk.js index a078238c2c9..e50702721a5 100644 --- a/test/chunking-form/samples/multiple-entry-points/_expected/system/chunks/chunk.js +++ b/test/chunking-form/samples/multiple-entry-points/_expected/system/chunks/chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/multiple-entry-points/_expected/system/main.js b/test/chunking-form/samples/multiple-entry-points/_expected/system/main.js index 78070be8de1..8c2f77a463e 100644 --- a/test/chunking-form/samples/multiple-entry-points/_expected/system/main.js +++ b/test/chunking-form/samples/multiple-entry-points/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./chunks/chunk.js'], function (exports, module) { +System.register(['./chunks/chunk.js'], function () { 'use strict'; var sharedValue; return { diff --git a/test/chunking-form/samples/multiple-entry-points/_expected/system/other.js b/test/chunking-form/samples/multiple-entry-points/_expected/system/other.js index c88f4eb96fb..4a10ce2e599 100644 --- a/test/chunking-form/samples/multiple-entry-points/_expected/system/other.js +++ b/test/chunking-form/samples/multiple-entry-points/_expected/system/other.js @@ -1,4 +1,4 @@ -System.register(['./chunks/chunk.js'], function (exports, module) { +System.register(['./chunks/chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/namespace-imports-from-chunks/_expected/system/main1.js b/test/chunking-form/samples/namespace-imports-from-chunks/_expected/system/main1.js index 5c2f4781268..d77d432a877 100644 --- a/test/chunking-form/samples/namespace-imports-from-chunks/_expected/system/main1.js +++ b/test/chunking-form/samples/namespace-imports-from-chunks/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/namespace-imports-from-chunks/_expected/system/main2.js b/test/chunking-form/samples/namespace-imports-from-chunks/_expected/system/main2.js index f5a12413eb1..73dd0438811 100644 --- a/test/chunking-form/samples/namespace-imports-from-chunks/_expected/system/main2.js +++ b/test/chunking-form/samples/namespace-imports-from-chunks/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./main1.js'], function (exports, module) { +System.register(['./main1.js'], function () { 'use strict'; var p; return { diff --git a/test/chunking-form/samples/namespace-object-import/_expected/system/generated-chunk.js b/test/chunking-form/samples/namespace-object-import/_expected/system/generated-chunk.js index 16132b09f53..249c51d4f16 100644 --- a/test/chunking-form/samples/namespace-object-import/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/namespace-object-import/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/namespace-object-import/_expected/system/main1.js b/test/chunking-form/samples/namespace-object-import/_expected/system/main1.js index 294cf626de6..d2b38ecf6aa 100644 --- a/test/chunking-form/samples/namespace-object-import/_expected/system/main1.js +++ b/test/chunking-form/samples/namespace-object-import/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var a, main2; return { diff --git a/test/chunking-form/samples/namespace-object-import/_expected/system/main2.js b/test/chunking-form/samples/namespace-object-import/_expected/system/main2.js index 83f7bc091c9..5e3927b3b23 100644 --- a/test/chunking-form/samples/namespace-object-import/_expected/system/main2.js +++ b/test/chunking-form/samples/namespace-object-import/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/generated-chunk.js b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/generated-chunk.js index 7da661ce0a0..30c03448c5e 100644 --- a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/generated-chunk2.js b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/generated-chunk2.js index fe27ae981d6..3fe5c861605 100644 --- a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/generated-chunk2.js +++ b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/generated-chunk2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', 'external'], function (exports, module) { +System.register(['./generated-chunk.js', 'external'], function (exports) { 'use strict'; var reexported$1, reexported; return { diff --git a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main1.js b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main1.js index 84046cb6dff..f3ba426750f 100644 --- a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main1.js +++ b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', 'external', './generated-chunk2.js'], function (exports, module) { +System.register(['./generated-chunk.js', 'external', './generated-chunk2.js'], function () { 'use strict'; var lib; return { diff --git a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main2.js b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main2.js index be5ba56d224..a2deeafcd55 100644 --- a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main2.js +++ b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', 'external', './generated-chunk2.js'], function (exports, module) { +System.register(['./generated-chunk.js', 'external', './generated-chunk2.js'], function () { 'use strict'; var reexported; return { diff --git a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main3.js b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main3.js index fd707ad411c..0546a48da7c 100644 --- a/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main3.js +++ b/test/chunking-form/samples/namespace-reexport-name-conflict/_expected/system/main3.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/namespace-reexports/_expected/system/generated-chunk.js b/test/chunking-form/samples/namespace-reexports/_expected/system/generated-chunk.js index 8253f335902..c1bc5d3dfa9 100644 --- a/test/chunking-form/samples/namespace-reexports/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/namespace-reexports/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register(['./hsl2hsv.js'], function (exports, module) { +System.register(['./hsl2hsv.js'], function (exports) { 'use strict'; var hsl2hsv$1; return { diff --git a/test/chunking-form/samples/namespace-reexports/_expected/system/hsl2hsv.js b/test/chunking-form/samples/namespace-reexports/_expected/system/hsl2hsv.js index ae4ac692e04..5ae364c1b4a 100644 --- a/test/chunking-form/samples/namespace-reexports/_expected/system/hsl2hsv.js +++ b/test/chunking-form/samples/namespace-reexports/_expected/system/hsl2hsv.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/namespace-reexports/_expected/system/index.js b/test/chunking-form/samples/namespace-reexports/_expected/system/index.js index f3063b0b8f0..e5b95ce7584 100644 --- a/test/chunking-form/samples/namespace-reexports/_expected/system/index.js +++ b/test/chunking-form/samples/namespace-reexports/_expected/system/index.js @@ -1,4 +1,4 @@ -System.register(['./hsl2hsv.js', './generated-chunk.js'], function (exports, module) { +System.register(['./hsl2hsv.js', './generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/namespace-reexports/_expected/system/main.js b/test/chunking-form/samples/namespace-reexports/_expected/system/main.js index fb8d5396315..59f90f5cdd4 100644 --- a/test/chunking-form/samples/namespace-reexports/_expected/system/main.js +++ b/test/chunking-form/samples/namespace-reexports/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./hsl2hsv.js', './generated-chunk.js'], function (exports, module) { +System.register(['./hsl2hsv.js', './generated-chunk.js'], function (exports) { 'use strict'; var p, lib; return { diff --git a/test/chunking-form/samples/namespace-retracing/_expected/system/generated-chunk.js b/test/chunking-form/samples/namespace-retracing/_expected/system/generated-chunk.js index d45a684fd8a..9ca624860ab 100644 --- a/test/chunking-form/samples/namespace-retracing/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/namespace-retracing/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/namespace-retracing/_expected/system/main-a.js b/test/chunking-form/samples/namespace-retracing/_expected/system/main-a.js index 95853776912..94cfa6183b7 100644 --- a/test/chunking-form/samples/namespace-retracing/_expected/system/main-a.js +++ b/test/chunking-form/samples/namespace-retracing/_expected/system/main-a.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var Other, Broken; return { diff --git a/test/chunking-form/samples/namespace-retracing/_expected/system/main-b.js b/test/chunking-form/samples/namespace-retracing/_expected/system/main-b.js index 3f6eee6af6d..0d1c1119146 100644 --- a/test/chunking-form/samples/namespace-retracing/_expected/system/main-b.js +++ b/test/chunking-form/samples/namespace-retracing/_expected/system/main-b.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var Other; return { diff --git a/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk.js b/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk.js index a732598389e..57e3ae75e87 100644 --- a/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk2.js b/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk2.js index a6f842e11eb..d354d7ad489 100644 --- a/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk2.js +++ b/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk3.js b/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk3.js index f2add1fb504..f0764f0e98c 100644 --- a/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk3.js +++ b/test/chunking-form/samples/namespace-tracing/_expected/system/generated-chunk3.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/namespace-tracing/_expected/system/main-a.js b/test/chunking-form/samples/namespace-tracing/_expected/system/main-a.js index 0cda0b1334a..8707b6feebd 100644 --- a/test/chunking-form/samples/namespace-tracing/_expected/system/main-a.js +++ b/test/chunking-form/samples/namespace-tracing/_expected/system/main-a.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js'], function () { 'use strict'; var broken, foo; return { diff --git a/test/chunking-form/samples/namespace-tracing/_expected/system/main-b.js b/test/chunking-form/samples/namespace-tracing/_expected/system/main-b.js index 417b1688063..2115d848c3e 100644 --- a/test/chunking-form/samples/namespace-tracing/_expected/system/main-b.js +++ b/test/chunking-form/samples/namespace-tracing/_expected/system/main-b.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk2.js', './generated-chunk3.js'], function () { 'use strict'; var broken, foo, bar; return { diff --git a/test/chunking-form/samples/namespace-tracing/_expected/system/main-c.js b/test/chunking-form/samples/namespace-tracing/_expected/system/main-c.js index 02d923e84e5..cafc635a882 100644 --- a/test/chunking-form/samples/namespace-tracing/_expected/system/main-c.js +++ b/test/chunking-form/samples/namespace-tracing/_expected/system/main-c.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js', './generated-chunk3.js'], function (exports, module) { +System.register(['./generated-chunk.js', './generated-chunk3.js'], function () { 'use strict'; var broken, bar; return { diff --git a/test/chunking-form/samples/nested-dynamic-imports/_expected/system/generated-dynamic5.js b/test/chunking-form/samples/nested-dynamic-imports/_expected/system/generated-dynamic5.js index 3c6edbde62a..17bd51f9265 100644 --- a/test/chunking-form/samples/nested-dynamic-imports/_expected/system/generated-dynamic5.js +++ b/test/chunking-form/samples/nested-dynamic-imports/_expected/system/generated-dynamic5.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/_virtual/_external_commonjs-external b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/_virtual/_external_commonjs-external index 73856d3d3b4..7f1c43fa473 100644 --- a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/_virtual/_external_commonjs-external +++ b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/_virtual/_external_commonjs-external @@ -1,4 +1,4 @@ -System.register(['external'], function (exports, module) { +System.register(['external'], function (exports) { 'use strict'; var external; return { diff --git a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/_virtual/other.js_commonjs-proxy b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/_virtual/other.js_commonjs-proxy index 719361064a5..20068293168 100644 --- a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/_virtual/other.js_commonjs-proxy +++ b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/_virtual/other.js_commonjs-proxy @@ -1,4 +1,4 @@ -System.register(['../other.js'], function (exports, module) { +System.register(['../other.js'], function (exports) { 'use strict'; var other; return { diff --git a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/commonjs.js b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/commonjs.js index 87169716baf..ccacb7d04ed 100644 --- a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/commonjs.js +++ b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/commonjs.js @@ -1,4 +1,4 @@ -System.register(['external', './other.js', './_virtual/_external_commonjs-external', './_virtual/other.js_commonjs-proxy'], function (exports, module) { +System.register(['external', './other.js', './_virtual/_external_commonjs-external', './_virtual/other.js_commonjs-proxy'], function (exports) { 'use strict'; var external, require$$0; return { diff --git a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/main.js b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/main.js index 0ae2dd25672..9fb2678b775 100644 --- a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/main.js +++ b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['external', './commonjs.js'], function (exports, module) { +System.register(['external', './commonjs.js'], function () { 'use strict'; var external, value; return { diff --git a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/other.js b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/other.js index 85844f804a2..96817167a84 100644 --- a/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/other.js +++ b/test/chunking-form/samples/preserve-modules-commonjs/_expected/system/other.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/system/dynamic-included.js b/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/system/dynamic-included.js index 2d9619f0134..3a6e756071e 100644 --- a/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/system/dynamic-included.js +++ b/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/system/dynamic-included.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m1.js b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m1.js index 734d751633b..9f2d67db2a9 100644 --- a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m1.js +++ b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m1.js @@ -1,4 +1,4 @@ -System.register(['./m2.js', './m3.js'], function (exports, module) { +System.register(['./m2.js', './m3.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m2.js b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m2.js index 95b650af9d8..7895f449424 100644 --- a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m2.js +++ b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m3.js b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m3.js index 1139d763304..a1c7a225276 100644 --- a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m3.js +++ b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/m3.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/main.js b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/main.js index 55d840c5b13..7d19155def8 100644 --- a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/main.js +++ b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./m1.js'], function (exports, module) { +System.register(['./m1.js'], function () { 'use strict'; var ms; return { diff --git a/test/chunking-form/samples/preserve-modules-empty/_expected/system/main.js b/test/chunking-form/samples/preserve-modules-empty/_expected/system/main.js index ac9f928b2a7..b0664a8cd59 100644 --- a/test/chunking-form/samples/preserve-modules-empty/_expected/system/main.js +++ b/test/chunking-form/samples/preserve-modules-empty/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./two.js'], function (exports, module) { +System.register(['./two.js'], function () { 'use strict'; var a; return { diff --git a/test/chunking-form/samples/preserve-modules-empty/_expected/system/two.js b/test/chunking-form/samples/preserve-modules-empty/_expected/system/two.js index 3f659a05bfc..015fc0193bb 100644 --- a/test/chunking-form/samples/preserve-modules-empty/_expected/system/two.js +++ b/test/chunking-form/samples/preserve-modules-empty/_expected/system/two.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/dep.js b/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/dep.js index 5de3e70c4fc..6cf7029fa0f 100644 --- a/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/dep.js +++ b/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/dep.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/main1.js b/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/main1.js index 45f64a8f06e..bfffe939f7a 100644 --- a/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/main1.js +++ b/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./dep.js'], function (exports, module) { +System.register(['./dep.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/main2.js b/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/main2.js index ecbff2ecbda..d995245e8f6 100644 --- a/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/main2.js +++ b/test/chunking-form/samples/preserve-modules-export-alias/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./dep.js'], function (exports, module) { +System.register(['./dep.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/inner/more_inner/something.js b/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/inner/more_inner/something.js index ed96995d13f..1b4bba21314 100644 --- a/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/inner/more_inner/something.js +++ b/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/inner/more_inner/something.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/inner/some_effect.js b/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/inner/some_effect.js index 105920b8c73..19dd3ec79bd 100644 --- a/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/inner/some_effect.js +++ b/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/inner/some_effect.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/main.js b/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/main.js index 92e86086762..16e27681d9a 100644 --- a/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/main.js +++ b/test/chunking-form/samples/preserve-modules-nested-export/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./inner/more_inner/something.js', './inner/some_effect.js'], function (exports, module) { +System.register(['./inner/more_inner/something.js', './inner/some_effect.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/preserve-modules-non-entry-imports/_expected/system/dep2.js b/test/chunking-form/samples/preserve-modules-non-entry-imports/_expected/system/dep2.js index bd4934cbdba..eb88d79aeda 100644 --- a/test/chunking-form/samples/preserve-modules-non-entry-imports/_expected/system/dep2.js +++ b/test/chunking-form/samples/preserve-modules-non-entry-imports/_expected/system/dep2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-non-entry-imports/_expected/system/main.js b/test/chunking-form/samples/preserve-modules-non-entry-imports/_expected/system/main.js index a036df9f9bd..262e0ee4f6a 100644 --- a/test/chunking-form/samples/preserve-modules-non-entry-imports/_expected/system/main.js +++ b/test/chunking-form/samples/preserve-modules-non-entry-imports/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./dep2.js'], function (exports, module) { +System.register(['./dep2.js'], function (exports) { 'use strict'; var foo; return { diff --git a/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/system/dep.js b/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/system/dep.js index e0d813a19fc..3228f5b2991 100644 --- a/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/system/dep.js +++ b/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/system/dep.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/system/lib/main.js b/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/system/lib/main.js index 1bed906090b..2c8238dca02 100644 --- a/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/system/lib/main.js +++ b/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/system/lib/main.js @@ -1,4 +1,4 @@ -System.register(['../dep.js'], function (exports, module) { +System.register(['../dep.js'], function (exports) { 'use strict'; var fn; return { diff --git a/test/chunking-form/samples/preserve-modules-single-entry/_expected/system/main.js b/test/chunking-form/samples/preserve-modules-single-entry/_expected/system/main.js index d427f8ff07d..9c717dc8ff3 100644 --- a/test/chunking-form/samples/preserve-modules-single-entry/_expected/system/main.js +++ b/test/chunking-form/samples/preserve-modules-single-entry/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/system/_virtual/_virtualModule b/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/system/_virtual/_virtualModule index 8b4d2f36420..2281d70c5a9 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/system/_virtual/_virtualModule +++ b/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/system/_virtual/_virtualModule @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/system/main.js b/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/system/main.js index 4feb5b4b03e..7b8b65e237d 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/system/main.js +++ b/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./_virtual/_virtualModule'], function (exports, module) { +System.register(['./_virtual/_virtualModule'], function () { 'use strict'; var virtual; return { diff --git a/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep1.js b/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep1.js index 606a1d0f6a1..813157baf2d 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep1.js +++ b/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep1.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep2.js b/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep2.js index 2346c04ce26..e659b606bfb 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep2.js +++ b/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep2.js @@ -1,4 +1,4 @@ -System.register(['../lib/lib2.js'], function (exports, module) { +System.register(['../lib/lib2.js'], function (exports) { 'use strict'; var fn$1; return { diff --git a/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep3.js b/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep3.js index 3e8250b3b5b..bd88b3e2d36 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep3.js +++ b/test/chunking-form/samples/preserve-modules/_expected/system/deps/dep3.js @@ -1,4 +1,4 @@ -System.register(['../lib/lib1.js'], function (exports, module) { +System.register(['../lib/lib1.js'], function (exports) { 'use strict'; var fn$1; return { diff --git a/test/chunking-form/samples/preserve-modules/_expected/system/lib/lib1.js b/test/chunking-form/samples/preserve-modules/_expected/system/lib/lib1.js index 79f84cd1d08..744d84434d7 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/system/lib/lib1.js +++ b/test/chunking-form/samples/preserve-modules/_expected/system/lib/lib1.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules/_expected/system/lib/lib2.js b/test/chunking-form/samples/preserve-modules/_expected/system/lib/lib2.js index ff5b2bb94dd..b27f09d18bd 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/system/lib/lib2.js +++ b/test/chunking-form/samples/preserve-modules/_expected/system/lib/lib2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/preserve-modules/_expected/system/main1.js b/test/chunking-form/samples/preserve-modules/_expected/system/main1.js index e349ffe8b31..17f7ddb453e 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/system/main1.js +++ b/test/chunking-form/samples/preserve-modules/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./deps/dep1.js', './deps/dep2.js'], function (exports, module) { +System.register(['./deps/dep1.js', './deps/dep2.js'], function (exports) { 'use strict'; var fn, fn$1; return { diff --git a/test/chunking-form/samples/preserve-modules/_expected/system/main2.js b/test/chunking-form/samples/preserve-modules/_expected/system/main2.js index 9aa9cafa71d..4833f43826d 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/system/main2.js +++ b/test/chunking-form/samples/preserve-modules/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./deps/dep2.js', './deps/dep3.js'], function (exports, module) { +System.register(['./deps/dep2.js', './deps/dep3.js'], function (exports) { 'use strict'; var fn$1, fn; return { diff --git a/test/chunking-form/samples/reexport-from-entry/_expected/system/generated-chunk.js b/test/chunking-form/samples/reexport-from-entry/_expected/system/generated-chunk.js index 7ef5a4a89f9..1755a56fb29 100644 --- a/test/chunking-form/samples/reexport-from-entry/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/reexport-from-entry/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/reexport-from-entry/_expected/system/main.js b/test/chunking-form/samples/reexport-from-entry/_expected/system/main.js index 250931c3704..e606d15fab6 100644 --- a/test/chunking-form/samples/reexport-from-entry/_expected/system/main.js +++ b/test/chunking-form/samples/reexport-from-entry/_expected/system/main.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/reexport-from-entry/_expected/system/otherEntry.js b/test/chunking-form/samples/reexport-from-entry/_expected/system/otherEntry.js index e3742078564..f2975a5a236 100644 --- a/test/chunking-form/samples/reexport-from-entry/_expected/system/otherEntry.js +++ b/test/chunking-form/samples/reexport-from-entry/_expected/system/otherEntry.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/chunking-form/samples/reexport-shortpaths/_expected/system/generated-chunk.js b/test/chunking-form/samples/reexport-shortpaths/_expected/system/generated-chunk.js index abe47096bf7..99ff9baa37a 100644 --- a/test/chunking-form/samples/reexport-shortpaths/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/reexport-shortpaths/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/reexport-shortpaths/_expected/system/main1.js b/test/chunking-form/samples/reexport-shortpaths/_expected/system/main1.js index 65ad3564f99..0197c25f351 100644 --- a/test/chunking-form/samples/reexport-shortpaths/_expected/system/main1.js +++ b/test/chunking-form/samples/reexport-shortpaths/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var foo; return { diff --git a/test/chunking-form/samples/reexport-shortpaths/_expected/system/main2.js b/test/chunking-form/samples/reexport-shortpaths/_expected/system/main2.js index fd707ad411c..0546a48da7c 100644 --- a/test/chunking-form/samples/reexport-shortpaths/_expected/system/main2.js +++ b/test/chunking-form/samples/reexport-shortpaths/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/reexport-shortpaths/_expected/system/main3.js b/test/chunking-form/samples/reexport-shortpaths/_expected/system/main3.js index fd707ad411c..0546a48da7c 100644 --- a/test/chunking-form/samples/reexport-shortpaths/_expected/system/main3.js +++ b/test/chunking-form/samples/reexport-shortpaths/_expected/system/main3.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/chunking-form/samples/resolve-dynamic-import/_expected/system/generated-existing.js b/test/chunking-form/samples/resolve-dynamic-import/_expected/system/generated-existing.js index d7b47fdc482..48b2a1a9823 100644 --- a/test/chunking-form/samples/resolve-dynamic-import/_expected/system/generated-existing.js +++ b/test/chunking-form/samples/resolve-dynamic-import/_expected/system/generated-existing.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/sanitize-chunk-names/_expected/system/_virtual:entry-1.js b/test/chunking-form/samples/sanitize-chunk-names/_expected/system/_virtual:entry-1.js index c0250b086d0..26aafc0c353 100644 --- a/test/chunking-form/samples/sanitize-chunk-names/_expected/system/_virtual:entry-1.js +++ b/test/chunking-form/samples/sanitize-chunk-names/_expected/system/_virtual:entry-1.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/sanitize-chunk-names/_expected/system/_virtual:entry-2.js b/test/chunking-form/samples/sanitize-chunk-names/_expected/system/_virtual:entry-2.js index fd6a88ae261..af4edfd003e 100644 --- a/test/chunking-form/samples/sanitize-chunk-names/_expected/system/_virtual:entry-2.js +++ b/test/chunking-form/samples/sanitize-chunk-names/_expected/system/_virtual:entry-2.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk.js index 888e64bbbc0..e6ef61fd6c9 100644 --- a/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-lazy.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-lazy.js index 3e98e70ca38..ef89b9a8ad8 100644 --- a/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-lazy.js +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/system/generated-lazy.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function (exports) { 'use strict'; var v1; return { diff --git a/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/generated-chunk.js b/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/generated-chunk.js index ad2b52965e3..737b74dd29a 100644 --- a/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/generated-chunk.js +++ b/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/generated-chunk.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/main1.js b/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/main1.js index 2b90a6a8f1c..1bb19ac8f71 100644 --- a/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/main1.js +++ b/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/main1.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var dep; return { diff --git a/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/main2.js b/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/main2.js index 35770d35f79..47e6f097d27 100644 --- a/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/main2.js +++ b/test/chunking-form/samples/system-exports-wrap-pure-annotation/_expected/system/main2.js @@ -1,4 +1,4 @@ -System.register(['./generated-chunk.js'], function (exports, module) { +System.register(['./generated-chunk.js'], function () { 'use strict'; var dep; return { diff --git a/test/chunking-form/samples/tree-shaken-dynamic-hash/_expected/system/19f42775.js b/test/chunking-form/samples/tree-shaken-dynamic-hash/_expected/system/19f42775.js index 920769af32e..f54762cad18 100644 --- a/test/chunking-form/samples/tree-shaken-dynamic-hash/_expected/system/19f42775.js +++ b/test/chunking-form/samples/tree-shaken-dynamic-hash/_expected/system/19f42775.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/absolute-path-resolver/_expected/amd.js b/test/form/samples/absolute-path-resolver/_expected/amd.js index 4718f2e6862..308b0b8c7bc 100644 --- a/test/form/samples/absolute-path-resolver/_expected/amd.js +++ b/test/form/samples/absolute-path-resolver/_expected/amd.js @@ -7,4 +7,4 @@ define(function () { 'use strict'; a(); a(); -}); \ No newline at end of file +}); diff --git a/test/form/samples/absolute-path-resolver/_expected/cjs.js b/test/form/samples/absolute-path-resolver/_expected/cjs.js index 473b57e0197..4b1f7113031 100644 --- a/test/form/samples/absolute-path-resolver/_expected/cjs.js +++ b/test/form/samples/absolute-path-resolver/_expected/cjs.js @@ -5,4 +5,4 @@ var a = () => { }; a(); -a(); \ No newline at end of file +a(); diff --git a/test/form/samples/absolute-path-resolver/_expected/es.js b/test/form/samples/absolute-path-resolver/_expected/es.js index 0415d2c05c3..c387edcca09 100644 --- a/test/form/samples/absolute-path-resolver/_expected/es.js +++ b/test/form/samples/absolute-path-resolver/_expected/es.js @@ -3,4 +3,4 @@ var a = () => { }; a(); -a(); \ No newline at end of file +a(); diff --git a/test/form/samples/absolute-path-resolver/_expected/system.js b/test/form/samples/absolute-path-resolver/_expected/system.js index 6af303a682b..349af935327 100644 --- a/test/form/samples/absolute-path-resolver/_expected/system.js +++ b/test/form/samples/absolute-path-resolver/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/arrow-function-call-parameters/_expected/system.js b/test/form/samples/arrow-function-call-parameters/_expected/system.js index 7657ecbe38c..d457375a432 100644 --- a/test/form/samples/arrow-function-call-parameters/_expected/system.js +++ b/test/form/samples/arrow-function-call-parameters/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/arrow-function-return-values/_expected/system.js b/test/form/samples/arrow-function-return-values/_expected/system.js index 30e37995dd6..ade4957f6eb 100644 --- a/test/form/samples/arrow-function-return-values/_expected/system.js +++ b/test/form/samples/arrow-function-return-values/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/asset-emission-tree-shaken-access/_config.js b/test/form/samples/asset-emission-tree-shaken-access/_config.js new file mode 100644 index 00000000000..cb600e60ce1 --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/_config.js @@ -0,0 +1,23 @@ +const fs = require('fs'); +const path = require('path'); + +module.exports = { + description: 'does not include format globals when tree-shaking an asset access', + options: { + plugins: { + resolveId(id, importee) { + if (id.endsWith('.svg')) { + return path.resolve(path.dirname(importee), id); + } + }, + load(id) { + if (id.endsWith('.svg')) { + return `export default import.meta.ROLLUP_ASSET_URL_${this.emitAsset( + path.basename(id), + fs.readFileSync(id) + )};`; + } + } + } + } +}; diff --git a/test/form/samples/asset-emission-tree-shaken-access/_expected/amd.js b/test/form/samples/asset-emission-tree-shaken-access/_expected/amd.js new file mode 100644 index 00000000000..126aa22ee83 --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/_expected/amd.js @@ -0,0 +1,5 @@ +define(function () { 'use strict'; + + console.log('main'); + +}); diff --git a/test/form/samples/asset-emission-tree-shaken-access/_expected/assets/logo-25253976.svg b/test/form/samples/asset-emission-tree-shaken-access/_expected/assets/logo-25253976.svg new file mode 100644 index 00000000000..20bb5dfe639 --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/_expected/assets/logo-25253976.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/test/form/samples/asset-emission-tree-shaken-access/_expected/cjs.js b/test/form/samples/asset-emission-tree-shaken-access/_expected/cjs.js new file mode 100644 index 00000000000..d0ed06d8c90 --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/_expected/cjs.js @@ -0,0 +1,3 @@ +'use strict'; + +console.log('main'); diff --git a/test/form/samples/asset-emission-tree-shaken-access/_expected/es.js b/test/form/samples/asset-emission-tree-shaken-access/_expected/es.js new file mode 100644 index 00000000000..c0b933d7b56 --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/_expected/es.js @@ -0,0 +1 @@ +console.log('main'); diff --git a/test/form/samples/asset-emission-tree-shaken-access/_expected/iife.js b/test/form/samples/asset-emission-tree-shaken-access/_expected/iife.js new file mode 100644 index 00000000000..d283cbce8ba --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/_expected/iife.js @@ -0,0 +1,6 @@ +(function () { + 'use strict'; + + console.log('main'); + +}()); diff --git a/test/form/samples/asset-emission-tree-shaken-access/_expected/system.js b/test/form/samples/asset-emission-tree-shaken-access/_expected/system.js new file mode 100644 index 00000000000..c83499bc2d4 --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/_expected/system.js @@ -0,0 +1,10 @@ +System.register([], function () { + 'use strict'; + return { + execute: function () { + + console.log('main'); + + } + }; +}); diff --git a/test/form/samples/asset-emission-tree-shaken-access/_expected/umd.js b/test/form/samples/asset-emission-tree-shaken-access/_expected/umd.js new file mode 100644 index 00000000000..4768f1d9737 --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/_expected/umd.js @@ -0,0 +1,8 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}(function () { 'use strict'; + + console.log('main'); + +})); diff --git a/test/form/samples/asset-emission-tree-shaken-access/logo.svg b/test/form/samples/asset-emission-tree-shaken-access/logo.svg new file mode 100644 index 00000000000..20bb5dfe639 --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/logo.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/test/form/samples/asset-emission-tree-shaken-access/main.js b/test/form/samples/asset-emission-tree-shaken-access/main.js new file mode 100644 index 00000000000..6dc3ecd4e7b --- /dev/null +++ b/test/form/samples/asset-emission-tree-shaken-access/main.js @@ -0,0 +1,6 @@ +import logo from './logo.svg'; + +if (false) { + console.log(logo); +} +console.log('main'); diff --git a/test/form/samples/asset-emission/_expected/amd.js b/test/form/samples/asset-emission/_expected/amd.js index e981d0ded96..38068b433f4 100644 --- a/test/form/samples/asset-emission/_expected/amd.js +++ b/test/form/samples/asset-emission/_expected/amd.js @@ -1,6 +1,6 @@ -define(['module'], function (module) { 'use strict'; +define(['require'], function (require) { 'use strict'; - var logo = new URL(module.uri + '/../assets/logo-25253976.svg', document.baseURI).href; + var logo = new URL(require.toUrl('assets/logo-25253976.svg'), document.baseURI).href; function showImage(url) { console.log(url); diff --git a/test/form/samples/assignment-to-array-buffer-view/_expected/system.js b/test/form/samples/assignment-to-array-buffer-view/_expected/system.js index cbe2d812492..4ce5f627364 100644 --- a/test/form/samples/assignment-to-array-buffer-view/_expected/system.js +++ b/test/form/samples/assignment-to-array-buffer-view/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/assignment-to-exports-class-declaration/_expected/system.js b/test/form/samples/assignment-to-exports-class-declaration/_expected/system.js index 125fb34c7e8..d868c404bdd 100644 --- a/test/form/samples/assignment-to-exports-class-declaration/_expected/system.js +++ b/test/form/samples/assignment-to-exports-class-declaration/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myModule', [], function (exports, module) { +System.register('myModule', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/assignment-to-exports/_expected/system.js b/test/form/samples/assignment-to-exports/_expected/system.js index e457d16ace7..f854248e45a 100644 --- a/test/form/samples/assignment-to-exports/_expected/system.js +++ b/test/form/samples/assignment-to-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/assignment-to-global/_expected/system.js b/test/form/samples/assignment-to-global/_expected/system.js index 8cfb6b7da9b..7689b8672c9 100644 --- a/test/form/samples/assignment-to-global/_expected/system.js +++ b/test/form/samples/assignment-to-global/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/async-function-unused/_expected/system.js b/test/form/samples/async-function-unused/_expected/system.js index 74f1d6d8151..54fe9414325 100644 --- a/test/form/samples/async-function-unused/_expected/system.js +++ b/test/form/samples/async-function-unused/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/banner-and-footer/_expected/system.js b/test/form/samples/banner-and-footer/_expected/system.js index b2150a29d46..cb1cf9f798a 100644 --- a/test/form/samples/banner-and-footer/_expected/system.js +++ b/test/form/samples/banner-and-footer/_expected/system.js @@ -2,7 +2,7 @@ /* first banner */ /* second banner */ /* 3rd banner */ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/base64-deshadow/_expected.js b/test/form/samples/base64-deshadow/_expected.js index a9e3921233e..75d9ef4c296 100644 --- a/test/form/samples/base64-deshadow/_expected.js +++ b/test/form/samples/base64-deshadow/_expected.js @@ -34,4 +34,4 @@ console.log(name$a); var name$b = 'name'; -export { name$b as name }; \ No newline at end of file +export { name$b as name }; diff --git a/test/form/samples/block-comments/_expected/system.js b/test/form/samples/block-comments/_expected/system.js index 2045d29aadd..6a133495893 100644 --- a/test/form/samples/block-comments/_expected/system.js +++ b/test/form/samples/block-comments/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/body-less-for-loops/_expected/amd.js b/test/form/samples/body-less-for-loops/_expected/amd.js index 464893d146e..77757417926 100644 --- a/test/form/samples/body-less-for-loops/_expected/amd.js +++ b/test/form/samples/body-less-for-loops/_expected/amd.js @@ -13,4 +13,4 @@ define(function () { 'use strict'; let index; for ( index in array ) console.log( index ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/body-less-for-loops/_expected/cjs.js b/test/form/samples/body-less-for-loops/_expected/cjs.js index f2e4fdebc27..c230de3843d 100644 --- a/test/form/samples/body-less-for-loops/_expected/cjs.js +++ b/test/form/samples/body-less-for-loops/_expected/cjs.js @@ -11,4 +11,4 @@ let letter; for ( letter of array ) console.log( letter ); let index; -for ( index in array ) console.log( index ); \ No newline at end of file +for ( index in array ) console.log( index ); diff --git a/test/form/samples/body-less-for-loops/_expected/es.js b/test/form/samples/body-less-for-loops/_expected/es.js index 63ee4e50a93..3aa7b7e8d15 100644 --- a/test/form/samples/body-less-for-loops/_expected/es.js +++ b/test/form/samples/body-less-for-loops/_expected/es.js @@ -9,4 +9,4 @@ let letter; for ( letter of array ) console.log( letter ); let index; -for ( index in array ) console.log( index ); \ No newline at end of file +for ( index in array ) console.log( index ); diff --git a/test/form/samples/body-less-for-loops/_expected/system.js b/test/form/samples/body-less-for-loops/_expected/system.js index 9f5aaf554cd..b2622e10bb0 100644 --- a/test/form/samples/body-less-for-loops/_expected/system.js +++ b/test/form/samples/body-less-for-loops/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/circular-member-expression/_expected/system.js b/test/form/samples/circular-member-expression/_expected/system.js index 1d5b50ad571..a43460aeaf0 100644 --- a/test/form/samples/circular-member-expression/_expected/system.js +++ b/test/form/samples/circular-member-expression/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/class-constructor-side-effect/_expected/system.js b/test/form/samples/class-constructor-side-effect/_expected/system.js index 6c71e640b34..c50f93205ef 100644 --- a/test/form/samples/class-constructor-side-effect/_expected/system.js +++ b/test/form/samples/class-constructor-side-effect/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/comment-before-import/_expected/system.js b/test/form/samples/comment-before-import/_expected/system.js index 1b46c88e478..b902888d194 100644 --- a/test/form/samples/comment-before-import/_expected/system.js +++ b/test/form/samples/comment-before-import/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/comment-start-inside-comment/_expected/system.js b/test/form/samples/comment-start-inside-comment/_expected/system.js index 19e7b477d51..a3a39ad1fac 100644 --- a/test/form/samples/comment-start-inside-comment/_expected/system.js +++ b/test/form/samples/comment-start-inside-comment/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/compact-empty-external/_expected/system.js b/test/form/samples/compact-empty-external/_expected/system.js index 4ec1f57364b..a66ca35598e 100644 --- a/test/form/samples/compact-empty-external/_expected/system.js +++ b/test/form/samples/compact-empty-external/_expected/system.js @@ -1 +1 @@ -System.register(['external'],function(exports,module){'use strict';return{setters:[function(){}],execute:function(){}}}); \ No newline at end of file +System.register(['external'],function(){'use strict';return{setters:[function(){}],execute:function(){}}}); \ No newline at end of file diff --git a/test/form/samples/compact-multiple-imports/_expected/system.js b/test/form/samples/compact-multiple-imports/_expected/system.js index 4c924ee26a9..ef4ab610952 100644 --- a/test/form/samples/compact-multiple-imports/_expected/system.js +++ b/test/form/samples/compact-multiple-imports/_expected/system.js @@ -1,2 +1,2 @@ -System.register(['external-1','external-2','external-3','external-4','external-5'],function(exports,module){'use strict';var value,value$1;return{setters:[function(){},function(){},function(module){value=module.value;},function(module){value$1=module.value;},function(){}],execute:function(){assert.equal(value, '3'); +System.register(['external-1','external-2','external-3','external-4','external-5'],function(){'use strict';var value,value$1;return{setters:[function(){},function(){},function(module){value=module.value;},function(module){value$1=module.value;},function(){}],execute:function(){assert.equal(value, '3'); assert.equal(value$1, '4');}}}); \ No newline at end of file diff --git a/test/form/samples/compact/_expected/amd.js b/test/form/samples/compact/_expected/amd.js index c0c925741aa..70cf60b5aa4 100644 --- a/test/form/samples/compact/_expected/amd.js +++ b/test/form/samples/compact/_expected/amd.js @@ -3,4 +3,4 @@ function foo () { console.log( x ); } // trailing comment -return foo;}); +return foo;}); \ No newline at end of file diff --git a/test/form/samples/compact/_expected/cjs.js b/test/form/samples/compact/_expected/cjs.js index c0276a75f26..901c1a95d5d 100644 --- a/test/form/samples/compact/_expected/cjs.js +++ b/test/form/samples/compact/_expected/cjs.js @@ -3,4 +3,4 @@ function foo () { console.log( x ); } // trailing comment -module.exports=foo; +module.exports=foo; \ No newline at end of file diff --git a/test/form/samples/compact/_expected/es.js b/test/form/samples/compact/_expected/es.js index 16cecd7ccd7..b1c4f336677 100644 --- a/test/form/samples/compact/_expected/es.js +++ b/test/form/samples/compact/_expected/es.js @@ -3,4 +3,4 @@ function foo () { console.log( x ); } // trailing comment -export default foo; +export default foo; \ No newline at end of file diff --git a/test/form/samples/compact/_expected/iife.js b/test/form/samples/compact/_expected/iife.js index 1f8ea4d384d..89db3068c1e 100644 --- a/test/form/samples/compact/_expected/iife.js +++ b/test/form/samples/compact/_expected/iife.js @@ -3,4 +3,4 @@ function foo () { console.log( x ); } // trailing comment -return foo;}(x)); +return foo;}(x)); \ No newline at end of file diff --git a/test/form/samples/compact/_expected/system.js b/test/form/samples/compact/_expected/system.js index a49e388d827..32148f6e287 100644 --- a/test/form/samples/compact/_expected/system.js +++ b/test/form/samples/compact/_expected/system.js @@ -1,6 +1,6 @@ -System.register('foo',['external'],function(exports,module){'use strict';var x;return{setters:[function(module){x=module.default;}],execute:function(){exports('default',foo);var self = {get default(){return foo}};if(typeof Symbol!=='undefined'&&Symbol.toStringTag)Object.defineProperty(self,Symbol.toStringTag,{value:'Module'});else Object.defineProperty(self,'toString',{value:function(){return'[object Module]';}});/*#__PURE__*/Object.freeze(self);console.log(self); +System.register('foo',['external'],function(exports){'use strict';var x;return{setters:[function(module){x=module.default;}],execute:function(){exports('default',foo);var self = {get default(){return foo}};if(typeof Symbol!=='undefined'&&Symbol.toStringTag)Object.defineProperty(self,Symbol.toStringTag,{value:'Module'});else Object.defineProperty(self,'toString',{value:function(){return'[object Module]';}});/*#__PURE__*/Object.freeze(self);console.log(self); function foo () { console.log( x ); } // trailing comment -}}}); +}}}); \ No newline at end of file diff --git a/test/form/samples/compact/_expected/umd.js b/test/form/samples/compact/_expected/umd.js index 7902ad4e3ff..0e1d4877478 100644 --- a/test/form/samples/compact/_expected/umd.js +++ b/test/form/samples/compact/_expected/umd.js @@ -3,4 +3,4 @@ function foo () { console.log( x ); } // trailing comment -return foo;})); +return foo;})); \ No newline at end of file diff --git a/test/form/samples/computed-member-expression-assignments/_expected/system.js b/test/form/samples/computed-member-expression-assignments/_expected/system.js index 8bcd36705b7..07716bb6620 100644 --- a/test/form/samples/computed-member-expression-assignments/_expected/system.js +++ b/test/form/samples/computed-member-expression-assignments/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/computed-properties/_expected/system.js b/test/form/samples/computed-properties/_expected/system.js index f11f94a412e..5b417b1cac2 100644 --- a/test/form/samples/computed-properties/_expected/system.js +++ b/test/form/samples/computed-properties/_expected/system.js @@ -1,4 +1,4 @@ -System.register('computedProperties', [], function (exports, module) { +System.register('computedProperties', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/conditional-expression/_expected/system.js b/test/form/samples/conditional-expression/_expected/system.js index 3b5460a5c01..35593bba8ae 100644 --- a/test/form/samples/conditional-expression/_expected/system.js +++ b/test/form/samples/conditional-expression/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/conditional-put-parens-around-sequence/_expected/system.js b/test/form/samples/conditional-put-parens-around-sequence/_expected/system.js index ce6b9b8d26e..7307cd6427b 100644 --- a/test/form/samples/conditional-put-parens-around-sequence/_expected/system.js +++ b/test/form/samples/conditional-put-parens-around-sequence/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/configure-asset-url/_expected/amd.js b/test/form/samples/configure-asset-url/_expected/amd.js index c8302dda1c6..f1ee229dca0 100644 --- a/test/form/samples/configure-asset-url/_expected/amd.js +++ b/test/form/samples/configure-asset-url/_expected/amd.js @@ -1,10 +1,10 @@ -define(['module'], function (module) { 'use strict'; +define(['require'], function (require) { 'use strict'; var asset1 = 'amd.js:solved:assets/asset-solved-9b321da2.txt:assets/asset-solved-9b321da2.txt'; var asset2 = 'resolved'; - var asset3 = new URL(module.uri + '/../assets/asset-unresolved-9548436d.txt', document.baseURI).href; + var asset3 = new URL(require.toUrl('assets/asset-unresolved-9548436d.txt'), document.baseURI).href; console.log(asset1, asset2, asset3); diff --git a/test/form/samples/configure-file-url/_expected/amd.js b/test/form/samples/configure-file-url/_expected/amd.js index 4f17cacf559..f11619a0acf 100644 --- a/test/form/samples/configure-file-url/_expected/amd.js +++ b/test/form/samples/configure-file-url/_expected/amd.js @@ -1,10 +1,10 @@ -define(['module'], function (module) { 'use strict'; +define(['require'], function (require) { 'use strict'; var asset1 = 'chunkId=amd.js:moduleId=solved:fileName=assets/asset-solved-9b321da2.txt:format=amd:relativePath=assets/asset-solved-9b321da2.txt:assetReferenceId=6296c678:chunkReferenceId=null'; var asset2 = 'resolved'; - var asset3 = new URL(module.uri + '/../assets/asset-unresolved-9548436d.txt', document.baseURI).href; + var asset3 = new URL(require.toUrl('assets/asset-unresolved-9548436d.txt'), document.baseURI).href; console.log(asset1, asset2, asset3); diff --git a/test/form/samples/conflicting-imports/_expected/system.js b/test/form/samples/conflicting-imports/_expected/system.js index 4669bd2449e..f3cc9c27a46 100644 --- a/test/form/samples/conflicting-imports/_expected/system.js +++ b/test/form/samples/conflicting-imports/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['foo', 'bar'], function (exports, module) { +System.register(['foo', 'bar'], function () { 'use strict'; var a$1, a; return { diff --git a/test/form/samples/curried-function/_expected/system.js b/test/form/samples/curried-function/_expected/system.js index e9abea8d6a8..903976a38a4 100644 --- a/test/form/samples/curried-function/_expected/system.js +++ b/test/form/samples/curried-function/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/custom-context/_expected/system.js b/test/form/samples/custom-context/_expected/system.js index 3c5b1e22ab0..c06b894ca6f 100644 --- a/test/form/samples/custom-context/_expected/system.js +++ b/test/form/samples/custom-context/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/custom-module-context-function/_expected/system.js b/test/form/samples/custom-module-context-function/_expected/system.js index fe411d7489f..1e323399d00 100644 --- a/test/form/samples/custom-module-context-function/_expected/system.js +++ b/test/form/samples/custom-module-context-function/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/custom-module-context/_expected/system.js b/test/form/samples/custom-module-context/_expected/system.js index fe411d7489f..1e323399d00 100644 --- a/test/form/samples/custom-module-context/_expected/system.js +++ b/test/form/samples/custom-module-context/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/deconflict-format-specific-exports/_expected/system.js b/test/form/samples/deconflict-format-specific-exports/_expected/system.js index b78cf175a69..db840212d24 100644 --- a/test/form/samples/deconflict-format-specific-exports/_expected/system.js +++ b/test/form/samples/deconflict-format-specific-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { @@ -17,10 +17,10 @@ System.register('bundle', [], function (exports, module) { } function nestedNoConflict() { - const exports$1 = { + const exports = { x: 42 }; - console.log(exports$1); + console.log(exports); } var x = exports('x', 43); diff --git a/test/form/samples/deconflict-format-specific-globals/_config.js b/test/form/samples/deconflict-format-specific-globals/_config.js new file mode 100644 index 00000000000..12a61c9393c --- /dev/null +++ b/test/form/samples/deconflict-format-specific-globals/_config.js @@ -0,0 +1,9 @@ +module.exports = { + description: 'deconflicts format specific globals', + options: { + external: 'external', + output: { + name: 'bundle' + } + } +}; diff --git a/test/form/samples/deconflict-format-specific-globals/_expected/amd.js b/test/form/samples/deconflict-format-specific-globals/_expected/amd.js new file mode 100644 index 00000000000..96af100f4a3 --- /dev/null +++ b/test/form/samples/deconflict-format-specific-globals/_expected/amd.js @@ -0,0 +1,49 @@ +define(['module', 'require', 'external'], function (module, require, external) { 'use strict'; + + external = external && external.hasOwnProperty('default') ? external['default'] : external; + + console.log(external); + + const _interopDefault = 0; + const module$1 = 1; + const require$1 = 2; + const exports$1 = 3; + const document$1 = 4; + const URL$1 = 5; + console.log(_interopDefault, module$1, require$1, exports$1, document$1, URL$1); + + new Promise(function (resolve, reject) { require(['external'], resolve, reject) }); + exports.default = 0; + console.log(new URL(module.uri, document.baseURI).href); + + function nested1() { + const _interopDefault = 0; + const module$1 = 1; + const require$1 = 2; + const exports$1 = 3; + const document$1 = 4; + const URL$1 = 5; + console.log(_interopDefault, module$1, require$1, exports$1, document$1, URL$1); + + new Promise(function (resolve, reject) { require(['external'], resolve, reject) }); + exports.default = 1; + console.log(new URL(module.uri, document.baseURI).href); + } + + nested1(); + + function nested2() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module, require, exports, document, URL); + } + + nested2(); + + return exports.default; + +}); diff --git a/test/form/samples/deconflict-format-specific-globals/_expected/cjs.js b/test/form/samples/deconflict-format-specific-globals/_expected/cjs.js new file mode 100644 index 00000000000..b9d960af7f7 --- /dev/null +++ b/test/form/samples/deconflict-format-specific-globals/_expected/cjs.js @@ -0,0 +1,49 @@ +'use strict'; + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var external = _interopDefault(require('external')); + +console.log(external); + +const _interopDefault$1 = 0; +const module$1 = 1; +const require$1 = 2; +const exports$1 = 3; +const document$1 = 4; +const URL$1 = 5; +console.log(_interopDefault$1, module$1, require$1, exports$1, document$1, URL$1); + +Promise.resolve(require('external')); +exports.default = 0; +console.log((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('cjs.js', document.baseURI).href))); + +function nested1() { + const _interopDefault = 0; + const module = 1; + const require$1 = 2; + const exports$1 = 3; + const document$1 = 4; + const URL$1 = 5; + console.log(_interopDefault, module, require$1, exports$1, document$1, URL$1); + + Promise.resolve(require('external')); + exports.default = 1; + console.log((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('cjs.js', document.baseURI).href))); +} + +nested1(); + +function nested2() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module, require, exports, document, URL); +} + +nested2(); + +module.exports = exports.default; diff --git a/test/form/samples/deconflict-format-specific-globals/_expected/es.js b/test/form/samples/deconflict-format-specific-globals/_expected/es.js new file mode 100644 index 00000000000..bd36932478e --- /dev/null +++ b/test/form/samples/deconflict-format-specific-globals/_expected/es.js @@ -0,0 +1,45 @@ +import external from 'external'; + +console.log(external); + +const _interopDefault = 0; +const module = 1; +const require = 2; +const exports = 3; +const document = 4; +const URL = 5; +console.log(_interopDefault, module, require, exports, document, URL); + +import('external'); +let value = 0; +console.log(import.meta.url); + +function nested1() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module, require, exports, document, URL); + + import('external'); + value = 1; + console.log(import.meta.url); +} + +nested1(); + +function nested2() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module, require, exports, document, URL); +} + +nested2(); + +export default value; diff --git a/test/form/samples/deconflict-format-specific-globals/_expected/iife.js b/test/form/samples/deconflict-format-specific-globals/_expected/iife.js new file mode 100644 index 00000000000..fe132559314 --- /dev/null +++ b/test/form/samples/deconflict-format-specific-globals/_expected/iife.js @@ -0,0 +1,50 @@ +var bundle = (function (external) { + 'use strict'; + + external = external && external.hasOwnProperty('default') ? external['default'] : external; + + console.log(external); + + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports$1 = 3; + const document$1 = 4; + const URL$1 = 5; + console.log(_interopDefault, module, require, exports$1, document$1, URL$1); + + import('external'); + exports.default = 0; + console.log((document.currentScript && document.currentScript.src || new URL('iife.js', document.baseURI).href)); + + function nested1() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports$1 = 3; + const document$1 = 4; + const URL$1 = 5; + console.log(_interopDefault, module, require, exports$1, document$1, URL$1); + + import('external'); + exports.default = 1; + console.log((document.currentScript && document.currentScript.src || new URL('iife.js', document.baseURI).href)); + } + + nested1(); + + function nested2() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module, require, exports, document, URL); + } + + nested2(); + + return exports.default; + +}(external)); diff --git a/test/form/samples/deconflict-format-specific-globals/_expected/system.js b/test/form/samples/deconflict-format-specific-globals/_expected/system.js new file mode 100644 index 00000000000..3a81b4e7e94 --- /dev/null +++ b/test/form/samples/deconflict-format-specific-globals/_expected/system.js @@ -0,0 +1,54 @@ +System.register('bundle', ['external'], function (exports, module) { + 'use strict'; + var external; + return { + setters: [function (module) { + external = module.default; + }], + execute: function () { + + console.log(external); + + const _interopDefault = 0; + const module$1 = 1; + const require = 2; + const exports$1 = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module$1, require, exports$1, document, URL); + + module.import('external'); + let value = exports('default', 0); + console.log(module.meta.url); + + function nested1() { + const _interopDefault = 0; + const module$1 = 1; + const require = 2; + const exports$1 = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module$1, require, exports$1, document, URL); + + module.import('external'); + value = exports('default', 1); + console.log(module.meta.url); + } + + nested1(); + + function nested2() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module, require, exports, document, URL); + } + + nested2(); + + } + }; +}); diff --git a/test/form/samples/deconflict-format-specific-globals/_expected/umd.js b/test/form/samples/deconflict-format-specific-globals/_expected/umd.js new file mode 100644 index 00000000000..e75c657c398 --- /dev/null +++ b/test/form/samples/deconflict-format-specific-globals/_expected/umd.js @@ -0,0 +1,53 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('external')) : + typeof define === 'function' && define.amd ? define(['external'], factory) : + (global = global || self, global.bundle = factory(global.external)); +}(this, function (external) { 'use strict'; + + external = external && external.hasOwnProperty('default') ? external['default'] : external; + + console.log(external); + + const _interopDefault = 0; + const module = 1; + const require$1 = 2; + const exports$1 = 3; + const document$1 = 4; + const URL$1 = 5; + console.log(_interopDefault, module, require$1, exports$1, document$1, URL$1); + + import('external'); + exports.default = 0; + console.log((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('umd.js', document.baseURI).href))); + + function nested1() { + const _interopDefault = 0; + const module = 1; + const require$1 = 2; + const exports$1 = 3; + const document$1 = 4; + const URL$1 = 5; + console.log(_interopDefault, module, require$1, exports$1, document$1, URL$1); + + import('external'); + exports.default = 1; + console.log((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('umd.js', document.baseURI).href))); + } + + nested1(); + + function nested2() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module, require, exports, document, URL); + } + + nested2(); + + return exports.default; + +})); diff --git a/test/form/samples/deconflict-format-specific-globals/main.js b/test/form/samples/deconflict-format-specific-globals/main.js new file mode 100644 index 00000000000..4f45954b07e --- /dev/null +++ b/test/form/samples/deconflict-format-specific-globals/main.js @@ -0,0 +1,43 @@ +import external from 'external'; +console.log(external); + +const _interopDefault = 0; +const module = 1; +const require = 2; +const exports = 3; +const document = 4; +const URL = 5; +console.log(_interopDefault, module, require, exports, document, URL); + +import('external'); +let value = 0; +export { value as default }; +console.log(import.meta.url); + +function nested1() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module, require, exports, document, URL); + + import('external'); + value = 1; + console.log(import.meta.url); +} + +nested1(); + +function nested2() { + const _interopDefault = 0; + const module = 1; + const require = 2; + const exports = 3; + const document = 4; + const URL = 5; + console.log(_interopDefault, module, require, exports, document, URL); +} + +nested2(); diff --git a/test/form/samples/deconflict-format-specific-interop/_config.js b/test/form/samples/deconflict-format-specific-interop/_config.js deleted file mode 100644 index 4194988127c..00000000000 --- a/test/form/samples/deconflict-format-specific-interop/_config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - description: 'only deconflict "interop" for formats where it is necessary', - options: { external: ['external'] } -}; diff --git a/test/form/samples/deconflict-format-specific-interop/_expected/amd.js b/test/form/samples/deconflict-format-specific-interop/_expected/amd.js deleted file mode 100644 index a1ffe6c9326..00000000000 --- a/test/form/samples/deconflict-format-specific-interop/_expected/amd.js +++ /dev/null @@ -1,8 +0,0 @@ -define(['external'], function (external) { 'use strict'; - - external = external && external.hasOwnProperty('default') ? external['default'] : external; - - const _interopDefault = 42; - console.log(external, _interopDefault); - -}); diff --git a/test/form/samples/deconflict-format-specific-interop/_expected/cjs.js b/test/form/samples/deconflict-format-specific-interop/_expected/cjs.js deleted file mode 100644 index f201edb1286..00000000000 --- a/test/form/samples/deconflict-format-specific-interop/_expected/cjs.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var external = _interopDefault(require('external')); - -const _interopDefault$1 = 42; -console.log(external, _interopDefault$1); diff --git a/test/form/samples/deconflict-format-specific-interop/_expected/es.js b/test/form/samples/deconflict-format-specific-interop/_expected/es.js deleted file mode 100644 index f89c64b5b23..00000000000 --- a/test/form/samples/deconflict-format-specific-interop/_expected/es.js +++ /dev/null @@ -1,4 +0,0 @@ -import external from 'external'; - -const _interopDefault = 42; -console.log(external, _interopDefault); diff --git a/test/form/samples/deconflict-format-specific-interop/_expected/iife.js b/test/form/samples/deconflict-format-specific-interop/_expected/iife.js deleted file mode 100644 index 6d52d475b9b..00000000000 --- a/test/form/samples/deconflict-format-specific-interop/_expected/iife.js +++ /dev/null @@ -1,9 +0,0 @@ -(function (external) { - 'use strict'; - - external = external && external.hasOwnProperty('default') ? external['default'] : external; - - const _interopDefault = 42; - console.log(external, _interopDefault); - -}(external)); diff --git a/test/form/samples/deconflict-format-specific-interop/_expected/system.js b/test/form/samples/deconflict-format-specific-interop/_expected/system.js deleted file mode 100644 index 7d25adfa650..00000000000 --- a/test/form/samples/deconflict-format-specific-interop/_expected/system.js +++ /dev/null @@ -1,15 +0,0 @@ -System.register(['external'], function (exports, module) { - 'use strict'; - var external; - return { - setters: [function (module) { - external = module.default; - }], - execute: function () { - - const _interopDefault = 42; - console.log(external, _interopDefault); - - } - }; -}); diff --git a/test/form/samples/deconflict-format-specific-interop/_expected/umd.js b/test/form/samples/deconflict-format-specific-interop/_expected/umd.js deleted file mode 100644 index d28769cf89b..00000000000 --- a/test/form/samples/deconflict-format-specific-interop/_expected/umd.js +++ /dev/null @@ -1,12 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('external')) : - typeof define === 'function' && define.amd ? define(['external'], factory) : - (global = global || self, factory(global.external)); -}(this, function (external) { 'use strict'; - - external = external && external.hasOwnProperty('default') ? external['default'] : external; - - const _interopDefault = 42; - console.log(external, _interopDefault); - -})); diff --git a/test/form/samples/deconflict-format-specific-interop/main.js b/test/form/samples/deconflict-format-specific-interop/main.js deleted file mode 100644 index f89c64b5b23..00000000000 --- a/test/form/samples/deconflict-format-specific-interop/main.js +++ /dev/null @@ -1,4 +0,0 @@ -import external from 'external'; - -const _interopDefault = 42; -console.log(external, _interopDefault); diff --git a/test/form/samples/deconflict-format-specific-module/_config.js b/test/form/samples/deconflict-format-specific-module/_config.js deleted file mode 100644 index 8ba567b9a9c..00000000000 --- a/test/form/samples/deconflict-format-specific-module/_config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - description: 'only deconflict "module" for formats where it is necessary', - options: { output: { name: 'bundle' } } -}; diff --git a/test/form/samples/deconflict-format-specific-module/_expected/amd.js b/test/form/samples/deconflict-format-specific-module/_expected/amd.js deleted file mode 100644 index 8801f2c2a58..00000000000 --- a/test/form/samples/deconflict-format-specific-module/_expected/amd.js +++ /dev/null @@ -1,12 +0,0 @@ -define(function () { 'use strict'; - - const module = { - exports: 99 - }; - console.log(module); - - var main = 42; - - return main; - -}); diff --git a/test/form/samples/deconflict-format-specific-module/_expected/cjs.js b/test/form/samples/deconflict-format-specific-module/_expected/cjs.js deleted file mode 100644 index 27b7aa822ad..00000000000 --- a/test/form/samples/deconflict-format-specific-module/_expected/cjs.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -const module$1 = { - exports: 99 -}; -console.log(module$1); - -var main = 42; - -module.exports = main; diff --git a/test/form/samples/deconflict-format-specific-module/_expected/es.js b/test/form/samples/deconflict-format-specific-module/_expected/es.js deleted file mode 100644 index 6bde991495b..00000000000 --- a/test/form/samples/deconflict-format-specific-module/_expected/es.js +++ /dev/null @@ -1,8 +0,0 @@ -const module = { - exports: 99 -}; -console.log(module); - -var main = 42; - -export default main; diff --git a/test/form/samples/deconflict-format-specific-module/_expected/iife.js b/test/form/samples/deconflict-format-specific-module/_expected/iife.js deleted file mode 100644 index d9bc6034233..00000000000 --- a/test/form/samples/deconflict-format-specific-module/_expected/iife.js +++ /dev/null @@ -1,13 +0,0 @@ -var bundle = (function () { - 'use strict'; - - const module = { - exports: 99 - }; - console.log(module); - - var main = 42; - - return main; - -}()); diff --git a/test/form/samples/deconflict-format-specific-module/_expected/system.js b/test/form/samples/deconflict-format-specific-module/_expected/system.js deleted file mode 100644 index 700ce53af0e..00000000000 --- a/test/form/samples/deconflict-format-specific-module/_expected/system.js +++ /dev/null @@ -1,15 +0,0 @@ -System.register('bundle', [], function (exports, module) { - 'use strict'; - return { - execute: function () { - - const module = { - exports: 99 - }; - console.log(module); - - var main = exports('default', 42); - - } - }; -}); diff --git a/test/form/samples/deconflict-format-specific-module/_expected/umd.js b/test/form/samples/deconflict-format-specific-module/_expected/umd.js deleted file mode 100644 index 239341b049a..00000000000 --- a/test/form/samples/deconflict-format-specific-module/_expected/umd.js +++ /dev/null @@ -1,16 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global = global || self, global.bundle = factory()); -}(this, function () { 'use strict'; - - const module = { - exports: 99 - }; - console.log(module); - - var main = 42; - - return main; - -})); diff --git a/test/form/samples/deconflict-format-specific-module/main.js b/test/form/samples/deconflict-format-specific-module/main.js deleted file mode 100644 index eeb42d0c4c2..00000000000 --- a/test/form/samples/deconflict-format-specific-module/main.js +++ /dev/null @@ -1,6 +0,0 @@ -const module = { - exports: 99 -}; -console.log(module); - -export default 42; diff --git a/test/form/samples/dedupes-external-imports/_expected/system.js b/test/form/samples/dedupes-external-imports/_expected/system.js index ae8b66bbb52..26d44c1ff55 100644 --- a/test/form/samples/dedupes-external-imports/_expected/system.js +++ b/test/form/samples/dedupes-external-imports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['external'], function (exports, module) { +System.register('myBundle', ['external'], function (exports) { 'use strict'; var Component; return { diff --git a/test/form/samples/default-identifier-deshadowing/_expected/system.js b/test/form/samples/default-identifier-deshadowing/_expected/system.js index 43c4a4d512b..874a7969d81 100644 --- a/test/form/samples/default-identifier-deshadowing/_expected/system.js +++ b/test/form/samples/default-identifier-deshadowing/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/define-es-modules-false/_expected/system.js b/test/form/samples/define-es-modules-false/_expected/system.js index 102e8519d8b..e615e3599d0 100644 --- a/test/form/samples/define-es-modules-false/_expected/system.js +++ b/test/form/samples/define-es-modules-false/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo', [], function (exports, module) { +System.register('foo', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/define-replacement/_expected/amd.js b/test/form/samples/define-replacement/_expected/amd.js index 0586f7df576..59833b03363 100644 --- a/test/form/samples/define-replacement/_expected/amd.js +++ b/test/form/samples/define-replacement/_expected/amd.js @@ -7,4 +7,4 @@ enifed(function () { 'use strict'; a(); a(); -}); \ No newline at end of file +}); diff --git a/test/form/samples/define-replacement/_expected/cjs.js b/test/form/samples/define-replacement/_expected/cjs.js index 473b57e0197..4b1f7113031 100644 --- a/test/form/samples/define-replacement/_expected/cjs.js +++ b/test/form/samples/define-replacement/_expected/cjs.js @@ -5,4 +5,4 @@ var a = () => { }; a(); -a(); \ No newline at end of file +a(); diff --git a/test/form/samples/define-replacement/_expected/es.js b/test/form/samples/define-replacement/_expected/es.js index 0415d2c05c3..c387edcca09 100644 --- a/test/form/samples/define-replacement/_expected/es.js +++ b/test/form/samples/define-replacement/_expected/es.js @@ -3,4 +3,4 @@ var a = () => { }; a(); -a(); \ No newline at end of file +a(); diff --git a/test/form/samples/define-replacement/_expected/system.js b/test/form/samples/define-replacement/_expected/system.js index 6af303a682b..349af935327 100644 --- a/test/form/samples/define-replacement/_expected/system.js +++ b/test/form/samples/define-replacement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/duplicated-var-declarations/_expected/system.js b/test/form/samples/duplicated-var-declarations/_expected/system.js index db0002414a8..c6ea73f5996 100644 --- a/test/form/samples/duplicated-var-declarations/_expected/system.js +++ b/test/form/samples/duplicated-var-declarations/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/effect-in-for-of-loop-in-functions/_expected/system.js b/test/form/samples/effect-in-for-of-loop-in-functions/_expected/system.js index 6b504249e3b..93ba5ca8f18 100644 --- a/test/form/samples/effect-in-for-of-loop-in-functions/_expected/system.js +++ b/test/form/samples/effect-in-for-of-loop-in-functions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/effect-in-for-of-loop/_expected/system.js b/test/form/samples/effect-in-for-of-loop/_expected/system.js index f80df05a7e4..c8f28682e02 100644 --- a/test/form/samples/effect-in-for-of-loop/_expected/system.js +++ b/test/form/samples/effect-in-for-of-loop/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-block-statement/_expected/system.js b/test/form/samples/empty-block-statement/_expected/system.js index 1a63d1aaf99..d8a0e92b62a 100644 --- a/test/form/samples/empty-block-statement/_expected/system.js +++ b/test/form/samples/empty-block-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-do-while-statement/_expected/amd.js b/test/form/samples/empty-do-while-statement/_expected/amd.js index e44e55606b5..6036f2851d3 100644 --- a/test/form/samples/empty-do-while-statement/_expected/amd.js +++ b/test/form/samples/empty-do-while-statement/_expected/amd.js @@ -3,4 +3,4 @@ define(function () { 'use strict'; console.log( 1 ); console.log( 2 ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/empty-do-while-statement/_expected/cjs.js b/test/form/samples/empty-do-while-statement/_expected/cjs.js index 1afb1431201..33f9de05030 100644 --- a/test/form/samples/empty-do-while-statement/_expected/cjs.js +++ b/test/form/samples/empty-do-while-statement/_expected/cjs.js @@ -1,4 +1,4 @@ 'use strict'; console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-do-while-statement/_expected/es.js b/test/form/samples/empty-do-while-statement/_expected/es.js index f97f3d0dda5..472e544d88c 100644 --- a/test/form/samples/empty-do-while-statement/_expected/es.js +++ b/test/form/samples/empty-do-while-statement/_expected/es.js @@ -1,2 +1,2 @@ console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-do-while-statement/_expected/system.js b/test/form/samples/empty-do-while-statement/_expected/system.js index 1a63d1aaf99..d8a0e92b62a 100644 --- a/test/form/samples/empty-do-while-statement/_expected/system.js +++ b/test/form/samples/empty-do-while-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-for-in-statement/_expected/amd.js b/test/form/samples/empty-for-in-statement/_expected/amd.js index e44e55606b5..6036f2851d3 100644 --- a/test/form/samples/empty-for-in-statement/_expected/amd.js +++ b/test/form/samples/empty-for-in-statement/_expected/amd.js @@ -3,4 +3,4 @@ define(function () { 'use strict'; console.log( 1 ); console.log( 2 ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/empty-for-in-statement/_expected/cjs.js b/test/form/samples/empty-for-in-statement/_expected/cjs.js index 1afb1431201..33f9de05030 100644 --- a/test/form/samples/empty-for-in-statement/_expected/cjs.js +++ b/test/form/samples/empty-for-in-statement/_expected/cjs.js @@ -1,4 +1,4 @@ 'use strict'; console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-for-in-statement/_expected/es.js b/test/form/samples/empty-for-in-statement/_expected/es.js index f97f3d0dda5..472e544d88c 100644 --- a/test/form/samples/empty-for-in-statement/_expected/es.js +++ b/test/form/samples/empty-for-in-statement/_expected/es.js @@ -1,2 +1,2 @@ console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-for-in-statement/_expected/system.js b/test/form/samples/empty-for-in-statement/_expected/system.js index 1a63d1aaf99..d8a0e92b62a 100644 --- a/test/form/samples/empty-for-in-statement/_expected/system.js +++ b/test/form/samples/empty-for-in-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-for-of-statement/_expected/amd.js b/test/form/samples/empty-for-of-statement/_expected/amd.js index e44e55606b5..6036f2851d3 100644 --- a/test/form/samples/empty-for-of-statement/_expected/amd.js +++ b/test/form/samples/empty-for-of-statement/_expected/amd.js @@ -3,4 +3,4 @@ define(function () { 'use strict'; console.log( 1 ); console.log( 2 ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/empty-for-of-statement/_expected/cjs.js b/test/form/samples/empty-for-of-statement/_expected/cjs.js index 1afb1431201..33f9de05030 100644 --- a/test/form/samples/empty-for-of-statement/_expected/cjs.js +++ b/test/form/samples/empty-for-of-statement/_expected/cjs.js @@ -1,4 +1,4 @@ 'use strict'; console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-for-of-statement/_expected/es.js b/test/form/samples/empty-for-of-statement/_expected/es.js index f97f3d0dda5..472e544d88c 100644 --- a/test/form/samples/empty-for-of-statement/_expected/es.js +++ b/test/form/samples/empty-for-of-statement/_expected/es.js @@ -1,2 +1,2 @@ console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-for-of-statement/_expected/system.js b/test/form/samples/empty-for-of-statement/_expected/system.js index 1a63d1aaf99..d8a0e92b62a 100644 --- a/test/form/samples/empty-for-of-statement/_expected/system.js +++ b/test/form/samples/empty-for-of-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-for-statement/_expected/system.js b/test/form/samples/empty-for-statement/_expected/system.js index 1a63d1aaf99..d8a0e92b62a 100644 --- a/test/form/samples/empty-for-statement/_expected/system.js +++ b/test/form/samples/empty-for-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-if-statement/_expected/amd.js b/test/form/samples/empty-if-statement/_expected/amd.js index e44e55606b5..6036f2851d3 100644 --- a/test/form/samples/empty-if-statement/_expected/amd.js +++ b/test/form/samples/empty-if-statement/_expected/amd.js @@ -3,4 +3,4 @@ define(function () { 'use strict'; console.log( 1 ); console.log( 2 ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/empty-if-statement/_expected/cjs.js b/test/form/samples/empty-if-statement/_expected/cjs.js index 1afb1431201..33f9de05030 100644 --- a/test/form/samples/empty-if-statement/_expected/cjs.js +++ b/test/form/samples/empty-if-statement/_expected/cjs.js @@ -1,4 +1,4 @@ 'use strict'; console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-if-statement/_expected/es.js b/test/form/samples/empty-if-statement/_expected/es.js index f97f3d0dda5..472e544d88c 100644 --- a/test/form/samples/empty-if-statement/_expected/es.js +++ b/test/form/samples/empty-if-statement/_expected/es.js @@ -1,2 +1,2 @@ console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-if-statement/_expected/system.js b/test/form/samples/empty-if-statement/_expected/system.js index 1a63d1aaf99..d8a0e92b62a 100644 --- a/test/form/samples/empty-if-statement/_expected/system.js +++ b/test/form/samples/empty-if-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-statement-consequent/_expected/system.js b/test/form/samples/empty-statement-consequent/_expected/system.js index b937b1c82c2..d3ab2c83eb2 100644 --- a/test/form/samples/empty-statement-consequent/_expected/system.js +++ b/test/form/samples/empty-statement-consequent/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-statement/_expected/system.js b/test/form/samples/empty-statement/_expected/system.js index 8c68a27b9ac..811a8f6327e 100644 --- a/test/form/samples/empty-statement/_expected/system.js +++ b/test/form/samples/empty-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-switch-statement/_expected/amd.js b/test/form/samples/empty-switch-statement/_expected/amd.js index e44e55606b5..6036f2851d3 100644 --- a/test/form/samples/empty-switch-statement/_expected/amd.js +++ b/test/form/samples/empty-switch-statement/_expected/amd.js @@ -3,4 +3,4 @@ define(function () { 'use strict'; console.log( 1 ); console.log( 2 ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/empty-switch-statement/_expected/cjs.js b/test/form/samples/empty-switch-statement/_expected/cjs.js index 1afb1431201..33f9de05030 100644 --- a/test/form/samples/empty-switch-statement/_expected/cjs.js +++ b/test/form/samples/empty-switch-statement/_expected/cjs.js @@ -1,4 +1,4 @@ 'use strict'; console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-switch-statement/_expected/es.js b/test/form/samples/empty-switch-statement/_expected/es.js index f97f3d0dda5..472e544d88c 100644 --- a/test/form/samples/empty-switch-statement/_expected/es.js +++ b/test/form/samples/empty-switch-statement/_expected/es.js @@ -1,2 +1,2 @@ console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-switch-statement/_expected/system.js b/test/form/samples/empty-switch-statement/_expected/system.js index 1a63d1aaf99..d8a0e92b62a 100644 --- a/test/form/samples/empty-switch-statement/_expected/system.js +++ b/test/form/samples/empty-switch-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-try-catch-statement/_expected/amd.js b/test/form/samples/empty-try-catch-statement/_expected/amd.js index e44e55606b5..6036f2851d3 100644 --- a/test/form/samples/empty-try-catch-statement/_expected/amd.js +++ b/test/form/samples/empty-try-catch-statement/_expected/amd.js @@ -3,4 +3,4 @@ define(function () { 'use strict'; console.log( 1 ); console.log( 2 ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/empty-try-catch-statement/_expected/cjs.js b/test/form/samples/empty-try-catch-statement/_expected/cjs.js index 1afb1431201..33f9de05030 100644 --- a/test/form/samples/empty-try-catch-statement/_expected/cjs.js +++ b/test/form/samples/empty-try-catch-statement/_expected/cjs.js @@ -1,4 +1,4 @@ 'use strict'; console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-try-catch-statement/_expected/es.js b/test/form/samples/empty-try-catch-statement/_expected/es.js index f97f3d0dda5..472e544d88c 100644 --- a/test/form/samples/empty-try-catch-statement/_expected/es.js +++ b/test/form/samples/empty-try-catch-statement/_expected/es.js @@ -1,2 +1,2 @@ console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-try-catch-statement/_expected/system.js b/test/form/samples/empty-try-catch-statement/_expected/system.js index 1a63d1aaf99..d8a0e92b62a 100644 --- a/test/form/samples/empty-try-catch-statement/_expected/system.js +++ b/test/form/samples/empty-try-catch-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/empty-while-statement/_expected/amd.js b/test/form/samples/empty-while-statement/_expected/amd.js index e44e55606b5..6036f2851d3 100644 --- a/test/form/samples/empty-while-statement/_expected/amd.js +++ b/test/form/samples/empty-while-statement/_expected/amd.js @@ -3,4 +3,4 @@ define(function () { 'use strict'; console.log( 1 ); console.log( 2 ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/empty-while-statement/_expected/cjs.js b/test/form/samples/empty-while-statement/_expected/cjs.js index 1afb1431201..33f9de05030 100644 --- a/test/form/samples/empty-while-statement/_expected/cjs.js +++ b/test/form/samples/empty-while-statement/_expected/cjs.js @@ -1,4 +1,4 @@ 'use strict'; console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-while-statement/_expected/es.js b/test/form/samples/empty-while-statement/_expected/es.js index f97f3d0dda5..472e544d88c 100644 --- a/test/form/samples/empty-while-statement/_expected/es.js +++ b/test/form/samples/empty-while-statement/_expected/es.js @@ -1,2 +1,2 @@ console.log( 1 ); -console.log( 2 ); \ No newline at end of file +console.log( 2 ); diff --git a/test/form/samples/empty-while-statement/_expected/system.js b/test/form/samples/empty-while-statement/_expected/system.js index 1a63d1aaf99..d8a0e92b62a 100644 --- a/test/form/samples/empty-while-statement/_expected/system.js +++ b/test/form/samples/empty-while-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/erroneous-nested-member-expression/_expected/system.js b/test/form/samples/erroneous-nested-member-expression/_expected/system.js index ca2c66edd19..5e5b4921d1b 100644 --- a/test/form/samples/erroneous-nested-member-expression/_expected/system.js +++ b/test/form/samples/erroneous-nested-member-expression/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/exclude-unnecessary-modifications/_expected/system.js b/test/form/samples/exclude-unnecessary-modifications/_expected/system.js index 90af0ddc2a4..97debcdb2f3 100644 --- a/test/form/samples/exclude-unnecessary-modifications/_expected/system.js +++ b/test/form/samples/exclude-unnecessary-modifications/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/exponentiation-operator/_expected/system.js b/test/form/samples/exponentiation-operator/_expected/system.js index a82fd0efdc0..eb116fe8abe 100644 --- a/test/form/samples/exponentiation-operator/_expected/system.js +++ b/test/form/samples/exponentiation-operator/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/export-all-from-internal/_expected/system.js b/test/form/samples/export-all-from-internal/_expected/system.js index 52932c3b859..3cc1a07271a 100644 --- a/test/form/samples/export-all-from-internal/_expected/system.js +++ b/test/form/samples/export-all-from-internal/_expected/system.js @@ -1,4 +1,4 @@ -System.register('exposedInternals', [], function (exports, module) { +System.register('exposedInternals', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/export-all-multiple/_expected/system.js b/test/form/samples/export-all-multiple/_expected/system.js index 087c481e212..ebb64473fa3 100644 --- a/test/form/samples/export-all-multiple/_expected/system.js +++ b/test/form/samples/export-all-multiple/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['foo', 'bar', 'baz'], function (exports, module) { +System.register('myBundle', ['foo', 'bar', 'baz'], function (exports) { 'use strict'; var _starExcludes = { default: 1 }; return { diff --git a/test/form/samples/export-default-2/_expected/system.js b/test/form/samples/export-default-2/_expected/system.js index 3ff14fc70d0..afa7b07dab3 100644 --- a/test/form/samples/export-default-2/_expected/system.js +++ b/test/form/samples/export-default-2/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/export-default-3/_expected/system.js b/test/form/samples/export-default-3/_expected/system.js index de024cd1b34..b9f2a6ef261 100644 --- a/test/form/samples/export-default-3/_expected/system.js +++ b/test/form/samples/export-default-3/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/export-default-4/_expected/system.js b/test/form/samples/export-default-4/_expected/system.js index 821e7961ade..944f6665e80 100644 --- a/test/form/samples/export-default-4/_expected/system.js +++ b/test/form/samples/export-default-4/_expected/system.js @@ -1,4 +1,4 @@ -System.register('my.global.namespace', [], function (exports, module) { +System.register('my.global.namespace', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/export-default-anonymous-declarations/_expected/system.js b/test/form/samples/export-default-anonymous-declarations/_expected/system.js index 9c481c66fc0..fb0d9f2bd10 100644 --- a/test/form/samples/export-default-anonymous-declarations/_expected/system.js +++ b/test/form/samples/export-default-anonymous-declarations/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/export-default-import/_expected/system.js b/test/form/samples/export-default-import/_expected/system.js index 05af71e7b19..a3bb75db593 100644 --- a/test/form/samples/export-default-import/_expected/system.js +++ b/test/form/samples/export-default-import/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['x'], function (exports, module) { +System.register('myBundle', ['x'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/form/samples/export-default/_expected/system.js b/test/form/samples/export-default/_expected/system.js index b29981439a3..28ccfcd3c31 100644 --- a/test/form/samples/export-default/_expected/system.js +++ b/test/form/samples/export-default/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/export-globals/_expected/system.js b/test/form/samples/export-globals/_expected/system.js index 0038c37151b..7f3a8eaf979 100644 --- a/test/form/samples/export-globals/_expected/system.js +++ b/test/form/samples/export-globals/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/export-live-bindings/_expected/system.js b/test/form/samples/export-live-bindings/_expected/system.js index 3c3ac8e16b8..8d0ae5eca0e 100644 --- a/test/form/samples/export-live-bindings/_expected/system.js +++ b/test/form/samples/export-live-bindings/_expected/system.js @@ -1,4 +1,4 @@ -System.register('iife', [], function (exports, module) { +System.register('iife', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/export-multiple-vars/_expected/system.js b/test/form/samples/export-multiple-vars/_expected/system.js index 8c88916c811..bde10e4df6c 100644 --- a/test/form/samples/export-multiple-vars/_expected/system.js +++ b/test/form/samples/export-multiple-vars/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/exports-at-end-if-possible/_expected/system.js b/test/form/samples/exports-at-end-if-possible/_expected/system.js index 658d34a5e22..22213a19860 100644 --- a/test/form/samples/exports-at-end-if-possible/_expected/system.js +++ b/test/form/samples/exports-at-end-if-possible/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/extend-exports/_expected/system.js b/test/form/samples/extend-exports/_expected/system.js index 0c06d2639a5..c6f5464d013 100644 --- a/test/form/samples/extend-exports/_expected/system.js +++ b/test/form/samples/extend-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo', [], function (exports, module) { +System.register('foo', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/extend-namespaced-exports/_expected/system.js b/test/form/samples/extend-namespaced-exports/_expected/system.js index 300cab4a148..b9ad7297724 100644 --- a/test/form/samples/extend-namespaced-exports/_expected/system.js +++ b/test/form/samples/extend-namespaced-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo.bar.baz', [], function (exports, module) { +System.register('foo.bar.baz', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/external-deshadowing/_expected/system.js b/test/form/samples/external-deshadowing/_expected/system.js index cbfb0157a2f..654e53adee5 100644 --- a/test/form/samples/external-deshadowing/_expected/system.js +++ b/test/form/samples/external-deshadowing/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['a', 'b'], function (exports, module) { +System.register('myBundle', ['a', 'b'], function (exports) { 'use strict'; var Test$1, Test$1$1; return { diff --git a/test/form/samples/external-empty-import-no-global-b/_expected/system.js b/test/form/samples/external-empty-import-no-global-b/_expected/system.js index bec4508890f..81d11c022f8 100644 --- a/test/form/samples/external-empty-import-no-global-b/_expected/system.js +++ b/test/form/samples/external-empty-import-no-global-b/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['babel-polyfill', 'other'], function (exports, module) { +System.register('myBundle', ['babel-polyfill', 'other'], function (exports) { 'use strict'; var x; return { diff --git a/test/form/samples/external-empty-import-no-global/_expected/system.js b/test/form/samples/external-empty-import-no-global/_expected/system.js index 87854846ad6..f1c91387b3c 100644 --- a/test/form/samples/external-empty-import-no-global/_expected/system.js +++ b/test/form/samples/external-empty-import-no-global/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['babel-polyfill'], function (exports, module) { +System.register('myBundle', ['babel-polyfill'], function (exports) { 'use strict'; return { setters: [function () {}], diff --git a/test/form/samples/external-export-tracing/_expected/system.js b/test/form/samples/external-export-tracing/_expected/system.js index 21c5124260c..d19d560effd 100644 --- a/test/form/samples/external-export-tracing/_expected/system.js +++ b/test/form/samples/external-export-tracing/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['external'], function (exports, module) { +System.register('myBundle', ['external'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/form/samples/external-import-alias-shadow/_expected/system.js b/test/form/samples/external-import-alias-shadow/_expected/system.js index 4342c7cb32a..9f2513b2175 100644 --- a/test/form/samples/external-import-alias-shadow/_expected/system.js +++ b/test/form/samples/external-import-alias-shadow/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['acorn'], function (exports, module) { +System.register(['acorn'], function () { 'use strict'; var parse$1; return { diff --git a/test/form/samples/external-imports-custom-names-function/_expected/amd.js b/test/form/samples/external-imports-custom-names-function/_expected/amd.js index ac48d1ffbd1..bc3f1b57e05 100644 --- a/test/form/samples/external-imports-custom-names-function/_expected/amd.js +++ b/test/form/samples/external-imports-custom-names-function/_expected/amd.js @@ -2,4 +2,4 @@ define(['a-b-c'], function (aBC) { 'use strict'; aBC.foo(); -}); \ No newline at end of file +}); diff --git a/test/form/samples/external-imports-custom-names-function/_expected/cjs.js b/test/form/samples/external-imports-custom-names-function/_expected/cjs.js index 58efa9a7967..d574c07db07 100644 --- a/test/form/samples/external-imports-custom-names-function/_expected/cjs.js +++ b/test/form/samples/external-imports-custom-names-function/_expected/cjs.js @@ -2,4 +2,4 @@ var aBC = require('a-b-c'); -aBC.foo(); \ No newline at end of file +aBC.foo(); diff --git a/test/form/samples/external-imports-custom-names-function/_expected/es.js b/test/form/samples/external-imports-custom-names-function/_expected/es.js index cc482cc00fc..b30a3c4f34f 100644 --- a/test/form/samples/external-imports-custom-names-function/_expected/es.js +++ b/test/form/samples/external-imports-custom-names-function/_expected/es.js @@ -1,3 +1,3 @@ import { foo } from 'a-b-c'; -foo(); \ No newline at end of file +foo(); diff --git a/test/form/samples/external-imports-custom-names-function/_expected/system.js b/test/form/samples/external-imports-custom-names-function/_expected/system.js index eaad3c4be20..fcea6a8ddd1 100644 --- a/test/form/samples/external-imports-custom-names-function/_expected/system.js +++ b/test/form/samples/external-imports-custom-names-function/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['a-b-c'], function (exports, module) { +System.register(['a-b-c'], function () { 'use strict'; var foo; return { diff --git a/test/form/samples/external-imports-custom-names/_expected/system.js b/test/form/samples/external-imports-custom-names/_expected/system.js index 4f9b4688e7c..578940cdf31 100644 --- a/test/form/samples/external-imports-custom-names/_expected/system.js +++ b/test/form/samples/external-imports-custom-names/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['jquery'], function (exports, module) { +System.register(['jquery'], function () { 'use strict'; var $; return { diff --git a/test/form/samples/external-imports/_expected/system.js b/test/form/samples/external-imports/_expected/system.js index 68fdf332150..28ea9d1e284 100644 --- a/test/form/samples/external-imports/_expected/system.js +++ b/test/form/samples/external-imports/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['factory', 'baz', 'shipping-port', 'alphabet'], function (exports, module) { +System.register(['factory', 'baz', 'shipping-port', 'alphabet'], function () { 'use strict'; var factory, foo, bar, port, forEach, a, alphabet; return { diff --git a/test/form/samples/external-namespace-and-named/_expected/system.js b/test/form/samples/external-namespace-and-named/_expected/system.js index 35d71274a0a..b5dcc06e593 100644 --- a/test/form/samples/external-namespace-and-named/_expected/system.js +++ b/test/form/samples/external-namespace-and-named/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['foo'], function (exports, module) { +System.register(['foo'], function () { 'use strict'; var foo, blah, bar; return { diff --git a/test/form/samples/external-namespace-reexport/_expected/system.js b/test/form/samples/external-namespace-reexport/_expected/system.js index 735033386b2..a37440ce7a0 100644 --- a/test/form/samples/external-namespace-reexport/_expected/system.js +++ b/test/form/samples/external-namespace-reexport/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['highcharts'], function (exports, module) { +System.register('myBundle', ['highcharts'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/form/samples/for-in-scopes/_expected/system.js b/test/form/samples/for-in-scopes/_expected/system.js index 07f9d5945be..52f00fe4778 100644 --- a/test/form/samples/for-in-scopes/_expected/system.js +++ b/test/form/samples/for-in-scopes/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/for-loop-body-var-declaration/_expected/system.js b/test/form/samples/for-loop-body-var-declaration/_expected/system.js index 58bcb89acd0..5bb134edf03 100644 --- a/test/form/samples/for-loop-body-var-declaration/_expected/system.js +++ b/test/form/samples/for-loop-body-var-declaration/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/for-loop-with-empty-head/_expected/amd.js b/test/form/samples/for-loop-with-empty-head/_expected/amd.js index a07e3e04015..ed463fcf960 100644 --- a/test/form/samples/for-loop-with-empty-head/_expected/amd.js +++ b/test/form/samples/for-loop-with-empty-head/_expected/amd.js @@ -4,4 +4,4 @@ define(function () { 'use strict'; console.log( 42 ); } -}); \ No newline at end of file +}); diff --git a/test/form/samples/for-loop-with-empty-head/_expected/cjs.js b/test/form/samples/for-loop-with-empty-head/_expected/cjs.js index f94dff7da87..b6b92afa504 100644 --- a/test/form/samples/for-loop-with-empty-head/_expected/cjs.js +++ b/test/form/samples/for-loop-with-empty-head/_expected/cjs.js @@ -2,4 +2,4 @@ for ( ; ; ) { console.log( 42 ); -} \ No newline at end of file +} diff --git a/test/form/samples/for-loop-with-empty-head/_expected/es.js b/test/form/samples/for-loop-with-empty-head/_expected/es.js index 1690f251c70..5e492f8fca9 100644 --- a/test/form/samples/for-loop-with-empty-head/_expected/es.js +++ b/test/form/samples/for-loop-with-empty-head/_expected/es.js @@ -1,3 +1,3 @@ for ( ; ; ) { console.log( 42 ); -} \ No newline at end of file +} diff --git a/test/form/samples/for-loop-with-empty-head/_expected/system.js b/test/form/samples/for-loop-with-empty-head/_expected/system.js index 5416b76ab89..14aba10ca6e 100644 --- a/test/form/samples/for-loop-with-empty-head/_expected/system.js +++ b/test/form/samples/for-loop-with-empty-head/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/for-of-scopes/_expected/system.js b/test/form/samples/for-of-scopes/_expected/system.js index df570325cc8..7c11c39d154 100644 --- a/test/form/samples/for-of-scopes/_expected/system.js +++ b/test/form/samples/for-of-scopes/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/for-scopes/_expected/system.js b/test/form/samples/for-scopes/_expected/system.js index 3c0ae109172..7a467a415a5 100644 --- a/test/form/samples/for-scopes/_expected/system.js +++ b/test/form/samples/for-scopes/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/freeze/_expected/system.js b/test/form/samples/freeze/_expected/system.js index 23c1857816b..2e6511500f9 100644 --- a/test/form/samples/freeze/_expected/system.js +++ b/test/form/samples/freeze/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/function-body-return-values/_expected/system.js b/test/form/samples/function-body-return-values/_expected/system.js index 002d37c5b58..02b25682ac7 100644 --- a/test/form/samples/function-body-return-values/_expected/system.js +++ b/test/form/samples/function-body-return-values/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/function-call-parameters/_expected/system.js b/test/form/samples/function-call-parameters/_expected/system.js index 29b2d94edea..506151effa4 100644 --- a/test/form/samples/function-call-parameters/_expected/system.js +++ b/test/form/samples/function-call-parameters/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/function-mutation/_expected/system.js b/test/form/samples/function-mutation/_expected/system.js index e18ed6553d3..84a75118444 100644 --- a/test/form/samples/function-mutation/_expected/system.js +++ b/test/form/samples/function-mutation/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/function-scopes/_expected/system.js b/test/form/samples/function-scopes/_expected/system.js index 37d8980c976..2f36e9fa173 100644 --- a/test/form/samples/function-scopes/_expected/system.js +++ b/test/form/samples/function-scopes/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/getter-return-values/_expected/system.js b/test/form/samples/getter-return-values/_expected/system.js index ead8c560d69..ee214c148b6 100644 --- a/test/form/samples/getter-return-values/_expected/system.js +++ b/test/form/samples/getter-return-values/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/globals-removes-access-to-pure-function-members/_expected/system.js b/test/form/samples/globals-removes-access-to-pure-function-members/_expected/system.js index 4fdc34ea52b..92cece42c40 100644 --- a/test/form/samples/globals-removes-access-to-pure-function-members/_expected/system.js +++ b/test/form/samples/globals-removes-access-to-pure-function-members/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/ignore-property-access-side-effects/_expected/system.js b/test/form/samples/ignore-property-access-side-effects/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/ignore-property-access-side-effects/_expected/system.js +++ b/test/form/samples/ignore-property-access-side-effects/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/implicit-undefined-assignments/_expected/system.js b/test/form/samples/implicit-undefined-assignments/_expected/system.js index 7907f4d32d7..7a66925a24b 100644 --- a/test/form/samples/implicit-undefined-assignments/_expected/system.js +++ b/test/form/samples/implicit-undefined-assignments/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/import-external-namespace-and-default/_expected/system.js b/test/form/samples/import-external-namespace-and-default/_expected/system.js index 08bcb7b5892..b9513d3d6fa 100644 --- a/test/form/samples/import-external-namespace-and-default/_expected/system.js +++ b/test/form/samples/import-external-namespace-and-default/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['foo'], function (exports, module) { +System.register(['foo'], function () { 'use strict'; var bar, foo__default; return { diff --git a/test/form/samples/import-named-exported-global-with-alias/_expected/amd.js b/test/form/samples/import-named-exported-global-with-alias/_expected/amd.js index ec759b11cba..f9f8229aa40 100644 --- a/test/form/samples/import-named-exported-global-with-alias/_expected/amd.js +++ b/test/form/samples/import-named-exported-global-with-alias/_expected/amd.js @@ -2,4 +2,4 @@ define(function () { 'use strict'; -}); \ No newline at end of file +}); diff --git a/test/form/samples/import-named-exported-global-with-alias/_expected/es.js b/test/form/samples/import-named-exported-global-with-alias/_expected/es.js index e69de29bb2d..8b137891791 100644 --- a/test/form/samples/import-named-exported-global-with-alias/_expected/es.js +++ b/test/form/samples/import-named-exported-global-with-alias/_expected/es.js @@ -0,0 +1 @@ + diff --git a/test/form/samples/import-named-exported-global-with-alias/_expected/system.js b/test/form/samples/import-named-exported-global-with-alias/_expected/system.js index 7d3eac1648b..1b75f66aa19 100644 --- a/test/form/samples/import-named-exported-global-with-alias/_expected/system.js +++ b/test/form/samples/import-named-exported-global-with-alias/_expected/system.js @@ -1,4 +1,4 @@ -System.register('doc', [], function (exports, module) { +System.register('doc', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/import-namespace/_expected/system.js b/test/form/samples/import-namespace/_expected/system.js index b491858339b..bf595be40d7 100644 --- a/test/form/samples/import-namespace/_expected/system.js +++ b/test/form/samples/import-namespace/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['foo', 'bar'], function (exports, module) { +System.register(['foo', 'bar'], function () { 'use strict'; var x, bar; return { diff --git a/test/form/samples/import-specifier-deshadowing/_expected/system.js b/test/form/samples/import-specifier-deshadowing/_expected/system.js index 1e45c67cb31..0838a092911 100644 --- a/test/form/samples/import-specifier-deshadowing/_expected/system.js +++ b/test/form/samples/import-specifier-deshadowing/_expected/system.js @@ -1,4 +1,4 @@ -System.register('Sticky', ['react-sticky'], function (exports, module) { +System.register('Sticky', ['react-sticky'], function (exports) { 'use strict'; var Sticky$1; return { diff --git a/test/form/samples/includes-all-namespace-declarations/_expected/amd.js b/test/form/samples/includes-all-namespace-declarations/_expected/amd.js index ec759b11cba..f9f8229aa40 100644 --- a/test/form/samples/includes-all-namespace-declarations/_expected/amd.js +++ b/test/form/samples/includes-all-namespace-declarations/_expected/amd.js @@ -2,4 +2,4 @@ define(function () { 'use strict'; -}); \ No newline at end of file +}); diff --git a/test/form/samples/includes-all-namespace-declarations/_expected/es.js b/test/form/samples/includes-all-namespace-declarations/_expected/es.js index e69de29bb2d..8b137891791 100644 --- a/test/form/samples/includes-all-namespace-declarations/_expected/es.js +++ b/test/form/samples/includes-all-namespace-declarations/_expected/es.js @@ -0,0 +1 @@ + diff --git a/test/form/samples/includes-all-namespace-declarations/_expected/system.js b/test/form/samples/includes-all-namespace-declarations/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/includes-all-namespace-declarations/_expected/system.js +++ b/test/form/samples/includes-all-namespace-declarations/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/indent-false/_expected/system.js b/test/form/samples/indent-false/_expected/system.js index 72517233451..d33c79d42ef 100644 --- a/test/form/samples/indent-false/_expected/system.js +++ b/test/form/samples/indent-false/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo', [], function (exports, module) { +System.register('foo', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/indent-spaces/_expected/system.js b/test/form/samples/indent-spaces/_expected/system.js index 001951bc35d..982f2203547 100644 --- a/test/form/samples/indent-spaces/_expected/system.js +++ b/test/form/samples/indent-spaces/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo', [], function (exports, module) { +System.register('foo', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/indent-true-spaces/_expected/system.js b/test/form/samples/indent-true-spaces/_expected/system.js index 2cca3c840c9..399f876f681 100644 --- a/test/form/samples/indent-true-spaces/_expected/system.js +++ b/test/form/samples/indent-true-spaces/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo', [], function (exports, module) { +System.register('foo', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/indent-true/_expected/system.js b/test/form/samples/indent-true/_expected/system.js index ab55fb1b86a..d2f4ed5b9c5 100644 --- a/test/form/samples/indent-true/_expected/system.js +++ b/test/form/samples/indent-true/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo', [], function (exports, module) { +System.register('foo', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/inlined-treeshaken-dynamic-import/_expected/system.js b/test/form/samples/inlined-treeshaken-dynamic-import/_expected/system.js index ba798b19101..c83499bc2d4 100644 --- a/test/form/samples/inlined-treeshaken-dynamic-import/_expected/system.js +++ b/test/form/samples/inlined-treeshaken-dynamic-import/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/internal-conflict-resolution/_expected/system.js b/test/form/samples/internal-conflict-resolution/_expected/system.js index 35dbcf8d2f8..9ff3c0f580c 100644 --- a/test/form/samples/internal-conflict-resolution/_expected/system.js +++ b/test/form/samples/internal-conflict-resolution/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/interop-false-reexport/_expected/system.js b/test/form/samples/interop-false-reexport/_expected/system.js index 79d34ebdb71..413b2e7423c 100644 --- a/test/form/samples/interop-false-reexport/_expected/system.js +++ b/test/form/samples/interop-false-reexport/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo', ['external'], function (exports, module) { +System.register('foo', ['external'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/form/samples/interop-false/_expected/system.js b/test/form/samples/interop-false/_expected/system.js index 61008f56280..6063c9dfb22 100644 --- a/test/form/samples/interop-false/_expected/system.js +++ b/test/form/samples/interop-false/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo', ['core/view'], function (exports, module) { +System.register('foo', ['core/view'], function (exports) { 'use strict'; var View; return { diff --git a/test/form/samples/intro-and-outro/_expected/system.js b/test/form/samples/intro-and-outro/_expected/system.js index f82c05aac69..dd50ce74f96 100644 --- a/test/form/samples/intro-and-outro/_expected/system.js +++ b/test/form/samples/intro-and-outro/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo', ['external'], function (exports, module) { +System.register('foo', ['external'], function (exports) { 'use strict'; var a, b; return { diff --git a/test/form/samples/json-parse-is-not-pure/_expected/system.js b/test/form/samples/json-parse-is-not-pure/_expected/system.js index e7df837e51c..e3ad17667ec 100644 --- a/test/form/samples/json-parse-is-not-pure/_expected/system.js +++ b/test/form/samples/json-parse-is-not-pure/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/json-stringify-is-not-pure/_expected/system.js b/test/form/samples/json-stringify-is-not-pure/_expected/system.js index 7616020c294..2b241dd2fe9 100644 --- a/test/form/samples/json-stringify-is-not-pure/_expected/system.js +++ b/test/form/samples/json-stringify-is-not-pure/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/keep-property-access-side-effects/_expected/system.js b/test/form/samples/keep-property-access-side-effects/_expected/system.js index 0b5719b4021..96a402eb727 100644 --- a/test/form/samples/keep-property-access-side-effects/_expected/system.js +++ b/test/form/samples/keep-property-access-side-effects/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/labeled-break-statements/_expected/system.js b/test/form/samples/labeled-break-statements/_expected/system.js index e642be32143..bf402c28ba8 100644 --- a/test/form/samples/labeled-break-statements/_expected/system.js +++ b/test/form/samples/labeled-break-statements/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/mjs/_expected/system.js b/test/form/samples/mjs/_expected/system.js index 8db94279d22..63fddcd8acf 100644 --- a/test/form/samples/mjs/_expected/system.js +++ b/test/form/samples/mjs/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/modify-export-semi/_expected/system.js b/test/form/samples/modify-export-semi/_expected/system.js index 7469df8b59a..1362736a2ba 100644 --- a/test/form/samples/modify-export-semi/_expected/system.js +++ b/test/form/samples/modify-export-semi/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/module-name-scoped-package/_expected/system.js b/test/form/samples/module-name-scoped-package/_expected/system.js index f1371523ebb..108c8452186 100644 --- a/test/form/samples/module-name-scoped-package/_expected/system.js +++ b/test/form/samples/module-name-scoped-package/_expected/system.js @@ -1,4 +1,4 @@ -System.register('@scoped/npm-package', [], function (exports, module) { +System.register('@scoped/npm-package', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/module-name-wat/_expected/system.js b/test/form/samples/module-name-wat/_expected/system.js index 6f273f15148..3c99ddb52d0 100644 --- a/test/form/samples/module-name-wat/_expected/system.js +++ b/test/form/samples/module-name-wat/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo.@scoped/npm-package.bar.why-would-you-do-this', [], function (exports, module) { +System.register('foo.@scoped/npm-package.bar.why-would-you-do-this', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/module-name-with-dashes/_expected/system.js b/test/form/samples/module-name-with-dashes/_expected/system.js index 728859648f9..7bc269a7391 100644 --- a/test/form/samples/module-name-with-dashes/_expected/system.js +++ b/test/form/samples/module-name-with-dashes/_expected/system.js @@ -1,4 +1,4 @@ -System.register('module-name-with-dashes', [], function (exports, module) { +System.register('module-name-with-dashes', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/multiple-exports/_expected/system.js b/test/form/samples/multiple-exports/_expected/system.js index 410036cca45..55a7bebb24c 100644 --- a/test/form/samples/multiple-exports/_expected/system.js +++ b/test/form/samples/multiple-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/mutate-logical-expression/_expected/system.js b/test/form/samples/mutate-logical-expression/_expected/system.js index 4ce5b67bca7..ff4e7b3145d 100644 --- a/test/form/samples/mutate-logical-expression/_expected/system.js +++ b/test/form/samples/mutate-logical-expression/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/mutations-in-imports/_expected/system.js b/test/form/samples/mutations-in-imports/_expected/system.js index b83b171b84f..8198e7221cb 100644 --- a/test/form/samples/mutations-in-imports/_expected/system.js +++ b/test/form/samples/mutations-in-imports/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/namespace-import-reexport/_expected/system.js b/test/form/samples/namespace-import-reexport/_expected/system.js index 15b63f0fd51..73fc2930465 100644 --- a/test/form/samples/namespace-import-reexport/_expected/system.js +++ b/test/form/samples/namespace-import-reexport/_expected/system.js @@ -1,4 +1,4 @@ -System.register('iife', ['external-package'], function (exports, module) { +System.register('iife', ['external-package'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/form/samples/namespace-object-import/_expected/system.js b/test/form/samples/namespace-object-import/_expected/system.js index 736bef6a486..16852da03f6 100644 --- a/test/form/samples/namespace-object-import/_expected/system.js +++ b/test/form/samples/namespace-object-import/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/namespace-optimization-b/_expected/system.js b/test/form/samples/namespace-optimization-b/_expected/system.js index b7c4eebd1f1..cf59616b698 100644 --- a/test/form/samples/namespace-optimization-b/_expected/system.js +++ b/test/form/samples/namespace-optimization-b/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/namespace-optimization-computed-string/_expected/system.js b/test/form/samples/namespace-optimization-computed-string/_expected/system.js index 239cd7845fa..0a24cf9de27 100644 --- a/test/form/samples/namespace-optimization-computed-string/_expected/system.js +++ b/test/form/samples/namespace-optimization-computed-string/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/namespace-optimization/_expected/system.js b/test/form/samples/namespace-optimization/_expected/system.js index 79de3974f08..dacc31b2984 100644 --- a/test/form/samples/namespace-optimization/_expected/system.js +++ b/test/form/samples/namespace-optimization/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/namespace-self-import/_expected/system.js b/test/form/samples/namespace-self-import/_expected/system.js index 086d12383e9..730eabb5996 100644 --- a/test/form/samples/namespace-self-import/_expected/system.js +++ b/test/form/samples/namespace-self-import/_expected/system.js @@ -1,4 +1,4 @@ -System.register('iife', [], function (exports, module) { +System.register('iife', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/namespace-tostringtag/_expected/system.js b/test/form/samples/namespace-tostringtag/_expected/system.js index 36439e28fa5..272997644a1 100644 --- a/test/form/samples/namespace-tostringtag/_expected/system.js +++ b/test/form/samples/namespace-tostringtag/_expected/system.js @@ -1,4 +1,4 @@ -System.register('iife', [], function (exports, module) { +System.register('iife', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/namespaced-default-exports/_expected/amd.js b/test/form/samples/namespaced-default-exports/_expected/amd.js index 70cc3c422f0..37d25711e09 100644 --- a/test/form/samples/namespaced-default-exports/_expected/amd.js +++ b/test/form/samples/namespaced-default-exports/_expected/amd.js @@ -4,4 +4,4 @@ define(function () { 'use strict'; return main; -}); \ No newline at end of file +}); diff --git a/test/form/samples/namespaced-default-exports/_expected/cjs.js b/test/form/samples/namespaced-default-exports/_expected/cjs.js index cc51dcb54a2..5a370cdb174 100644 --- a/test/form/samples/namespaced-default-exports/_expected/cjs.js +++ b/test/form/samples/namespaced-default-exports/_expected/cjs.js @@ -2,4 +2,4 @@ var main = 42; -module.exports = main; \ No newline at end of file +module.exports = main; diff --git a/test/form/samples/namespaced-default-exports/_expected/es.js b/test/form/samples/namespaced-default-exports/_expected/es.js index b953a15176f..d862de816a3 100644 --- a/test/form/samples/namespaced-default-exports/_expected/es.js +++ b/test/form/samples/namespaced-default-exports/_expected/es.js @@ -1,3 +1,3 @@ var main = 42; -export default main; \ No newline at end of file +export default main; diff --git a/test/form/samples/namespaced-default-exports/_expected/system.js b/test/form/samples/namespaced-default-exports/_expected/system.js index 89bbe24d72c..e6a02565ef7 100644 --- a/test/form/samples/namespaced-default-exports/_expected/system.js +++ b/test/form/samples/namespaced-default-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo.bar.baz', [], function (exports, module) { +System.register('foo.bar.baz', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/namespaced-named-exports/_expected/es.js b/test/form/samples/namespaced-named-exports/_expected/es.js index e590d7b473b..4f57049a39e 100644 --- a/test/form/samples/namespaced-named-exports/_expected/es.js +++ b/test/form/samples/namespaced-named-exports/_expected/es.js @@ -1,3 +1,3 @@ var answer = 42; -export { answer }; \ No newline at end of file +export { answer }; diff --git a/test/form/samples/namespaced-named-exports/_expected/system.js b/test/form/samples/namespaced-named-exports/_expected/system.js index a1c02db4e9a..cd79c05caff 100644 --- a/test/form/samples/namespaced-named-exports/_expected/system.js +++ b/test/form/samples/namespaced-named-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('foo.bar.baz', [], function (exports, module) { +System.register('foo.bar.baz', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/nested-member-access/_expected/system.js b/test/form/samples/nested-member-access/_expected/system.js index 3d78f60a5b7..128aa4eaf6c 100644 --- a/test/form/samples/nested-member-access/_expected/system.js +++ b/test/form/samples/nested-member-access/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/nested-this-expressions/_expected/system.js b/test/form/samples/nested-this-expressions/_expected/system.js index f58acce176e..39035c4ad15 100644 --- a/test/form/samples/nested-this-expressions/_expected/system.js +++ b/test/form/samples/nested-this-expressions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/nested-tree-shaking/_expected/system.js b/test/form/samples/nested-tree-shaking/_expected/system.js index 1dfae1bceda..43b7708400e 100644 --- a/test/form/samples/nested-tree-shaking/_expected/system.js +++ b/test/form/samples/nested-tree-shaking/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/no-imports-or-exports/_expected/system.js b/test/form/samples/no-imports-or-exports/_expected/system.js index 04404721314..5bee7fdd063 100644 --- a/test/form/samples/no-imports-or-exports/_expected/system.js +++ b/test/form/samples/no-imports-or-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/no-treeshake-conflict/_expected/system.js b/test/form/samples/no-treeshake-conflict/_expected/system.js index 1c2e64e36d5..47d24981f04 100644 --- a/test/form/samples/no-treeshake-conflict/_expected/system.js +++ b/test/form/samples/no-treeshake-conflict/_expected/system.js @@ -1,4 +1,4 @@ -System.register('stirred', [], function (exports, module) { +System.register('stirred', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/no-treeshake/_expected/system.js b/test/form/samples/no-treeshake/_expected/system.js index 426db5b89f8..ba8701af20f 100644 --- a/test/form/samples/no-treeshake/_expected/system.js +++ b/test/form/samples/no-treeshake/_expected/system.js @@ -1,4 +1,4 @@ -System.register('stirred', ['external'], function (exports, module) { +System.register('stirred', ['external'], function (exports) { 'use strict'; var value; return { diff --git a/test/form/samples/non-empty-block-statement/_expected/system.js b/test/form/samples/non-empty-block-statement/_expected/system.js index 3a642039aae..782deaeb872 100644 --- a/test/form/samples/non-empty-block-statement/_expected/system.js +++ b/test/form/samples/non-empty-block-statement/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/object-destructuring-default-values/_expected/amd.js b/test/form/samples/object-destructuring-default-values/_expected/amd.js index e3d2006b0b9..257a7650a63 100644 --- a/test/form/samples/object-destructuring-default-values/_expected/amd.js +++ b/test/form/samples/object-destructuring-default-values/_expected/amd.js @@ -6,4 +6,4 @@ define(function () { 'use strict'; const [ d = b ] = []; console.log(c, d); -}); \ No newline at end of file +}); diff --git a/test/form/samples/object-destructuring-default-values/_expected/cjs.js b/test/form/samples/object-destructuring-default-values/_expected/cjs.js index b6918f00623..73adfaee4cd 100644 --- a/test/form/samples/object-destructuring-default-values/_expected/cjs.js +++ b/test/form/samples/object-destructuring-default-values/_expected/cjs.js @@ -4,4 +4,4 @@ const a = 1; const b = 2; const { c = a } = {}; const [ d = b ] = []; -console.log(c, d); \ No newline at end of file +console.log(c, d); diff --git a/test/form/samples/object-destructuring-default-values/_expected/system.js b/test/form/samples/object-destructuring-default-values/_expected/system.js index 615d5ee3408..e5b25902b2a 100644 --- a/test/form/samples/object-destructuring-default-values/_expected/system.js +++ b/test/form/samples/object-destructuring-default-values/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/object-literal-property-overwrites/_expected/system.js b/test/form/samples/object-literal-property-overwrites/_expected/system.js index da3d430a8fe..6c6aca94483 100644 --- a/test/form/samples/object-literal-property-overwrites/_expected/system.js +++ b/test/form/samples/object-literal-property-overwrites/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/output-named-library/_expected/system.js b/test/form/samples/output-named-library/_expected/system.js index fa3a653d65d..c4835fad6ef 100644 --- a/test/form/samples/output-named-library/_expected/system.js +++ b/test/form/samples/output-named-library/_expected/system.js @@ -1,4 +1,4 @@ -System.register('libraryName', [], function (exports, module) { +System.register('libraryName', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/paths-function/_expected/system.js b/test/form/samples/paths-function/_expected/system.js index b8ba357e9e3..b2566c416a3 100644 --- a/test/form/samples/paths-function/_expected/system.js +++ b/test/form/samples/paths-function/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['https://unpkg.com/foo'], function (exports, module) { +System.register(['https://unpkg.com/foo'], function () { 'use strict'; var foo; return { diff --git a/test/form/samples/paths-relative/_expected/system.js b/test/form/samples/paths-relative/_expected/system.js index d1da7918fa2..7c4aa9446e3 100644 --- a/test/form/samples/paths-relative/_expected/system.js +++ b/test/form/samples/paths-relative/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['../foo'], function (exports, module) { +System.register(['../foo'], function () { 'use strict'; var foo; return { diff --git a/test/form/samples/paths/_expected/system.js b/test/form/samples/paths/_expected/system.js index b8ba357e9e3..b2566c416a3 100644 --- a/test/form/samples/paths/_expected/system.js +++ b/test/form/samples/paths/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['https://unpkg.com/foo'], function (exports, module) { +System.register(['https://unpkg.com/foo'], function () { 'use strict'; var foo; return { diff --git a/test/form/samples/pattern-assignments/_expected/system.js b/test/form/samples/pattern-assignments/_expected/system.js index 19dbf992a3f..caae6eaa4fa 100644 --- a/test/form/samples/pattern-assignments/_expected/system.js +++ b/test/form/samples/pattern-assignments/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/pattern-member-expressions/_expected/system.js b/test/form/samples/pattern-member-expressions/_expected/system.js index 397eec1dab8..a7a3b1fef94 100644 --- a/test/form/samples/pattern-member-expressions/_expected/system.js +++ b/test/form/samples/pattern-member-expressions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/prefer-const/_expected/system.js b/test/form/samples/prefer-const/_expected/system.js index 2db9dc5fc6f..c0f85eb7134 100644 --- a/test/form/samples/prefer-const/_expected/system.js +++ b/test/form/samples/prefer-const/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['other'], function (exports, module) { +System.register('myBundle', ['other'], function (exports) { 'use strict'; var name; return { diff --git a/test/form/samples/preserve-debugger/_expected/system.js b/test/form/samples/preserve-debugger/_expected/system.js index b6b78072bed..b49364f074c 100644 --- a/test/form/samples/preserve-debugger/_expected/system.js +++ b/test/form/samples/preserve-debugger/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/preserves-comments-after-imports/_expected/system.js b/test/form/samples/preserves-comments-after-imports/_expected/system.js index 70bcccf28d9..7a62df55a8d 100644 --- a/test/form/samples/preserves-comments-after-imports/_expected/system.js +++ b/test/form/samples/preserves-comments-after-imports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/promises/_expected/system.js b/test/form/samples/promises/_expected/system.js index ecae2456d16..5a251e99037 100644 --- a/test/form/samples/promises/_expected/system.js +++ b/test/form/samples/promises/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/proper-this-context/_expected/system.js b/test/form/samples/proper-this-context/_expected/system.js index 4e5c75cf446..dd471b6a438 100644 --- a/test/form/samples/proper-this-context/_expected/system.js +++ b/test/form/samples/proper-this-context/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/prototype-functions/_expected/system.js b/test/form/samples/prototype-functions/_expected/system.js index a8f3795a788..32d2532cd06 100644 --- a/test/form/samples/prototype-functions/_expected/system.js +++ b/test/form/samples/prototype-functions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/prune-pure-unused-import-array/_expected/system.js b/test/form/samples/prune-pure-unused-import-array/_expected/system.js index f776f92ba75..44f1ac2d34d 100644 --- a/test/form/samples/prune-pure-unused-import-array/_expected/system.js +++ b/test/form/samples/prune-pure-unused-import-array/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['other'], function (exports, module) { +System.register(['other'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/form/samples/prune-pure-unused-import-function/_expected/system.js b/test/form/samples/prune-pure-unused-import-function/_expected/system.js index f776f92ba75..44f1ac2d34d 100644 --- a/test/form/samples/prune-pure-unused-import-function/_expected/system.js +++ b/test/form/samples/prune-pure-unused-import-function/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['other'], function (exports, module) { +System.register(['other'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/form/samples/prune-pure-unused-import/_expected/es.js b/test/form/samples/prune-pure-unused-import/_expected/es.js index e69de29bb2d..8b137891791 100644 --- a/test/form/samples/prune-pure-unused-import/_expected/es.js +++ b/test/form/samples/prune-pure-unused-import/_expected/es.js @@ -0,0 +1 @@ + diff --git a/test/form/samples/prune-pure-unused-import/_expected/system.js b/test/form/samples/prune-pure-unused-import/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/prune-pure-unused-import/_expected/system.js +++ b/test/form/samples/prune-pure-unused-import/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/re-export-aliasing/_expected/system.js b/test/form/samples/re-export-aliasing/_expected/system.js index 0e01b15678a..8e40d215211 100644 --- a/test/form/samples/re-export-aliasing/_expected/system.js +++ b/test/form/samples/re-export-aliasing/_expected/system.js @@ -1,4 +1,4 @@ -System.register('reexportsAliasingExternal', ['d'], function (exports, module) { +System.register('reexportsAliasingExternal', ['d'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/form/samples/re-export-default-external-as-default/_expected/system.js b/test/form/samples/re-export-default-external-as-default/_expected/system.js index ea3d45de194..5e411938e62 100644 --- a/test/form/samples/re-export-default-external-as-default/_expected/system.js +++ b/test/form/samples/re-export-default-external-as-default/_expected/system.js @@ -1,4 +1,4 @@ -System.register('reexportsDefaultExternalAsDefault', ['external'], function (exports, module) { +System.register('reexportsDefaultExternalAsDefault', ['external'], function (exports) { 'use strict'; var _starExcludes = { default: 1 }; return { diff --git a/test/form/samples/re-export-default-external/_expected/system.js b/test/form/samples/re-export-default-external/_expected/system.js index 08997bd0c35..f36d2e27e7f 100644 --- a/test/form/samples/re-export-default-external/_expected/system.js +++ b/test/form/samples/re-export-default-external/_expected/system.js @@ -1,4 +1,4 @@ -System.register('reexportsDefaultExternal', ['external'], function (exports, module) { +System.register('reexportsDefaultExternal', ['external'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/form/samples/reassigned-exported-functions-and-classes/_expected/system.js b/test/form/samples/reassigned-exported-functions-and-classes/_expected/system.js index 2335695aff8..a1e5425461f 100644 --- a/test/form/samples/reassigned-exported-functions-and-classes/_expected/system.js +++ b/test/form/samples/reassigned-exported-functions-and-classes/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/recursive-assignments/_expected/system.js b/test/form/samples/recursive-assignments/_expected/system.js index c9d8c094fa1..17e2926482e 100644 --- a/test/form/samples/recursive-assignments/_expected/system.js +++ b/test/form/samples/recursive-assignments/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/recursive-calls/_expected/system.js b/test/form/samples/recursive-calls/_expected/system.js index 0ae6c14a5a4..7f307d0e5e6 100644 --- a/test/form/samples/recursive-calls/_expected/system.js +++ b/test/form/samples/recursive-calls/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/redeclarations/_expected/system.js b/test/form/samples/redeclarations/_expected/system.js index 197cdbab353..0f707b66b62 100644 --- a/test/form/samples/redeclarations/_expected/system.js +++ b/test/form/samples/redeclarations/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/reexport-star-deshadow/_expected/system.js b/test/form/samples/reexport-star-deshadow/_expected/system.js index 96cae578834..c74d1764326 100644 --- a/test/form/samples/reexport-star-deshadow/_expected/system.js +++ b/test/form/samples/reexport-star-deshadow/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/reexports-from-external/_expected/system.js b/test/form/samples/reexports-from-external/_expected/system.js index b487acd9635..a2b08322d73 100644 --- a/test/form/samples/reexports-from-external/_expected/system.js +++ b/test/form/samples/reexports-from-external/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['external'], function (exports, module) { +System.register('myBundle', ['external'], function (exports) { 'use strict'; var _starExcludes = { default: 1 }; return { diff --git a/test/form/samples/reexports-name-from-external/_expected/system.js b/test/form/samples/reexports-name-from-external/_expected/system.js index 84f09d52a14..dbb57734310 100644 --- a/test/form/samples/reexports-name-from-external/_expected/system.js +++ b/test/form/samples/reexports-name-from-external/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', ['external'], function (exports, module) { +System.register('myBundle', ['external'], function (exports) { 'use strict'; return { setters: [function (module) { diff --git a/test/form/samples/relative-external-with-global/_expected/system.js b/test/form/samples/relative-external-with-global/_expected/system.js index 43c64d545d3..f862a5e4fed 100644 --- a/test/form/samples/relative-external-with-global/_expected/system.js +++ b/test/form/samples/relative-external-with-global/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['./lib/throttle.js'], function (exports, module) { +System.register(['./lib/throttle.js'], function () { 'use strict'; var throttle; return { diff --git a/test/form/samples/removes-existing-sourcemap-comments/_expected/system.js b/test/form/samples/removes-existing-sourcemap-comments/_expected/system.js index 86d35369277..05a84a854a8 100644 --- a/test/form/samples/removes-existing-sourcemap-comments/_expected/system.js +++ b/test/form/samples/removes-existing-sourcemap-comments/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/removes-unused-babel-helpers/_expected/system.js b/test/form/samples/removes-unused-babel-helpers/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/removes-unused-babel-helpers/_expected/system.js +++ b/test/form/samples/removes-unused-babel-helpers/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/render-chunk-plugin-sourcemaps/_expected/amd.js b/test/form/samples/render-chunk-plugin-sourcemaps/_expected/amd.js index 35f6b228249..40d9d28be13 100644 --- a/test/form/samples/render-chunk-plugin-sourcemaps/_expected/amd.js +++ b/test/form/samples/render-chunk-plugin-sourcemaps/_expected/amd.js @@ -1,3 +1,3 @@ /* first plugin */ /* second plugin */ -//# sourceMappingURL=amd.js.map \ No newline at end of file +//# sourceMappingURL=amd.js.map diff --git a/test/form/samples/render-chunk-plugin-sourcemaps/_expected/cjs.js b/test/form/samples/render-chunk-plugin-sourcemaps/_expected/cjs.js index 2ce65d03fe6..5203e4edf11 100644 --- a/test/form/samples/render-chunk-plugin-sourcemaps/_expected/cjs.js +++ b/test/form/samples/render-chunk-plugin-sourcemaps/_expected/cjs.js @@ -1,3 +1,3 @@ /* first plugin */ /* second plugin */ -//# sourceMappingURL=cjs.js.map \ No newline at end of file +//# sourceMappingURL=cjs.js.map diff --git a/test/form/samples/render-chunk-plugin-sourcemaps/_expected/es.js b/test/form/samples/render-chunk-plugin-sourcemaps/_expected/es.js index 1701a1f5de6..68320f9d1c4 100644 --- a/test/form/samples/render-chunk-plugin-sourcemaps/_expected/es.js +++ b/test/form/samples/render-chunk-plugin-sourcemaps/_expected/es.js @@ -1,3 +1,3 @@ /* first plugin */ /* second plugin */ -//# sourceMappingURL=es.js.map \ No newline at end of file +//# sourceMappingURL=es.js.map diff --git a/test/form/samples/render-chunk-plugin-sourcemaps/_expected/system.js b/test/form/samples/render-chunk-plugin-sourcemaps/_expected/system.js index fb84593465a..62e3708a937 100644 --- a/test/form/samples/render-chunk-plugin-sourcemaps/_expected/system.js +++ b/test/form/samples/render-chunk-plugin-sourcemaps/_expected/system.js @@ -1,3 +1,3 @@ /* first plugin */ /* second plugin */ -//# sourceMappingURL=system.js.map \ No newline at end of file +//# sourceMappingURL=system.js.map diff --git a/test/form/samples/render-chunk-plugin/_expected/amd.js b/test/form/samples/render-chunk-plugin/_expected/amd.js index f783236effa..6dd9ebb24b6 100644 --- a/test/form/samples/render-chunk-plugin/_expected/amd.js +++ b/test/form/samples/render-chunk-plugin/_expected/amd.js @@ -1,2 +1,2 @@ /* first plugin */ -/* second plugin */ \ No newline at end of file +/* second plugin */ diff --git a/test/form/samples/render-chunk-plugin/_expected/cjs.js b/test/form/samples/render-chunk-plugin/_expected/cjs.js index f783236effa..6dd9ebb24b6 100644 --- a/test/form/samples/render-chunk-plugin/_expected/cjs.js +++ b/test/form/samples/render-chunk-plugin/_expected/cjs.js @@ -1,2 +1,2 @@ /* first plugin */ -/* second plugin */ \ No newline at end of file +/* second plugin */ diff --git a/test/form/samples/render-chunk-plugin/_expected/es.js b/test/form/samples/render-chunk-plugin/_expected/es.js index f783236effa..6dd9ebb24b6 100644 --- a/test/form/samples/render-chunk-plugin/_expected/es.js +++ b/test/form/samples/render-chunk-plugin/_expected/es.js @@ -1,2 +1,2 @@ /* first plugin */ -/* second plugin */ \ No newline at end of file +/* second plugin */ diff --git a/test/form/samples/render-declaration-semicolons/_expected/system.js b/test/form/samples/render-declaration-semicolons/_expected/system.js index 1a2416f9e5d..a6cb60bd425 100644 --- a/test/form/samples/render-declaration-semicolons/_expected/system.js +++ b/test/form/samples/render-declaration-semicolons/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/render-named-export-declarations/_expected/system.js b/test/form/samples/render-named-export-declarations/_expected/system.js index 92258a60e00..d47c490a381 100644 --- a/test/form/samples/render-named-export-declarations/_expected/system.js +++ b/test/form/samples/render-named-export-declarations/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/render-removed-declarations/_expected/system.js b/test/form/samples/render-removed-declarations/_expected/system.js index a1a235e4b64..4deb6153b6a 100644 --- a/test/form/samples/render-removed-declarations/_expected/system.js +++ b/test/form/samples/render-removed-declarations/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/render-removed-statements/_expected/system.js b/test/form/samples/render-removed-statements/_expected/system.js index 5b9e7f6ea5c..d79206de699 100644 --- a/test/form/samples/render-removed-statements/_expected/system.js +++ b/test/form/samples/render-removed-statements/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/self-calling-function-with-effects/_expected/amd.js b/test/form/samples/self-calling-function-with-effects/_expected/amd.js index ad714bdbe72..b70b6a4090f 100644 --- a/test/form/samples/self-calling-function-with-effects/_expected/amd.js +++ b/test/form/samples/self-calling-function-with-effects/_expected/amd.js @@ -17,4 +17,4 @@ define(function () { 'use strict'; foo( 10 ); bar( 10 ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/self-calling-function-with-effects/_expected/cjs.js b/test/form/samples/self-calling-function-with-effects/_expected/cjs.js index 83a7a207b11..fc3a2cedafa 100644 --- a/test/form/samples/self-calling-function-with-effects/_expected/cjs.js +++ b/test/form/samples/self-calling-function-with-effects/_expected/cjs.js @@ -15,4 +15,4 @@ function baz ( x ) { } foo( 10 ); -bar( 10 ); \ No newline at end of file +bar( 10 ); diff --git a/test/form/samples/self-calling-function-with-effects/_expected/es.js b/test/form/samples/self-calling-function-with-effects/_expected/es.js index 8e997b2d54c..7ec54d93035 100644 --- a/test/form/samples/self-calling-function-with-effects/_expected/es.js +++ b/test/form/samples/self-calling-function-with-effects/_expected/es.js @@ -13,4 +13,4 @@ function baz ( x ) { } foo( 10 ); -bar( 10 ); \ No newline at end of file +bar( 10 ); diff --git a/test/form/samples/self-calling-function-with-effects/_expected/system.js b/test/form/samples/self-calling-function-with-effects/_expected/system.js index 18549f2c9b5..136d136277f 100644 --- a/test/form/samples/self-calling-function-with-effects/_expected/system.js +++ b/test/form/samples/self-calling-function-with-effects/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/self-calling-function/_expected/amd.js b/test/form/samples/self-calling-function/_expected/amd.js index ec759b11cba..f9f8229aa40 100644 --- a/test/form/samples/self-calling-function/_expected/amd.js +++ b/test/form/samples/self-calling-function/_expected/amd.js @@ -2,4 +2,4 @@ define(function () { 'use strict'; -}); \ No newline at end of file +}); diff --git a/test/form/samples/self-calling-function/_expected/es.js b/test/form/samples/self-calling-function/_expected/es.js index e69de29bb2d..8b137891791 100644 --- a/test/form/samples/self-calling-function/_expected/es.js +++ b/test/form/samples/self-calling-function/_expected/es.js @@ -0,0 +1 @@ + diff --git a/test/form/samples/self-calling-function/_expected/system.js b/test/form/samples/self-calling-function/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/self-calling-function/_expected/system.js +++ b/test/form/samples/self-calling-function/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/self-contained-bundle/_expected/system.js b/test/form/samples/self-contained-bundle/_expected/system.js index dcbd93e4a9f..305cacd0c55 100644 --- a/test/form/samples/self-contained-bundle/_expected/system.js +++ b/test/form/samples/self-contained-bundle/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/sequence-expression/_expected/cjs.js b/test/form/samples/sequence-expression/_expected/cjs.js index aae14522bca..fc804d04282 100644 --- a/test/form/samples/sequence-expression/_expected/cjs.js +++ b/test/form/samples/sequence-expression/_expected/cjs.js @@ -20,6 +20,6 @@ var e = (foo$1()); var g = ((() => {console.log(foo$1());})(), 1); // should maintain this context -var module$1 = {}; -module$1.bar = function () { console.log( 'bar' );}; -var h = (0, module$1.bar)(); +var module = {}; +module.bar = function () { console.log( 'bar' );}; +var h = (0, module.bar)(); diff --git a/test/form/samples/sequence-expression/_expected/system.js b/test/form/samples/sequence-expression/_expected/system.js index b8cc9f0b2f2..d404e1bcf36 100644 --- a/test/form/samples/sequence-expression/_expected/system.js +++ b/test/form/samples/sequence-expression/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/shorthand-properties/_expected/system.js b/test/form/samples/shorthand-properties/_expected/system.js index e28bc0377db..75d979feb4f 100644 --- a/test/form/samples/shorthand-properties/_expected/system.js +++ b/test/form/samples/shorthand-properties/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-b/_expected/amd.js b/test/form/samples/side-effect-b/_expected/amd.js index 70cc3c422f0..37d25711e09 100644 --- a/test/form/samples/side-effect-b/_expected/amd.js +++ b/test/form/samples/side-effect-b/_expected/amd.js @@ -4,4 +4,4 @@ define(function () { 'use strict'; return main; -}); \ No newline at end of file +}); diff --git a/test/form/samples/side-effect-b/_expected/cjs.js b/test/form/samples/side-effect-b/_expected/cjs.js index cc51dcb54a2..5a370cdb174 100644 --- a/test/form/samples/side-effect-b/_expected/cjs.js +++ b/test/form/samples/side-effect-b/_expected/cjs.js @@ -2,4 +2,4 @@ var main = 42; -module.exports = main; \ No newline at end of file +module.exports = main; diff --git a/test/form/samples/side-effect-b/_expected/es.js b/test/form/samples/side-effect-b/_expected/es.js index b953a15176f..d862de816a3 100644 --- a/test/form/samples/side-effect-b/_expected/es.js +++ b/test/form/samples/side-effect-b/_expected/es.js @@ -1,3 +1,3 @@ var main = 42; -export default main; \ No newline at end of file +export default main; diff --git a/test/form/samples/side-effect-b/_expected/system.js b/test/form/samples/side-effect-b/_expected/system.js index b29981439a3..28ccfcd3c31 100644 --- a/test/form/samples/side-effect-b/_expected/system.js +++ b/test/form/samples/side-effect-b/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-c/_expected/amd.js b/test/form/samples/side-effect-c/_expected/amd.js index 70cc3c422f0..37d25711e09 100644 --- a/test/form/samples/side-effect-c/_expected/amd.js +++ b/test/form/samples/side-effect-c/_expected/amd.js @@ -4,4 +4,4 @@ define(function () { 'use strict'; return main; -}); \ No newline at end of file +}); diff --git a/test/form/samples/side-effect-c/_expected/cjs.js b/test/form/samples/side-effect-c/_expected/cjs.js index cc51dcb54a2..5a370cdb174 100644 --- a/test/form/samples/side-effect-c/_expected/cjs.js +++ b/test/form/samples/side-effect-c/_expected/cjs.js @@ -2,4 +2,4 @@ var main = 42; -module.exports = main; \ No newline at end of file +module.exports = main; diff --git a/test/form/samples/side-effect-c/_expected/es.js b/test/form/samples/side-effect-c/_expected/es.js index b953a15176f..d862de816a3 100644 --- a/test/form/samples/side-effect-c/_expected/es.js +++ b/test/form/samples/side-effect-c/_expected/es.js @@ -1,3 +1,3 @@ var main = 42; -export default main; \ No newline at end of file +export default main; diff --git a/test/form/samples/side-effect-c/_expected/system.js b/test/form/samples/side-effect-c/_expected/system.js index b29981439a3..28ccfcd3c31 100644 --- a/test/form/samples/side-effect-c/_expected/system.js +++ b/test/form/samples/side-effect-c/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-d/_expected/system.js b/test/form/samples/side-effect-d/_expected/system.js index b29981439a3..28ccfcd3c31 100644 --- a/test/form/samples/side-effect-d/_expected/system.js +++ b/test/form/samples/side-effect-d/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-e/_expected/system.js b/test/form/samples/side-effect-e/_expected/system.js index e6fbca5ce04..ac747455856 100644 --- a/test/form/samples/side-effect-e/_expected/system.js +++ b/test/form/samples/side-effect-e/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-es5-classes/_expected/system.js b/test/form/samples/side-effect-es5-classes/_expected/system.js index 98edc0c09aa..1dad62d66f6 100644 --- a/test/form/samples/side-effect-es5-classes/_expected/system.js +++ b/test/form/samples/side-effect-es5-classes/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-f/_expected/system.js b/test/form/samples/side-effect-f/_expected/system.js index b29981439a3..28ccfcd3c31 100644 --- a/test/form/samples/side-effect-f/_expected/system.js +++ b/test/form/samples/side-effect-f/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-g/_expected/system.js b/test/form/samples/side-effect-g/_expected/system.js index b29981439a3..28ccfcd3c31 100644 --- a/test/form/samples/side-effect-g/_expected/system.js +++ b/test/form/samples/side-effect-g/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-h/_expected/system.js b/test/form/samples/side-effect-h/_expected/system.js index 5bde78716a6..e30fa03b847 100644 --- a/test/form/samples/side-effect-h/_expected/system.js +++ b/test/form/samples/side-effect-h/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-i/_expected/system.js b/test/form/samples/side-effect-i/_expected/system.js index 50f4cba1213..4ac8c0a2760 100644 --- a/test/form/samples/side-effect-i/_expected/system.js +++ b/test/form/samples/side-effect-i/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-j/_expected/amd.js b/test/form/samples/side-effect-j/_expected/amd.js index d5adfc95f6a..0640671db1e 100644 --- a/test/form/samples/side-effect-j/_expected/amd.js +++ b/test/form/samples/side-effect-j/_expected/amd.js @@ -8,4 +8,4 @@ define(function () { 'use strict'; return x; -}); \ No newline at end of file +}); diff --git a/test/form/samples/side-effect-j/_expected/cjs.js b/test/form/samples/side-effect-j/_expected/cjs.js index e00c6bd812a..ba3008134a0 100644 --- a/test/form/samples/side-effect-j/_expected/cjs.js +++ b/test/form/samples/side-effect-j/_expected/cjs.js @@ -6,4 +6,4 @@ augment = x => x.augmented = true; function x () {} augment( x ); -module.exports = x; \ No newline at end of file +module.exports = x; diff --git a/test/form/samples/side-effect-j/_expected/es.js b/test/form/samples/side-effect-j/_expected/es.js index b01df9b05fb..80f969bea62 100644 --- a/test/form/samples/side-effect-j/_expected/es.js +++ b/test/form/samples/side-effect-j/_expected/es.js @@ -4,4 +4,4 @@ augment = x => x.augmented = true; function x () {} augment( x ); -export default x; \ No newline at end of file +export default x; diff --git a/test/form/samples/side-effect-j/_expected/system.js b/test/form/samples/side-effect-j/_expected/system.js index 841e8a2525a..9a3b6c947d9 100644 --- a/test/form/samples/side-effect-j/_expected/system.js +++ b/test/form/samples/side-effect-j/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-k/_expected/system.js b/test/form/samples/side-effect-k/_expected/system.js index 25a490d72b5..628b4b702c0 100644 --- a/test/form/samples/side-effect-k/_expected/system.js +++ b/test/form/samples/side-effect-k/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-l/_expected/cjs.js b/test/form/samples/side-effect-l/_expected/cjs.js index ad9a93a7c16..eb109abbed0 100644 --- a/test/form/samples/side-effect-l/_expected/cjs.js +++ b/test/form/samples/side-effect-l/_expected/cjs.js @@ -1 +1,2 @@ 'use strict'; + diff --git a/test/form/samples/side-effect-l/_expected/es.js b/test/form/samples/side-effect-l/_expected/es.js index e69de29bb2d..8b137891791 100644 --- a/test/form/samples/side-effect-l/_expected/es.js +++ b/test/form/samples/side-effect-l/_expected/es.js @@ -0,0 +1 @@ + diff --git a/test/form/samples/side-effect-l/_expected/system.js b/test/form/samples/side-effect-l/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/side-effect-l/_expected/system.js +++ b/test/form/samples/side-effect-l/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-m/_expected/system.js b/test/form/samples/side-effect-m/_expected/system.js index edbb0ea9ab8..cef1ed8aeac 100644 --- a/test/form/samples/side-effect-m/_expected/system.js +++ b/test/form/samples/side-effect-m/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-n/_expected/amd.js b/test/form/samples/side-effect-n/_expected/amd.js index 22e9a23da81..3aef0ed3bd5 100644 --- a/test/form/samples/side-effect-n/_expected/amd.js +++ b/test/form/samples/side-effect-n/_expected/amd.js @@ -10,4 +10,4 @@ define(function () { 'use strict'; ( Math.random() < 0.5 ? foo : bar )(); -}); \ No newline at end of file +}); diff --git a/test/form/samples/side-effect-n/_expected/cjs.js b/test/form/samples/side-effect-n/_expected/cjs.js index 5a79e817f88..aabf1a7ab9d 100644 --- a/test/form/samples/side-effect-n/_expected/cjs.js +++ b/test/form/samples/side-effect-n/_expected/cjs.js @@ -8,4 +8,4 @@ function bar () { console.log( 'bar' ); } -( Math.random() < 0.5 ? foo : bar )(); \ No newline at end of file +( Math.random() < 0.5 ? foo : bar )(); diff --git a/test/form/samples/side-effect-n/_expected/es.js b/test/form/samples/side-effect-n/_expected/es.js index 47c774377be..8610c02986e 100644 --- a/test/form/samples/side-effect-n/_expected/es.js +++ b/test/form/samples/side-effect-n/_expected/es.js @@ -6,4 +6,4 @@ function bar () { console.log( 'bar' ); } -( Math.random() < 0.5 ? foo : bar )(); \ No newline at end of file +( Math.random() < 0.5 ? foo : bar )(); diff --git a/test/form/samples/side-effect-n/_expected/system.js b/test/form/samples/side-effect-n/_expected/system.js index 8491cf94981..9a55c34654d 100644 --- a/test/form/samples/side-effect-n/_expected/system.js +++ b/test/form/samples/side-effect-n/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-o/_expected/amd.js b/test/form/samples/side-effect-o/_expected/amd.js index 7989486af6c..77451d5312d 100644 --- a/test/form/samples/side-effect-o/_expected/amd.js +++ b/test/form/samples/side-effect-o/_expected/amd.js @@ -14,4 +14,4 @@ define(function () { 'use strict'; fn()(); -}); \ No newline at end of file +}); diff --git a/test/form/samples/side-effect-o/_expected/cjs.js b/test/form/samples/side-effect-o/_expected/cjs.js index 35653595a59..42541eae835 100644 --- a/test/form/samples/side-effect-o/_expected/cjs.js +++ b/test/form/samples/side-effect-o/_expected/cjs.js @@ -12,4 +12,4 @@ function bar () { console.log( 'bar' ); } -fn()(); \ No newline at end of file +fn()(); diff --git a/test/form/samples/side-effect-o/_expected/es.js b/test/form/samples/side-effect-o/_expected/es.js index 93ed395c50e..621b55d8ca4 100644 --- a/test/form/samples/side-effect-o/_expected/es.js +++ b/test/form/samples/side-effect-o/_expected/es.js @@ -10,4 +10,4 @@ function bar () { console.log( 'bar' ); } -fn()(); \ No newline at end of file +fn()(); diff --git a/test/form/samples/side-effect-o/_expected/system.js b/test/form/samples/side-effect-o/_expected/system.js index c634bdf1214..a9640953e43 100644 --- a/test/form/samples/side-effect-o/_expected/system.js +++ b/test/form/samples/side-effect-o/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-p/_expected/system.js b/test/form/samples/side-effect-p/_expected/system.js index 2fc47247905..2a88bc1907b 100644 --- a/test/form/samples/side-effect-p/_expected/system.js +++ b/test/form/samples/side-effect-p/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-q/_expected/amd.js b/test/form/samples/side-effect-q/_expected/amd.js index ec759b11cba..f9f8229aa40 100644 --- a/test/form/samples/side-effect-q/_expected/amd.js +++ b/test/form/samples/side-effect-q/_expected/amd.js @@ -2,4 +2,4 @@ define(function () { 'use strict'; -}); \ No newline at end of file +}); diff --git a/test/form/samples/side-effect-q/_expected/es.js b/test/form/samples/side-effect-q/_expected/es.js index e69de29bb2d..8b137891791 100644 --- a/test/form/samples/side-effect-q/_expected/es.js +++ b/test/form/samples/side-effect-q/_expected/es.js @@ -0,0 +1 @@ + diff --git a/test/form/samples/side-effect-q/_expected/system.js b/test/form/samples/side-effect-q/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/side-effect-q/_expected/system.js +++ b/test/form/samples/side-effect-q/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-r/_expected/system.js b/test/form/samples/side-effect-r/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/side-effect-r/_expected/system.js +++ b/test/form/samples/side-effect-r/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-s/_expected/system.js b/test/form/samples/side-effect-s/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/side-effect-s/_expected/system.js +++ b/test/form/samples/side-effect-s/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-t/_expected/system.js b/test/form/samples/side-effect-t/_expected/system.js index c37b84667a8..14ed53c895f 100644 --- a/test/form/samples/side-effect-t/_expected/system.js +++ b/test/form/samples/side-effect-t/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect-with-plusplus-expression/_expected/system.js b/test/form/samples/side-effect-with-plusplus-expression/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/side-effect-with-plusplus-expression/_expected/system.js +++ b/test/form/samples/side-effect-with-plusplus-expression/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effect/_expected/system.js b/test/form/samples/side-effect/_expected/system.js index 8ab95396a5f..8aa51d50450 100644 --- a/test/form/samples/side-effect/_expected/system.js +++ b/test/form/samples/side-effect/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-await/_expected/system.js b/test/form/samples/side-effects-await/_expected/system.js index 64e355b2c22..f433b86b319 100644 --- a/test/form/samples/side-effects-await/_expected/system.js +++ b/test/form/samples/side-effects-await/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-break-statements/_expected/system.js b/test/form/samples/side-effects-break-statements/_expected/system.js index 9df13ff2b7e..3bd9c2c8d1e 100644 --- a/test/form/samples/side-effects-break-statements/_expected/system.js +++ b/test/form/samples/side-effects-break-statements/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-call-arguments/_expected/system.js b/test/form/samples/side-effects-call-arguments/_expected/system.js index b5d40096427..5cda537c9ea 100644 --- a/test/form/samples/side-effects-call-arguments/_expected/system.js +++ b/test/form/samples/side-effects-call-arguments/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-computed-pattern-keys/_expected/system.js b/test/form/samples/side-effects-computed-pattern-keys/_expected/system.js index 6e1fc098679..71ff3eff218 100644 --- a/test/form/samples/side-effects-computed-pattern-keys/_expected/system.js +++ b/test/form/samples/side-effects-computed-pattern-keys/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-delete/_expected/system.js b/test/form/samples/side-effects-delete/_expected/system.js index 4ffa49b1d35..5b24ca5821a 100644 --- a/test/form/samples/side-effects-delete/_expected/system.js +++ b/test/form/samples/side-effects-delete/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-es6-class-declarations/_expected/system.js b/test/form/samples/side-effects-es6-class-declarations/_expected/system.js index 560a13e4691..28eab7e98ec 100644 --- a/test/form/samples/side-effects-es6-class-declarations/_expected/system.js +++ b/test/form/samples/side-effects-es6-class-declarations/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-es6-class-expressions/_expected/system.js b/test/form/samples/side-effects-es6-class-expressions/_expected/system.js index 8d3a6a6bf38..c4d624d7077 100644 --- a/test/form/samples/side-effects-es6-class-expressions/_expected/system.js +++ b/test/form/samples/side-effects-es6-class-expressions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-es6-super-classes/_expected/system.js b/test/form/samples/side-effects-es6-super-classes/_expected/system.js index 81bee02814b..e89e51dedb0 100644 --- a/test/form/samples/side-effects-es6-super-classes/_expected/system.js +++ b/test/form/samples/side-effects-es6-super-classes/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-expressions-as-statements/_expected/system.js b/test/form/samples/side-effects-expressions-as-statements/_expected/system.js index 5d0dc96a94a..e0e2649dd3e 100644 --- a/test/form/samples/side-effects-expressions-as-statements/_expected/system.js +++ b/test/form/samples/side-effects-expressions-as-statements/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-generators/_expected/system.js b/test/form/samples/side-effects-generators/_expected/system.js index db630fcebf6..3874292e885 100644 --- a/test/form/samples/side-effects-generators/_expected/system.js +++ b/test/form/samples/side-effects-generators/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-getters-and-setters/_expected/system.js b/test/form/samples/side-effects-getters-and-setters/_expected/system.js index 1d3684e16c8..8e7f7660637 100644 --- a/test/form/samples/side-effects-getters-and-setters/_expected/system.js +++ b/test/form/samples/side-effects-getters-and-setters/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-in-template-literals/_expected/system.js b/test/form/samples/side-effects-in-template-literals/_expected/system.js index 796ced57b85..fefc9b90a87 100644 --- a/test/form/samples/side-effects-in-template-literals/_expected/system.js +++ b/test/form/samples/side-effects-in-template-literals/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-logical-expressions/_expected/system.js b/test/form/samples/side-effects-logical-expressions/_expected/system.js index 0dfe5230c86..404947a2235 100644 --- a/test/form/samples/side-effects-logical-expressions/_expected/system.js +++ b/test/form/samples/side-effects-logical-expressions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-object-literal-calls/_expected/system.js b/test/form/samples/side-effects-object-literal-calls/_expected/system.js index e01181775af..26d757a0f66 100644 --- a/test/form/samples/side-effects-object-literal-calls/_expected/system.js +++ b/test/form/samples/side-effects-object-literal-calls/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-object-literal-mutation/_expected/system.js b/test/form/samples/side-effects-object-literal-mutation/_expected/system.js index 26acefe6725..547c993047c 100644 --- a/test/form/samples/side-effects-object-literal-mutation/_expected/system.js +++ b/test/form/samples/side-effects-object-literal-mutation/_expected/system.js @@ -1,4 +1,4 @@ -System.register('bundle', [], function (exports, module) { +System.register('bundle', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-parameter-defaults/_expected/system.js b/test/form/samples/side-effects-parameter-defaults/_expected/system.js index 50cd2ac937f..d4501ce0bed 100644 --- a/test/form/samples/side-effects-parameter-defaults/_expected/system.js +++ b/test/form/samples/side-effects-parameter-defaults/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-pattern-assignment/_expected/system.js b/test/form/samples/side-effects-pattern-assignment/_expected/system.js index b68126bca5c..edcecf4d5f9 100644 --- a/test/form/samples/side-effects-pattern-assignment/_expected/system.js +++ b/test/form/samples/side-effects-pattern-assignment/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-pattern-defaults/_expected/system.js b/test/form/samples/side-effects-pattern-defaults/_expected/system.js index eed6c49cc7d..1780eb25d3a 100644 --- a/test/form/samples/side-effects-pattern-defaults/_expected/system.js +++ b/test/form/samples/side-effects-pattern-defaults/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-prototype-assignments/_expected/system.js b/test/form/samples/side-effects-prototype-assignments/_expected/system.js index b621b4e85c7..7048215019d 100644 --- a/test/form/samples/side-effects-prototype-assignments/_expected/system.js +++ b/test/form/samples/side-effects-prototype-assignments/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-reassignment/_expected/system.js b/test/form/samples/side-effects-reassignment/_expected/system.js index 23274d8f1c2..8c7b33a508a 100644 --- a/test/form/samples/side-effects-reassignment/_expected/system.js +++ b/test/form/samples/side-effects-reassignment/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-return-statements/_expected/system.js b/test/form/samples/side-effects-return-statements/_expected/system.js index ea6e604a038..8883f155e33 100644 --- a/test/form/samples/side-effects-return-statements/_expected/system.js +++ b/test/form/samples/side-effects-return-statements/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/side-effects-switch-statements/_expected/system.js b/test/form/samples/side-effects-switch-statements/_expected/system.js index 25e84f01f00..ae86e4931f4 100644 --- a/test/form/samples/side-effects-switch-statements/_expected/system.js +++ b/test/form/samples/side-effects-switch-statements/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches-b/_expected/system.js b/test/form/samples/skips-dead-branches-b/_expected/system.js index d7878203177..606d00fb15e 100644 --- a/test/form/samples/skips-dead-branches-b/_expected/system.js +++ b/test/form/samples/skips-dead-branches-b/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches-c/_expected/system.js b/test/form/samples/skips-dead-branches-c/_expected/system.js index 720db127b25..add436161ef 100644 --- a/test/form/samples/skips-dead-branches-c/_expected/system.js +++ b/test/form/samples/skips-dead-branches-c/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches-d/_expected/system.js b/test/form/samples/skips-dead-branches-d/_expected/system.js index 720db127b25..add436161ef 100644 --- a/test/form/samples/skips-dead-branches-d/_expected/system.js +++ b/test/form/samples/skips-dead-branches-d/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches-e/_expected/system.js b/test/form/samples/skips-dead-branches-e/_expected/system.js index 720db127b25..add436161ef 100644 --- a/test/form/samples/skips-dead-branches-e/_expected/system.js +++ b/test/form/samples/skips-dead-branches-e/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches-f/_expected/system.js b/test/form/samples/skips-dead-branches-f/_expected/system.js index 720db127b25..add436161ef 100644 --- a/test/form/samples/skips-dead-branches-f/_expected/system.js +++ b/test/form/samples/skips-dead-branches-f/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches-g/_expected/system.js b/test/form/samples/skips-dead-branches-g/_expected/system.js index 493c45bbbfd..4e6202bcb10 100644 --- a/test/form/samples/skips-dead-branches-g/_expected/system.js +++ b/test/form/samples/skips-dead-branches-g/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches-h/_expected/system.js b/test/form/samples/skips-dead-branches-h/_expected/system.js index abcab5b3614..b77aee1930b 100644 --- a/test/form/samples/skips-dead-branches-h/_expected/system.js +++ b/test/form/samples/skips-dead-branches-h/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches-i/_expected/system.js b/test/form/samples/skips-dead-branches-i/_expected/system.js index abcab5b3614..b77aee1930b 100644 --- a/test/form/samples/skips-dead-branches-i/_expected/system.js +++ b/test/form/samples/skips-dead-branches-i/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches-j/_expected/system.js b/test/form/samples/skips-dead-branches-j/_expected/system.js index 6f129c3503a..4385dfef9fd 100644 --- a/test/form/samples/skips-dead-branches-j/_expected/system.js +++ b/test/form/samples/skips-dead-branches-j/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/skips-dead-branches/_expected/amd.js b/test/form/samples/skips-dead-branches/_expected/amd.js index 9dc50f528f3..c192900373e 100644 --- a/test/form/samples/skips-dead-branches/_expected/amd.js +++ b/test/form/samples/skips-dead-branches/_expected/amd.js @@ -6,4 +6,4 @@ define(function () { 'use strict'; bar(); -}); \ No newline at end of file +}); diff --git a/test/form/samples/skips-dead-branches/_expected/cjs.js b/test/form/samples/skips-dead-branches/_expected/cjs.js index d6aa952d0e6..b3e974bb4e6 100644 --- a/test/form/samples/skips-dead-branches/_expected/cjs.js +++ b/test/form/samples/skips-dead-branches/_expected/cjs.js @@ -4,4 +4,4 @@ function bar () { console.log( 'this should be included' ); } -bar(); \ No newline at end of file +bar(); diff --git a/test/form/samples/skips-dead-branches/_expected/es.js b/test/form/samples/skips-dead-branches/_expected/es.js index f39bfec65a9..ec9eb20c919 100644 --- a/test/form/samples/skips-dead-branches/_expected/es.js +++ b/test/form/samples/skips-dead-branches/_expected/es.js @@ -2,4 +2,4 @@ function bar () { console.log( 'this should be included' ); } -bar(); \ No newline at end of file +bar(); diff --git a/test/form/samples/skips-dead-branches/_expected/system.js b/test/form/samples/skips-dead-branches/_expected/system.js index d7878203177..606d00fb15e 100644 --- a/test/form/samples/skips-dead-branches/_expected/system.js +++ b/test/form/samples/skips-dead-branches/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/sourcemaps-excludesources/_expected/system.js b/test/form/samples/sourcemaps-excludesources/_expected/system.js index 8aecfb6e3c7..0e5a1020f81 100644 --- a/test/form/samples/sourcemaps-excludesources/_expected/system.js +++ b/test/form/samples/sourcemaps-excludesources/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/sourcemaps-excludesources/_expected/umd.js.map b/test/form/samples/sourcemaps-excludesources/_expected/umd.js.map index 5add4081f0d..ccb4df61289 100644 --- a/test/form/samples/sourcemaps-excludesources/_expected/umd.js.map +++ b/test/form/samples/sourcemaps-excludesources/_expected/umd.js.map @@ -1 +1 @@ -{"version":3,"file":"umd.js","sources":["../foo.js","../bar.js","../main.js"],"sourcesContent":null,"names":[],"mappings":";;;;;CAAe,SAAS,GAAG,IAAI;CAC/B,CAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,EAAE,CAAC;CACpC,CAAC;;CCFc,SAAS,GAAG,IAAI;CAC/B,CAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,EAAE,CAAC;CACpC,CAAC;;CCCD,OAAO,CAAC,GAAG,EAAE,oBAAoB,EAAE,CAAC;;CAEpC,GAAG,EAAE,CAAC;CACN,GAAG,EAAE,CAAC;;;;"} +{"version":3,"file":"umd.js","sources":["../foo.js","../bar.js","../main.js"],"sourcesContent":null,"names":[],"mappings":";;;;;CAAe,SAAS,GAAG,IAAI;CAC/B,CAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,EAAE,CAAC;CACpC,CAAC;;CCFc,SAAS,GAAG,IAAI;CAC/B,CAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,EAAE,CAAC;CACpC,CAAC;;CCCD,OAAO,CAAC,GAAG,EAAE,oBAAoB,EAAE,CAAC;;CAEpC,GAAG,EAAE,CAAC;CACN,GAAG,EAAE,CAAC;;;;"} \ No newline at end of file diff --git a/test/form/samples/sourcemaps-external/_expected/system.js b/test/form/samples/sourcemaps-external/_expected/system.js index 8aecfb6e3c7..0e5a1020f81 100644 --- a/test/form/samples/sourcemaps-external/_expected/system.js +++ b/test/form/samples/sourcemaps-external/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/sourcemaps-inline/_expected/system.js b/test/form/samples/sourcemaps-inline/_expected/system.js index 0b79ea351f3..9120e15a1b3 100644 --- a/test/form/samples/sourcemaps-inline/_expected/system.js +++ b/test/form/samples/sourcemaps-inline/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/spacing-after-function-with-semicolon/_expected/system.js b/test/form/samples/spacing-after-function-with-semicolon/_expected/system.js index a54289f71e1..6aaf80d1aca 100644 --- a/test/form/samples/spacing-after-function-with-semicolon/_expected/system.js +++ b/test/form/samples/spacing-after-function-with-semicolon/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/string-indentation-b/_expected/system.js b/test/form/samples/string-indentation-b/_expected/system.js index 40a5c584479..89acd2e8859 100644 --- a/test/form/samples/string-indentation-b/_expected/system.js +++ b/test/form/samples/string-indentation-b/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/string-indentation/_expected/cjs.js b/test/form/samples/string-indentation/_expected/cjs.js index 28ec0cb32b2..99ff87f2519 100644 --- a/test/form/samples/string-indentation/_expected/cjs.js +++ b/test/form/samples/string-indentation/_expected/cjs.js @@ -15,4 +15,4 @@ var d = `1 assert.equal( a, '1\n 2' ); assert.equal( b, '1\n\t2' ); assert.equal( c, '1\n 2' ); -assert.equal( d, '1\n\t2' ); \ No newline at end of file +assert.equal( d, '1\n\t2' ); diff --git a/test/form/samples/string-indentation/_expected/es.js b/test/form/samples/string-indentation/_expected/es.js index bf5c6fb3632..d4378fef75e 100644 --- a/test/form/samples/string-indentation/_expected/es.js +++ b/test/form/samples/string-indentation/_expected/es.js @@ -13,4 +13,4 @@ var d = `1 assert.equal( a, '1\n 2' ); assert.equal( b, '1\n\t2' ); assert.equal( c, '1\n 2' ); -assert.equal( d, '1\n\t2' ); \ No newline at end of file +assert.equal( d, '1\n\t2' ); diff --git a/test/form/samples/string-indentation/_expected/system.js b/test/form/samples/string-indentation/_expected/system.js index 6c87826e855..7985b867682 100644 --- a/test/form/samples/string-indentation/_expected/system.js +++ b/test/form/samples/string-indentation/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/switch-scopes/_expected/system.js b/test/form/samples/switch-scopes/_expected/system.js index 986aaec78ab..673438e124c 100644 --- a/test/form/samples/switch-scopes/_expected/system.js +++ b/test/form/samples/switch-scopes/_expected/system.js @@ -1,4 +1,4 @@ -System.register('myBundle', [], function (exports, module) { +System.register('myBundle', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/system-comments/_expected.js b/test/form/samples/system-comments/_expected.js index 837165aa54a..ebbc413f5d4 100644 --- a/test/form/samples/system-comments/_expected.js +++ b/test/form/samples/system-comments/_expected.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/system-default-comments/_expected.js b/test/form/samples/system-default-comments/_expected.js index c6c6af7bbd0..e2da4be4ac2 100644 --- a/test/form/samples/system-default-comments/_expected.js +++ b/test/form/samples/system-default-comments/_expected.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/system-export-destructuring-assignment/_expected.js b/test/form/samples/system-export-destructuring-assignment/_expected.js index d4efb012846..49da6bf0fca 100644 --- a/test/form/samples/system-export-destructuring-assignment/_expected.js +++ b/test/form/samples/system-export-destructuring-assignment/_expected.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/system-export-destructuring-declaration/_expected.js b/test/form/samples/system-export-destructuring-declaration/_expected.js index 32d922fd76f..1c0d8059eba 100644 --- a/test/form/samples/system-export-destructuring-declaration/_expected.js +++ b/test/form/samples/system-export-destructuring-declaration/_expected.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/system-semicolon/_expected.js b/test/form/samples/system-semicolon/_expected.js index c64001ae262..c7c7ae0cb9b 100644 --- a/test/form/samples/system-semicolon/_expected.js +++ b/test/form/samples/system-semicolon/_expected.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/system-uninitialized/_expected.js b/test/form/samples/system-uninitialized/_expected.js index 607dc6d9284..15dbebf0095 100644 --- a/test/form/samples/system-uninitialized/_expected.js +++ b/test/form/samples/system-uninitialized/_expected.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/this-in-imports/_expected/system.js b/test/form/samples/this-in-imports/_expected/system.js index fcb09011105..a270949cfad 100644 --- a/test/form/samples/this-in-imports/_expected/system.js +++ b/test/form/samples/this-in-imports/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/this-is-undefined/_expected/system.js b/test/form/samples/this-is-undefined/_expected/system.js index 3f83484543b..cf485fcc549 100644 --- a/test/form/samples/this-is-undefined/_expected/system.js +++ b/test/form/samples/this-is-undefined/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/tla/_expected/system.js b/test/form/samples/tla/_expected/system.js index 1242516a202..c0417be381c 100644 --- a/test/form/samples/tla/_expected/system.js +++ b/test/form/samples/tla/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: async function () { diff --git a/test/form/samples/transform-bundle-plugin-options/_expected/amd.js b/test/form/samples/transform-bundle-plugin-options/_expected/amd.js index 1a4c4375014..7f4650356b2 100644 --- a/test/form/samples/transform-bundle-plugin-options/_expected/amd.js +++ b/test/form/samples/transform-bundle-plugin-options/_expected/amd.js @@ -1 +1 @@ -amd \ No newline at end of file +amd diff --git a/test/form/samples/transform-bundle-plugin-options/_expected/cjs.js b/test/form/samples/transform-bundle-plugin-options/_expected/cjs.js index 8d0deb7e58a..0d69873e8d4 100644 --- a/test/form/samples/transform-bundle-plugin-options/_expected/cjs.js +++ b/test/form/samples/transform-bundle-plugin-options/_expected/cjs.js @@ -1 +1 @@ -cjs \ No newline at end of file +cjs diff --git a/test/form/samples/transform-bundle-plugin-options/_expected/es.js b/test/form/samples/transform-bundle-plugin-options/_expected/es.js index 6c4381495c2..8357fcaaed4 100644 --- a/test/form/samples/transform-bundle-plugin-options/_expected/es.js +++ b/test/form/samples/transform-bundle-plugin-options/_expected/es.js @@ -1 +1 @@ -es \ No newline at end of file +es diff --git a/test/form/samples/transform-bundle-plugin-options/_expected/system.js b/test/form/samples/transform-bundle-plugin-options/_expected/system.js index 5b8201173c8..bec3a35ee8b 100644 --- a/test/form/samples/transform-bundle-plugin-options/_expected/system.js +++ b/test/form/samples/transform-bundle-plugin-options/_expected/system.js @@ -1 +1 @@ -system \ No newline at end of file +system diff --git a/test/form/samples/transform-bundle-plugin/_expected/amd.js b/test/form/samples/transform-bundle-plugin/_expected/amd.js index f783236effa..6dd9ebb24b6 100644 --- a/test/form/samples/transform-bundle-plugin/_expected/amd.js +++ b/test/form/samples/transform-bundle-plugin/_expected/amd.js @@ -1,2 +1,2 @@ /* first plugin */ -/* second plugin */ \ No newline at end of file +/* second plugin */ diff --git a/test/form/samples/transform-bundle-plugin/_expected/cjs.js b/test/form/samples/transform-bundle-plugin/_expected/cjs.js index f783236effa..6dd9ebb24b6 100644 --- a/test/form/samples/transform-bundle-plugin/_expected/cjs.js +++ b/test/form/samples/transform-bundle-plugin/_expected/cjs.js @@ -1,2 +1,2 @@ /* first plugin */ -/* second plugin */ \ No newline at end of file +/* second plugin */ diff --git a/test/form/samples/transform-bundle-plugin/_expected/es.js b/test/form/samples/transform-bundle-plugin/_expected/es.js index f783236effa..6dd9ebb24b6 100644 --- a/test/form/samples/transform-bundle-plugin/_expected/es.js +++ b/test/form/samples/transform-bundle-plugin/_expected/es.js @@ -1,2 +1,2 @@ /* first plugin */ -/* second plugin */ \ No newline at end of file +/* second plugin */ diff --git a/test/form/samples/tree-shake-curried-functions/_expected/system.js b/test/form/samples/tree-shake-curried-functions/_expected/system.js index 3b9098cda90..a702f2b06ef 100644 --- a/test/form/samples/tree-shake-curried-functions/_expected/system.js +++ b/test/form/samples/tree-shake-curried-functions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/tree-shake-default-exports/_expected/system.js b/test/form/samples/tree-shake-default-exports/_expected/system.js index 8c8359f8e7a..adcccabc0b3 100644 --- a/test/form/samples/tree-shake-default-exports/_expected/system.js +++ b/test/form/samples/tree-shake-default-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/tree-shake-if-statements/_expected/system.js b/test/form/samples/tree-shake-if-statements/_expected/system.js index 24614b833cc..f1ee48b7a6d 100644 --- a/test/form/samples/tree-shake-if-statements/_expected/system.js +++ b/test/form/samples/tree-shake-if-statements/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/tree-shake-logical-expressions/_expected/system.js b/test/form/samples/tree-shake-logical-expressions/_expected/system.js index 9f9feec0df7..618c4df9bc3 100644 --- a/test/form/samples/tree-shake-logical-expressions/_expected/system.js +++ b/test/form/samples/tree-shake-logical-expressions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/treeshake-import-meta-props/_config.js b/test/form/samples/treeshake-import-meta-props/_config.js new file mode 100644 index 00000000000..d73457be9b1 --- /dev/null +++ b/test/form/samples/treeshake-import-meta-props/_config.js @@ -0,0 +1,3 @@ +module.exports = { + description: 'also does not include format globals when tree-shaking import meta' +}; diff --git a/test/form/samples/treeshake-import-meta-props/_expected/amd.js b/test/form/samples/treeshake-import-meta-props/_expected/amd.js new file mode 100644 index 00000000000..126aa22ee83 --- /dev/null +++ b/test/form/samples/treeshake-import-meta-props/_expected/amd.js @@ -0,0 +1,5 @@ +define(function () { 'use strict'; + + console.log('main'); + +}); diff --git a/test/form/samples/treeshake-import-meta-props/_expected/cjs.js b/test/form/samples/treeshake-import-meta-props/_expected/cjs.js new file mode 100644 index 00000000000..d0ed06d8c90 --- /dev/null +++ b/test/form/samples/treeshake-import-meta-props/_expected/cjs.js @@ -0,0 +1,3 @@ +'use strict'; + +console.log('main'); diff --git a/test/form/samples/treeshake-import-meta-props/_expected/es.js b/test/form/samples/treeshake-import-meta-props/_expected/es.js new file mode 100644 index 00000000000..c0b933d7b56 --- /dev/null +++ b/test/form/samples/treeshake-import-meta-props/_expected/es.js @@ -0,0 +1 @@ +console.log('main'); diff --git a/test/form/samples/treeshake-import-meta-props/_expected/iife.js b/test/form/samples/treeshake-import-meta-props/_expected/iife.js new file mode 100644 index 00000000000..d283cbce8ba --- /dev/null +++ b/test/form/samples/treeshake-import-meta-props/_expected/iife.js @@ -0,0 +1,6 @@ +(function () { + 'use strict'; + + console.log('main'); + +}()); diff --git a/test/form/samples/treeshake-import-meta-props/_expected/system.js b/test/form/samples/treeshake-import-meta-props/_expected/system.js new file mode 100644 index 00000000000..c83499bc2d4 --- /dev/null +++ b/test/form/samples/treeshake-import-meta-props/_expected/system.js @@ -0,0 +1,10 @@ +System.register([], function () { + 'use strict'; + return { + execute: function () { + + console.log('main'); + + } + }; +}); diff --git a/test/form/samples/treeshake-import-meta-props/_expected/umd.js b/test/form/samples/treeshake-import-meta-props/_expected/umd.js new file mode 100644 index 00000000000..4768f1d9737 --- /dev/null +++ b/test/form/samples/treeshake-import-meta-props/_expected/umd.js @@ -0,0 +1,8 @@ +(function (factory) { + typeof define === 'function' && define.amd ? define(factory) : + factory(); +}(function () { 'use strict'; + + console.log('main'); + +})); diff --git a/test/form/samples/treeshake-import-meta-props/main.js b/test/form/samples/treeshake-import-meta-props/main.js new file mode 100644 index 00000000000..92eac685996 --- /dev/null +++ b/test/form/samples/treeshake-import-meta-props/main.js @@ -0,0 +1,4 @@ +const removed1 = import.meta; +const removed2 = import.meta.url; +const removed3 = import.meta.unknown; +console.log('main'); diff --git a/test/form/samples/umd-noconflict-extend/_expected/es.js b/test/form/samples/umd-noconflict-extend/_expected/es.js index 26bd5fb357e..8d90bde780f 100644 --- a/test/form/samples/umd-noconflict-extend/_expected/es.js +++ b/test/form/samples/umd-noconflict-extend/_expected/es.js @@ -6,4 +6,4 @@ const number = 42; var setting = 'no'; -export { doThings, number, setting }; \ No newline at end of file +export { doThings, number, setting }; diff --git a/test/form/samples/umd-noconflict-extend/_expected/system.js b/test/form/samples/umd-noconflict-extend/_expected/system.js index fcba66b151c..50b3617c196 100644 --- a/test/form/samples/umd-noconflict-extend/_expected/system.js +++ b/test/form/samples/umd-noconflict-extend/_expected/system.js @@ -1,4 +1,4 @@ -System.register('FooBar', [], function (exports, module) { +System.register('FooBar', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/umd-noconflict-namespaced/_expected/es.js b/test/form/samples/umd-noconflict-namespaced/_expected/es.js index 26bd5fb357e..8d90bde780f 100644 --- a/test/form/samples/umd-noconflict-namespaced/_expected/es.js +++ b/test/form/samples/umd-noconflict-namespaced/_expected/es.js @@ -6,4 +6,4 @@ const number = 42; var setting = 'no'; -export { doThings, number, setting }; \ No newline at end of file +export { doThings, number, setting }; diff --git a/test/form/samples/umd-noconflict-namespaced/_expected/system.js b/test/form/samples/umd-noconflict-namespaced/_expected/system.js index 2618b7c97ef..3a0183e00d5 100644 --- a/test/form/samples/umd-noconflict-namespaced/_expected/system.js +++ b/test/form/samples/umd-noconflict-namespaced/_expected/system.js @@ -1,4 +1,4 @@ -System.register('my.name.spaced.module', [], function (exports, module) { +System.register('my.name.spaced.module', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/umd-noconflict-no-exports/_expected/system.js b/test/form/samples/umd-noconflict-no-exports/_expected/system.js index c2c56e78362..04195b57c57 100644 --- a/test/form/samples/umd-noconflict-no-exports/_expected/system.js +++ b/test/form/samples/umd-noconflict-no-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register('FooBar', [], function (exports, module) { +System.register('FooBar', [], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/umd-noconflict/_expected/es.js b/test/form/samples/umd-noconflict/_expected/es.js index 26bd5fb357e..8d90bde780f 100644 --- a/test/form/samples/umd-noconflict/_expected/es.js +++ b/test/form/samples/umd-noconflict/_expected/es.js @@ -6,4 +6,4 @@ const number = 42; var setting = 'no'; -export { doThings, number, setting }; \ No newline at end of file +export { doThings, number, setting }; diff --git a/test/form/samples/umd-noconflict/_expected/system.js b/test/form/samples/umd-noconflict/_expected/system.js index fcba66b151c..50b3617c196 100644 --- a/test/form/samples/umd-noconflict/_expected/system.js +++ b/test/form/samples/umd-noconflict/_expected/system.js @@ -1,4 +1,4 @@ -System.register('FooBar', [], function (exports, module) { +System.register('FooBar', [], function (exports) { 'use strict'; return { execute: function () { diff --git a/test/form/samples/unmodified-default-exports-function-argument/_expected/system.js b/test/form/samples/unmodified-default-exports-function-argument/_expected/system.js index 0f24cc9363c..da6b88baf32 100644 --- a/test/form/samples/unmodified-default-exports-function-argument/_expected/system.js +++ b/test/form/samples/unmodified-default-exports-function-argument/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/unmodified-default-exports/_expected/system.js b/test/form/samples/unmodified-default-exports/_expected/system.js index a43f4befbad..aab59db6fc3 100644 --- a/test/form/samples/unmodified-default-exports/_expected/system.js +++ b/test/form/samples/unmodified-default-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/unused-called-import/_expected/system.js b/test/form/samples/unused-called-import/_expected/system.js index a77e6eac67a..6efccc5fd34 100644 --- a/test/form/samples/unused-called-import/_expected/system.js +++ b/test/form/samples/unused-called-import/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/unused-called-with-side-effects/_expected/system.js b/test/form/samples/unused-called-with-side-effects/_expected/system.js index 8997c6db272..39ac06ae5b5 100644 --- a/test/form/samples/unused-called-with-side-effects/_expected/system.js +++ b/test/form/samples/unused-called-with-side-effects/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/unused-default-exports/_expected/system.js b/test/form/samples/unused-default-exports/_expected/system.js index 15a1e3db184..b739002d779 100644 --- a/test/form/samples/unused-default-exports/_expected/system.js +++ b/test/form/samples/unused-default-exports/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/unused-function-and-class-expressions/_expected/system.js b/test/form/samples/unused-function-and-class-expressions/_expected/system.js index 4a72dfd954a..0151e8d9b48 100644 --- a/test/form/samples/unused-function-and-class-expressions/_expected/system.js +++ b/test/form/samples/unused-function-and-class-expressions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/unused-import/_expected/cjs.js b/test/form/samples/unused-import/_expected/cjs.js index 406151a0603..f5ff6bf96d2 100644 --- a/test/form/samples/unused-import/_expected/cjs.js +++ b/test/form/samples/unused-import/_expected/cjs.js @@ -1,3 +1,4 @@ 'use strict'; require('external'); + diff --git a/test/form/samples/unused-import/_expected/system.js b/test/form/samples/unused-import/_expected/system.js index c86290d04dc..447ae7ee220 100644 --- a/test/form/samples/unused-import/_expected/system.js +++ b/test/form/samples/unused-import/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['external'], function (exports, module) { +System.register(['external'], function () { 'use strict'; return { setters: [function () {}], diff --git a/test/form/samples/unused-inner-functions-and-classes/_expected/system.js b/test/form/samples/unused-inner-functions-and-classes/_expected/system.js index bec008a9b8d..012aeb76037 100644 --- a/test/form/samples/unused-inner-functions-and-classes/_expected/system.js +++ b/test/form/samples/unused-inner-functions-and-classes/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/unused-var/_expected/amd.js b/test/form/samples/unused-var/_expected/amd.js index babb23a74f1..29e6e692419 100644 --- a/test/form/samples/unused-var/_expected/amd.js +++ b/test/form/samples/unused-var/_expected/amd.js @@ -4,4 +4,4 @@ define(function () { 'use strict'; console.log( foo ); -}); \ No newline at end of file +}); diff --git a/test/form/samples/unused-var/_expected/cjs.js b/test/form/samples/unused-var/_expected/cjs.js index 8628267a89b..4e96ed54f4e 100644 --- a/test/form/samples/unused-var/_expected/cjs.js +++ b/test/form/samples/unused-var/_expected/cjs.js @@ -2,4 +2,4 @@ var foo = 'lol'; -console.log( foo ); \ No newline at end of file +console.log( foo ); diff --git a/test/form/samples/unused-var/_expected/es.js b/test/form/samples/unused-var/_expected/es.js index 2e13c7578ab..80d05d27462 100644 --- a/test/form/samples/unused-var/_expected/es.js +++ b/test/form/samples/unused-var/_expected/es.js @@ -1,3 +1,3 @@ var foo = 'lol'; -console.log( foo ); \ No newline at end of file +console.log( foo ); diff --git a/test/form/samples/unused-var/_expected/system.js b/test/form/samples/unused-var/_expected/system.js index 30f2d22760c..29f4d12cf84 100644 --- a/test/form/samples/unused-var/_expected/system.js +++ b/test/form/samples/unused-var/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/update-expression-side-effects/_expected/system.js b/test/form/samples/update-expression-side-effects/_expected/system.js index fa335561c0c..b21da97ab35 100644 --- a/test/form/samples/update-expression-side-effects/_expected/system.js +++ b/test/form/samples/update-expression-side-effects/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/url-external/_expected/system.js b/test/form/samples/url-external/_expected/system.js index 06f93f9b92c..43a69cb5dfd 100644 --- a/test/form/samples/url-external/_expected/system.js +++ b/test/form/samples/url-external/_expected/system.js @@ -1,4 +1,4 @@ -System.register(['https://external.com/external.js'], function (exports, module) { +System.register(['https://external.com/external.js'], function () { 'use strict'; var external; return { diff --git a/test/form/samples/use-global-map-for-export-name/_expected/system.js b/test/form/samples/use-global-map-for-export-name/_expected/system.js index b79d0f30149..213c132f814 100644 --- a/test/form/samples/use-global-map-for-export-name/_expected/system.js +++ b/test/form/samples/use-global-map-for-export-name/_expected/system.js @@ -1,4 +1,4 @@ -System.register('leaflet.terminator', ['leaflet'], function (exports, module) { +System.register('leaflet.terminator', ['leaflet'], function () { 'use strict'; var L; return { diff --git a/test/form/samples/whitespace-around-namespace-member-expression/_expected/amd.js b/test/form/samples/whitespace-around-namespace-member-expression/_expected/amd.js index 00fa37b77d0..144665ac4d9 100644 --- a/test/form/samples/whitespace-around-namespace-member-expression/_expected/amd.js +++ b/test/form/samples/whitespace-around-namespace-member-expression/_expected/amd.js @@ -6,4 +6,4 @@ define(function () { 'use strict'; yar(); -}); \ No newline at end of file +}); diff --git a/test/form/samples/whitespace-around-namespace-member-expression/_expected/cjs.js b/test/form/samples/whitespace-around-namespace-member-expression/_expected/cjs.js index c47867c9462..ada7a68ca53 100644 --- a/test/form/samples/whitespace-around-namespace-member-expression/_expected/cjs.js +++ b/test/form/samples/whitespace-around-namespace-member-expression/_expected/cjs.js @@ -4,4 +4,4 @@ function yar() { console.log('yar?'); } -yar(); \ No newline at end of file +yar(); diff --git a/test/form/samples/whitespace-around-namespace-member-expression/_expected/es.js b/test/form/samples/whitespace-around-namespace-member-expression/_expected/es.js index 9ad674453a7..bd692973794 100644 --- a/test/form/samples/whitespace-around-namespace-member-expression/_expected/es.js +++ b/test/form/samples/whitespace-around-namespace-member-expression/_expected/es.js @@ -2,4 +2,4 @@ function yar() { console.log('yar?'); } -yar(); \ No newline at end of file +yar(); diff --git a/test/form/samples/whitespace-around-namespace-member-expression/_expected/system.js b/test/form/samples/whitespace-around-namespace-member-expression/_expected/system.js index 4d89bddd1cb..5f952ef25b8 100644 --- a/test/form/samples/whitespace-around-namespace-member-expression/_expected/system.js +++ b/test/form/samples/whitespace-around-namespace-member-expression/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () { diff --git a/test/form/samples/wrap-simplified-expressions/_expected/system.js b/test/form/samples/wrap-simplified-expressions/_expected/system.js index a10134d961a..81ed1639232 100644 --- a/test/form/samples/wrap-simplified-expressions/_expected/system.js +++ b/test/form/samples/wrap-simplified-expressions/_expected/system.js @@ -1,4 +1,4 @@ -System.register([], function (exports, module) { +System.register([], function () { 'use strict'; return { execute: function () {