Skip to content

Commit

Permalink
fix: keep order of script tags
Browse files Browse the repository at this point in the history
  • Loading branch information
aigan committed Dec 14, 2023
1 parent acb3336 commit 4aa5c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rollup-plugin-html/test/rollup-plugin-html.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ describe('rollup-plugin-html', () => {
);
});

it('can resolve modules in original order', async () => {
it('resolves modules in original order', async () => {
const config = {
plugins: [
rollupPluginHTML({
Expand All @@ -219,7 +219,7 @@ describe('rollup-plugin-html', () => {
expect(appCode).to.include("console.log('entrypoint-a.js');");
expect(stripNewlines(getAsset(output, 'index.html').source)).to.equal(
'<html><head></head><body><h1>Hello world</h1>' +
'<script type="module" src="./inline-module-5ec680a4efbb48ae254268ab1defe610.js"></script>' +
`<script type="module" src="./inline-module-${hash}.js"></script>` +
'<script type="module" src="./entrypoint-b.js"></script>' +
'</body></html>',
);
Expand Down

0 comments on commit 4aa5c4e

Please sign in to comment.