Appearance
指令
¥Directive
Rolldown 不会为你的输出添加任何指令,以下是处理指令的策略。
¥Rolldown will not add any directive for your output, here are the strategies when handling directives.
当
output.preserveModules禁用时,只有用户定义的入口模块中的指令会被保留。repl¥When
output.preserveModulesis disabled, only directives in user defined entry module will be preserved repl当
output.preserveModules启用时,即使模块不是用户定义的入口模块,所有指令也将被保留。repl¥When
output.preserveModulesis enabled, all directives will be preserved even the module is not user defined entry module. repl如果格式为
esm,则无论如何都会过滤掉'use strict'指令。repl¥If the format is
esm,'use strict'directive will be filtered out whatever. repl