diff options
author | 2023-02-17 10:58:53 -0500 | |
---|---|---|
committer | 2023-02-17 10:58:53 -0500 | |
commit | 609b249c8de936fcf263effa83a95a45747d6610 (patch) | |
tree | 030b81ae8adc1c9c5bc327b9c2e702454f718daf /packages/integrations/deno/src/index.ts | |
parent | 7a717d64a477ed23341de2c055e1489590fb93bc (diff) | |
download | astro-609b249c8de936fcf263effa83a95a45747d6610.tar.gz astro-609b249c8de936fcf263effa83a95a45747d6610.tar.zst astro-609b249c8de936fcf263effa83a95a45747d6610.zip |
Revert "Deno fix #6131 (#6248)" (#6281)
* Revert "Deno fix #6131 (#6248)"
This reverts commit ef5cea4dc5c4ffa33bd57ea0886e6912afb24fec.
* Create gold-months-live.md
Diffstat (limited to '')
-rw-r--r-- | packages/integrations/deno/src/index.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/integrations/deno/src/index.ts b/packages/integrations/deno/src/index.ts index 91f5fd836..11f5adebf 100644 --- a/packages/integrations/deno/src/index.ts +++ b/packages/integrations/deno/src/index.ts @@ -3,7 +3,6 @@ import esbuild from 'esbuild'; import * as fs from 'fs'; import * as npath from 'path'; import { fileURLToPath } from 'url'; -import * as CONSTANT from './code-constant'; interface BuildConfig { server: URL; @@ -71,8 +70,7 @@ export default function createIntegration(args?: Options): AstroIntegration { 'astro:build:done': async () => { const entryUrl = new URL(_buildConfig.serverEntry, _buildConfig.server); const pth = fileURLToPath(entryUrl); - const content = await fs.readFileSync(pth, 'utf8'); - await fs.writeFileSync(pth, `${CONSTANT.DEFAULTIMPORT}${content}${CONSTANT.DEFAULTSTART}`); + await esbuild.build({ target: 'es2020', platform: 'browser', |