Skip to content

stylesheet import or link in noscript tag is not processed #10279

@ecmchow

Description

@ecmchow

🐛 bug report

Inline SCSS stylesheet import or link in noscript tag is not processed during build with latest version 2.16. It was working correctly with 2.14

🎛 Configuration (.babelrc, package.json, cli command)

🤔 Expected Behavior

HTML build output from Parcel v2.14.4

<noscript>
  <style>.example{display: block}</style>
  <link rel="stylesheet" href="/assets/4d9392d0.css" type="text/css">
</noscript>

😯 Current Behavior

HTML build output from Parcel v2.16.4

<noscript> <style>
    @import '../styles/noscript-inline.scss';
  </style> <link rel="stylesheet" href="../styles/noscript-style.scss" type="text/css"> </noscript>

💁 Possible Solution

Revert to Parcel 2.14

🔦 Context

Conditionally apply inline CSS and CSS stylesheet only when JavaScript is disabled in user browser

💻 Code Sample

🌍 Your Environment

Software Version(s)
Parcel 2.16.4
Node 24
npm/Yarn PNPM
Operating System

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions