Remove \x00 removal

This commit is contained in:
Matthew Phillips 2021-11-15 13:56:59 -05:00
parent b49f9a525e
commit 3c45f650dd
3 changed files with 5 additions and 10 deletions

View file

@ -53,7 +53,7 @@
"test": "mocha --parallel --timeout 15000" "test": "mocha --parallel --timeout 15000"
}, },
"dependencies": { "dependencies": {
"@astrojs/compiler": "^0.2.27", "@astrojs/compiler": "^0.3.0",
"@astrojs/language-server": "^0.7.16", "@astrojs/language-server": "^0.7.16",
"@astrojs/markdown-remark": "^0.4.0-next.1", "@astrojs/markdown-remark": "^0.4.0-next.1",
"@astrojs/markdown-support": "0.3.1", "@astrojs/markdown-support": "0.3.1",

View file

@ -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` // Compile `.ts` to `.js`
const { code, map } = await esbuild.transform(tsResult.code, { loader: 'ts', sourcemap: 'external', sourcefile: id }); const { code, map } = await esbuild.transform(tsResult.code, { loader: 'ts', sourcemap: 'external', sourcefile: id });

View file

@ -106,10 +106,10 @@
"@algolia/logger-common" "4.10.5" "@algolia/logger-common" "4.10.5"
"@algolia/requester-common" "4.10.5" "@algolia/requester-common" "4.10.5"
"@astrojs/compiler@^0.2.26": "@astrojs/compiler@^0.3.0":
version "0.2.26" version "0.3.0"
resolved "https://registry.yarnpkg.com/@astrojs/compiler/-/compiler-0.2.26.tgz#676c9bc4c41682a786fc0f146a4d277602ce0294" resolved "https://registry.yarnpkg.com/@astrojs/compiler/-/compiler-0.3.0.tgz#7ba190193a49258d6a526764b075953704042543"
integrity sha512-F7nlbqBeaTilpDmQ6MAGq5dW/Sl6vikGZBHGw1g0y6frH//Ku0SasDEFd6A3FOZETHjrwUsvB7UNwCCGLhxQ+A== integrity sha512-UZ0/Nwn2Qmz7A/qE8gKuyVskSc/EbrmVY+9cBxGkFKnW+t5PceDvWLHJFrHMVu5dGsLDEuxwoyKN45qX/U6dwg==
dependencies: dependencies:
typescript "^4.3.5" typescript "^4.3.5"