Remove \x00 removal
This commit is contained in:
parent
b49f9a525e
commit
3c45f650dd
3 changed files with 5 additions and 10 deletions
|
@ -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",
|
||||
|
|
|
@ -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 });
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue