We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9270477 commit 779b789Copy full SHA for 779b789
src/node/build/render.ts
@@ -182,7 +182,10 @@ function renderHead(head: HeadConfig[]): Promise<string> {
182
head.map(async ([tag, attrs = {}, innerHTML = '']) => {
183
const openTag = `<${tag}${renderAttrs(attrs)}>`
184
if (tag !== 'link' && tag !== 'meta') {
185
- if (tag === 'script') {
+ if (
186
+ tag === 'script' &&
187
+ (attrs.type === undefined || attrs.type.includes('javascript'))
188
+ ) {
189
innerHTML = (
190
await transformWithEsbuild(innerHTML, 'inline-script.js', {
191
minify: true
0 commit comments