Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
6467707
Add the tsdown build configuration
Nov 13, 2026
fb681a9
Build the plain packages and the test web server with tsdown
Nov 13, 2026
9b5db11
Move the rolldown CSS plugins to the step that uses them
Nov 13, 2026
a9b1798
Add the rolldown CSS plugins, one instance per build
Nov 13, 2026
0f687e2
Build api, component and fluent-theme with tsdown
Nov 13, 2026
09045e8
Keep CommonJS re-exports visible to cjs-module-lexer
Nov 13, 2026
4c54ef0
Keep CommonJS re-exports visible to cjs-module-lexer
Nov 13, 2026
09f4dc8
Merge branch 'OEvgeny/feat-tsdown-plain-packages' into OEvgeny/feat-t…
Nov 13, 2026
40b5164
Build bundle and debug-theme with tsdown
Nov 14, 2026
c6c2812
Map bundled files to their original sources, like esbuild
Nov 14, 2026
f37b310
Explain why the IIFE scripts are strict
Nov 14, 2026
ac53542
Drop unused IIFE esModule option, fix strict comment
Nov 14, 2026
14214af
Sort CSS module class maps so builds are byte-reproducible
Nov 14, 2026
b652771
Merge branch 'OEvgeny/feat-tsdown-css-packages' into OEvgeny/feat-tsd…
Nov 14, 2026
eefdd95
Build static/ of bundle and fluent-theme with rolldown instead of esb…
Nov 14, 2026
fbb5299
Remove tsup and the esbuild flavors of our build plugins
Nov 14, 2026
67986ba
Stop tsdown --watch from restarting after each build
Nov 14, 2026
936cffc
Expect tsdown as the build tool in html2 tests
Nov 14, 2026
e8cb91a
Drop the stale tsup note and check static/ chunks for CSS placeholders
Nov 14, 2026
44e1dce
Pin rolldown to ~1.3.0 like tsdown
Nov 14, 2026
f75aebb
Emit declarations with stable union order (stableTypeOrdering)
Nov 14, 2026
5f199df
Merge branch 'OEvgeny/feat-tsdown-plain-packages' into OEvgeny/feat-t…
Nov 14, 2026
c8e3990
Merge branch 'OEvgeny/feat-tsdown-iife-packages' into OEvgeny/feat-ts…
Nov 14, 2026
00434d6
Merge branch 'OEvgeny/feat-tsdown-css-packages' into OEvgeny/feat-tsd…
Nov 14, 2026
5c22d4f
Find the entries of a chunk by walking chunk.imports in injectCSSRoll…
Nov 14, 2026
db83ec3
Return an empty source map for the sorted class map in cssPlugin
Nov 14, 2026
f14a7c4
Merge remote-tracking branch 'origin/main' into OEvgeny/feat-tsdown-c…
Nov 24, 2026
f76861d
Drop the CSS source map and the watch file of the CSS plugin
Nov 24, 2026
0d6effb
Return an empty source map for the CSS module class map
Nov 24, 2026
02faf7d
Let rolldown tree-shake the empty CSS modules
Nov 24, 2026
00270ae
Say what css: false and the toleratedTransform check do
Nov 24, 2026
afaef97
Merge remote-tracking branch 'origin/main' into OEvgeny/feat-tsdown-c…
Nov 24, 2026
ba3ab00
Run the lightningCSSOptions spec in npm run precommit
Nov 24, 2026
f7d3840
Add the changelog fragment
Nov 24, 2026
1d1225b
Throw for a styles placeholder that a string literal may escape
Nov 24, 2026
4ebd37e
Merge remote-tracking branch 'origin/OEvgeny/feat-tsdown-css-packages…
Nov 24, 2026
ca4381a
Merge remote-tracking branch 'origin/main' into OEvgeny/feat-tsdown-i…
Nov 24, 2026
c2d93f1
Read the source maps of bundled files with rollup-plugin-sourcemaps2
Nov 24, 2026
18b67f5
Fix two bundle config comments and the IIFE strict comment
Nov 24, 2026
ef54387
Merge branch 'OEvgeny/feat-tsdown-iife-packages' into OEvgeny/feat-ts…
Nov 24, 2026
945d26a
Say what the build options do instead of comparing them with tsup
Nov 24, 2026
8d741c3
Drop dts.sourcemap: false, the default without declarationMap
Nov 24, 2026
9428477
Drop ignoreWatch: no script runs tsdown --watch
Nov 24, 2026
8d6aca7
Read the source maps in the inject CSS spec with trace-mapping
Nov 24, 2026
0e06cda
Merge remote-tracking branch 'origin/main' into OEvgeny/feat-tsdown-i…
Nov 26, 2026
1126f61
Add the changelog fragment
Nov 26, 2026
680de02
Merge branch 'main' into OEvgeny/feat-tsdown-iife-packages
compulim Nov 26, 2026
4021e51
Merge branch 'OEvgeny/feat-tsdown-iife-packages' into OEvgeny/feat-ts…
Nov 26, 2026
6679739
Build store with tsdown
Nov 26, 2026
ba13722
Merge branch 'main' into OEvgeny/feat-tsdown-remove-tsup
Nov 26, 2026
866f9ab
Add the changelog fragment
Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/6091-feat-tsdown-remove-tsup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Changed

- Built the `static/` folders with rolldown instead of esbuild, and removed tsup, in PR [#6091](https://github.com/microsoft/BotFramework-WebChat/pull/6091), by [@OEvgeny](https://github.com/OEvgeny)
12 changes: 6 additions & 6 deletions __tests__/html2/boot/bundle.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
// THEN: It should have `<meta name="botframework-webchat:api">`.
expect(metaMap.has('botframework-webchat:api')).toBe(true);
expect(metaMap.get('botframework-webchat:api')).toEqual(
expect.stringMatching(/build-tool=(tsup|tsdown)(;|$)/u)
expect.stringMatching(/build-tool=tsdown(;|$)/u)
);
expect(metaMap.get('botframework-webchat:api')).toEqual(expect.stringContaining('module-format='));
expect(metaMap.get('botframework-webchat:api')).toEqual(expect.stringContaining('version='));
expect(metaMap.get('botframework-webchat:api:version')).toEqual(expect.stringMatching(/^\d+\.\d+\.\d+($|-)/u));

// THEN: It should have `<meta name="botframework-webchat">`.
expect(metaMap.has('botframework-webchat')).toBe(true);
expect(metaMap.get('botframework-webchat')).toEqual(expect.stringMatching(/build-tool=(tsup|tsdown)(;|$)/u));
expect(metaMap.get('botframework-webchat')).toEqual(expect.stringMatching(/build-tool=tsdown(;|$)/u));
expect(metaMap.get('botframework-webchat')).toEqual(expect.stringContaining('module-format=global'));
expect(metaMap.get('botframework-webchat')).toEqual(expect.stringContaining(`variant=${variant}`));
expect(metaMap.get('botframework-webchat')).toEqual(expect.stringContaining('version='));
Expand All @@ -59,7 +59,7 @@
// THEN: It should have `<meta name="botframework-webchat:component">`.
expect(metaMap.has('botframework-webchat:component')).toBe(true);
expect(metaMap.get('botframework-webchat:component')).toEqual(
expect.stringMatching(/build-tool=(tsup|tsdown)(;|$)/u)
expect.stringMatching(/build-tool=tsdown(;|$)/u)
);
expect(metaMap.get('botframework-webchat:component')).toEqual(expect.stringContaining('module-format='));
expect(metaMap.get('botframework-webchat:component')).toEqual(expect.stringContaining('version='));
Expand All @@ -68,7 +68,7 @@
// THEN: It should have `<meta name="botframework-webchat:core">`.
expect(metaMap.has('botframework-webchat:core')).toBe(true);
expect(metaMap.get('botframework-webchat:core')).toEqual(
expect.stringMatching(/build-tool=(tsup|tsdown)(;|$)/u)
expect.stringMatching(/build-tool=tsdown(;|$)/u)
);
expect(metaMap.get('botframework-webchat:core')).toEqual(expect.stringContaining('module-format='));
expect(metaMap.get('botframework-webchat:core')).toEqual(expect.stringContaining('version='));
Expand Down Expand Up @@ -112,8 +112,8 @@
expect(WebChat.Components.AdaptiveCardContent).toBeUndefined();
}

// THEN: `buildInfo.buildTool` should be "tsup" or "tsdown".
expect(WebChat).toHaveProperty('buildInfo.buildTool', expect.stringMatching(/^(tsup|tsdown)$/u));
// THEN: `buildInfo.buildTool` should be "tsdown".
expect(WebChat).toHaveProperty('buildInfo.buildTool', 'tsdown');

// THEN: `buildInfo.moduleFromat` should be "global".
expect(WebChat).toHaveProperty('buildInfo.moduleFormat', 'global'); // Bundle
Expand Down
2 changes: 1 addition & 1 deletion __tests__/html2/fluentTheme/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
.map(value => value.trim().split('='))
);

expect(buildInfo).toHaveProperty('build-tool', expect.stringMatching(/^(tsup|tsdown)$/u));
expect(buildInfo).toHaveProperty('build-tool', 'tsdown');
expect(buildInfo).toHaveProperty('module-format', 'global');
expect(buildInfo.version).toMatch(/^\d+\.\d+\.\d+($|-)/u);

Expand Down
2 changes: 1 addition & 1 deletion __tests__/html2/preact/fluentTheme/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
.map(value => value.trim().split('='))
);

expect(buildInfo).toHaveProperty('build-tool', expect.stringMatching(/^(tsup|tsdown)$/u));
expect(buildInfo).toHaveProperty('build-tool', 'tsdown');
expect(buildInfo).toHaveProperty('module-format', 'global');
expect(buildInfo.version).toMatch(/^\d+\.\d+\.\d+($|-)/u);

Expand Down
38 changes: 0 additions & 38 deletions esbuildBabelPluginIstanbul.ts

This file was deleted.

35 changes: 0 additions & 35 deletions esbuildPlugins.mjs

This file was deleted.

2 changes: 1 addition & 1 deletion lightningCSSOptions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const removePreserveReasonVisitor = Object.freeze({
/**
* Options of unplugin-lightningcss.
*
* @type { NonNullable<Parameters<typeof import('unplugin-lightningcss/esbuild').default>[0]> }
* @type { NonNullable<Parameters<typeof import('unplugin-lightningcss/rolldown').default>[0]> }
*/
const lightningCSSPluginOptions = Object.freeze({
include: [/\.module\.css$/u],
Expand Down
Loading
Loading