Skip to content

HTML imports: source maps included in development mode = false #19241

@e3dio

Description

@e3dio

What version of Bun is running?

1.2.10+db2e7d7f7

What platform is your computer?

linux

What steps can reproduce the bug?

Docs say development mode = false should not include source maps for minified scripts, while development mode = true includes source maps. But I see source maps for dev mode = false

import home from './home.html';

Bun.serve({
   development: false,
   routes: {
      '/': home
   }
})

home.html:

<!DOCTYPE html>
<html>
<head>
	<script type=module src=/home.mjs></script>
	<link rel=stylesheet href=/home.css>
</head>
<body>
</body>
</html>

/chunk-vnbvv8qq.js:

//# sourceMappingURL=/chunk-vnbvv8qq.js.map

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbun:serveBun.serve and HTTP server

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions