Skip to content

Commit a5db245

Browse files
authored
[dev-tool][bundle] set esModule to true for cjs output (Azure#27663)
to maintain back compatibility. Related issue Azure#27618 Previously `import * as serviceBus from @azure/service-bus` is working but broken after upgrading to rollup v3. The rollup migration guide suggested `esModule: true` More details: - https://rollupjs.org/migration/#changed-defaults - https://rollupjs.org/configuration-options/#output-esmodule
1 parent 05d99c9 commit a5db245

File tree

1 file changed

+1
-0
lines changed
  • common/tools/dev-tool/src/commands/run

1 file changed

+1
-0
lines changed

common/tools/dev-tool/src/commands/run/bundle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export default leafCommand(commandInfo, async (options) => {
110110
format: "cjs",
111111
sourcemap: true,
112112
exports: "named",
113+
esModule: true,
113114
});
114115
} catch (error: any) {
115116
log.error(error);

0 commit comments

Comments
 (0)