diff --git a/packages/astro/package.json b/packages/astro/package.json index 71a7f9b4a..0b41df58f 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -53,7 +53,7 @@ "test": "mocha --parallel --timeout 15000" }, "dependencies": { - "@astrojs/compiler": "^0.2.27", + "@astrojs/compiler": "^0.3.0", "@astrojs/language-server": "^0.7.16", "@astrojs/markdown-remark": "^0.4.0-next.1", "@astrojs/markdown-support": "0.3.1", diff --git a/packages/astro/src/vite-plugin-astro/index.ts b/packages/astro/src/vite-plugin-astro/index.ts index 891c88996..0fcfce187 100644 --- a/packages/astro/src/vite-plugin-astro/index.ts +++ b/packages/astro/src/vite-plugin-astro/index.ts @@ -81,11 +81,6 @@ export default function astro({ config, devServer }: AstroPluginOptions): vite.P }, }); - // macOS fix: remove null chars generated by compiler - if (os.platform() === 'darwin') { - tsResult.code = tsResult.code.replace(/\x00/g, ''); - } - // Compile `.ts` to `.js` const { code, map } = await esbuild.transform(tsResult.code, { loader: 'ts', sourcemap: 'external', sourcefile: id }); diff --git a/yarn.lock b/yarn.lock index e33f0f691..dc85d7940 100644 --- a/yarn.lock +++ b/yarn.lock @@ -106,10 +106,10 @@ "@algolia/logger-common" "4.10.5" "@algolia/requester-common" "4.10.5" -"@astrojs/compiler@^0.2.26": - version "0.2.26" - resolved "https://registry.yarnpkg.com/@astrojs/compiler/-/compiler-0.2.26.tgz#676c9bc4c41682a786fc0f146a4d277602ce0294" - integrity sha512-F7nlbqBeaTilpDmQ6MAGq5dW/Sl6vikGZBHGw1g0y6frH//Ku0SasDEFd6A3FOZETHjrwUsvB7UNwCCGLhxQ+A== +"@astrojs/compiler@^0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@astrojs/compiler/-/compiler-0.3.0.tgz#7ba190193a49258d6a526764b075953704042543" + integrity sha512-UZ0/Nwn2Qmz7A/qE8gKuyVskSc/EbrmVY+9cBxGkFKnW+t5PceDvWLHJFrHMVu5dGsLDEuxwoyKN45qX/U6dwg== dependencies: typescript "^4.3.5"