Upgrade compiler (#5339)
* chore: upgrade @astrojs/compiler * fix: update test to match new compiler behavior * test: verify that all styles are bundled Co-authored-by: Nate Moore <nate@astro.build>
This commit is contained in:
parent
bab0e8bf53
commit
03a8f89d5f
4 changed files with 15 additions and 9 deletions
5
.changeset/poor-eagles-melt.md
Normal file
5
.changeset/poor-eagles-melt.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Upgrade `@astrojs/compiler` to latest
|
|
@ -100,7 +100,7 @@
|
||||||
"test:e2e:match": "playwright test -g"
|
"test:e2e:match": "playwright test -g"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/compiler": "^0.29.5",
|
"@astrojs/compiler": "^0.29.11",
|
||||||
"@astrojs/language-server": "^0.28.3",
|
"@astrojs/language-server": "^0.28.3",
|
||||||
"@astrojs/markdown-remark": "^1.1.3",
|
"@astrojs/markdown-remark": "^1.1.3",
|
||||||
"@astrojs/telemetry": "^1.0.1",
|
"@astrojs/telemetry": "^1.0.1",
|
||||||
|
@ -188,6 +188,7 @@
|
||||||
"astro-scripts": "workspace:*",
|
"astro-scripts": "workspace:*",
|
||||||
"chai": "^4.3.6",
|
"chai": "^4.3.6",
|
||||||
"cheerio": "^1.0.0-rc.11",
|
"cheerio": "^1.0.0-rc.11",
|
||||||
|
"eol": "^0.9.1",
|
||||||
"memfs": "^3.4.7",
|
"memfs": "^3.4.7",
|
||||||
"mocha": "^9.2.2",
|
"mocha": "^9.2.2",
|
||||||
"node-fetch": "^3.2.5",
|
"node-fetch": "^3.2.5",
|
||||||
|
@ -198,8 +199,7 @@
|
||||||
"remark-code-titles": "^0.1.2",
|
"remark-code-titles": "^0.1.2",
|
||||||
"sass": "^1.52.2",
|
"sass": "^1.52.2",
|
||||||
"srcset-parse": "^1.1.0",
|
"srcset-parse": "^1.1.0",
|
||||||
"unified": "^10.1.2",
|
"unified": "^10.1.2"
|
||||||
"eol": "^0.9.1"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^14.18.0 || >=16.12.0",
|
"node": "^14.18.0 || >=16.12.0",
|
||||||
|
|
|
@ -36,7 +36,8 @@ describe('Directives', async () => {
|
||||||
const html = await fixture.readFile('/define-vars/index.html');
|
const html = await fixture.readFile('/define-vars/index.html');
|
||||||
const $ = cheerio.load(html);
|
const $ = cheerio.load(html);
|
||||||
|
|
||||||
expect($('style')).to.have.lengthOf(2);
|
// All styles should be bundled
|
||||||
|
expect($('style')).to.have.lengthOf(0);
|
||||||
|
|
||||||
// Inject style attribute on top-level element in page
|
// Inject style attribute on top-level element in page
|
||||||
expect($('html').attr('style').toString()).to.include('--bg: white;');
|
expect($('html').attr('style').toString()).to.include('--bg: white;');
|
||||||
|
|
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
|
@ -370,7 +370,7 @@ importers:
|
||||||
|
|
||||||
packages/astro:
|
packages/astro:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/compiler': ^0.29.5
|
'@astrojs/compiler': ^0.29.11
|
||||||
'@astrojs/language-server': ^0.28.3
|
'@astrojs/language-server': ^0.28.3
|
||||||
'@astrojs/markdown-remark': ^1.1.3
|
'@astrojs/markdown-remark': ^1.1.3
|
||||||
'@astrojs/telemetry': ^1.0.1
|
'@astrojs/telemetry': ^1.0.1
|
||||||
|
@ -469,7 +469,7 @@ importers:
|
||||||
yargs-parser: ^21.0.1
|
yargs-parser: ^21.0.1
|
||||||
zod: ^3.17.3
|
zod: ^3.17.3
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/compiler': 0.29.9
|
'@astrojs/compiler': 0.29.11
|
||||||
'@astrojs/language-server': 0.28.3
|
'@astrojs/language-server': 0.28.3
|
||||||
'@astrojs/markdown-remark': link:../markdown/remark
|
'@astrojs/markdown-remark': link:../markdown/remark
|
||||||
'@astrojs/telemetry': link:../telemetry
|
'@astrojs/telemetry': link:../telemetry
|
||||||
|
@ -3837,8 +3837,8 @@ packages:
|
||||||
sisteransi: 1.0.5
|
sisteransi: 1.0.5
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@astrojs/compiler/0.29.9:
|
/@astrojs/compiler/0.29.11:
|
||||||
resolution: {integrity: sha512-/oMQ0z3CJzGg6sv51tQTiHf/ETVsEu8ObN9OA7zs937dQx9Uo4SToYfdw3C4hf6olrLiADuDUsbkKSRe6fLSgA==}
|
resolution: {integrity: sha512-iNJMknLhALllV69eSsdDK9o+xEPOiOaCKN9Sv5VK33cbOmcRI8ICFaUN8lMIQnVSXWyKFvX1o9w08PivJ24NfQ==}
|
||||||
|
|
||||||
/@astrojs/language-server/0.28.3:
|
/@astrojs/language-server/0.28.3:
|
||||||
resolution: {integrity: sha512-fPovAX/X46eE2w03jNRMpQ7W9m2mAvNt4Ay65lD9wl1Z5vIQYxlg7Enp9qP225muTr4jSVB5QiLumFJmZMAaVA==}
|
resolution: {integrity: sha512-fPovAX/X46eE2w03jNRMpQ7W9m2mAvNt4Ay65lD9wl1Z5vIQYxlg7Enp9qP225muTr4jSVB5QiLumFJmZMAaVA==}
|
||||||
|
@ -15882,7 +15882,7 @@ packages:
|
||||||
resolution: {integrity: sha512-ehCUx7MqHWvkHwUmxxAWLsL35pFaCTM5YXQ8xjG/1W6dY2yBhvEks+2aCfjeI5zmMrZNCXkiMQtpznSlLSLrxw==}
|
resolution: {integrity: sha512-ehCUx7MqHWvkHwUmxxAWLsL35pFaCTM5YXQ8xjG/1W6dY2yBhvEks+2aCfjeI5zmMrZNCXkiMQtpznSlLSLrxw==}
|
||||||
engines: {node: ^14.15.0 || >=16.0.0, npm: '>=6.14.0'}
|
engines: {node: ^14.15.0 || >=16.0.0, npm: '>=6.14.0'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/compiler': 0.29.9
|
'@astrojs/compiler': 0.29.11
|
||||||
prettier: 2.7.1
|
prettier: 2.7.1
|
||||||
sass-formatter: 0.7.5
|
sass-formatter: 0.7.5
|
||||||
synckit: 0.8.4
|
synckit: 0.8.4
|
||||||
|
|
Loading…
Add table
Reference in a new issue