summaryrefslogtreecommitdiff
path: root/src/compiler/optimize/styles.ts
diff options
context:
space:
mode:
authorGravatar Drew Powers <1369770+drwpow@users.noreply.github.com> 2021-03-30 10:37:04 -0600
committerGravatar GitHub <noreply@github.com> 2021-03-30 10:37:04 -0600
commit7334a550d8e042ae0dc59519149df2b3ad04f058 (patch)
tree1189d03d55a553a0732e1a43865e122a4055f369 /src/compiler/optimize/styles.ts
parentee6ef81cf38acc357141143319addf39a99d3e19 (diff)
downloadastro-7334a550d8e042ae0dc59519149df2b3ad04f058.tar.gz
astro-7334a550d8e042ae0dc59519149df2b3ad04f058.tar.zst
astro-7334a550d8e042ae0dc59519149df2b3ad04f058.zip
Fix nested parens bug (#39)
Diffstat (limited to 'src/compiler/optimize/styles.ts')
-rw-r--r--src/compiler/optimize/styles.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/optimize/styles.ts b/src/compiler/optimize/styles.ts
index 6f0cd9361..fa32445ba 100644
--- a/src/compiler/optimize/styles.ts
+++ b/src/compiler/optimize/styles.ts
@@ -205,7 +205,6 @@ export default function ({ filename, fileID }: { filename: string; fileID: strin
// 3b. Update <style> attributes
const styleTypeIndex = styleNodes[n].attributes.findIndex(({ name }: any) => name === 'type');
if (styleTypeIndex !== -1) {
- console.log(styleNodes[n].attributes[styleTypeIndex]);
styleNodes[n].attributes[styleTypeIndex].value[0].raw = 'text/css';
styleNodes[n].attributes[styleTypeIndex].value[0].data = 'text/css';
} else {