diff options
author | 2022-02-15 21:56:06 +0000 | |
---|---|---|
committer | 2022-02-15 21:56:06 +0000 | |
commit | 911b15588e9f62d723a4e9396f425752f12a41b7 (patch) | |
tree | 8b573dc54ec19977eb9f382f2ed3d32348168095 | |
parent | ec6f148fc8623c6549885af70512839c08905fdb (diff) | |
download | astro-911b15588e9f62d723a4e9396f425752f12a41b7.tar.gz astro-911b15588e9f62d723a4e9396f425752f12a41b7.tar.zst astro-911b15588e9f62d723a4e9396f425752f12a41b7.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/src/vite-plugin-astro/index.ts | 6 | ||||
-rw-r--r-- | packages/astro/test/lit-element.test.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/astro/src/vite-plugin-astro/index.ts b/packages/astro/src/vite-plugin-astro/index.ts index db1b16a77..e96006735 100644 --- a/packages/astro/src/vite-plugin-astro/index.ts +++ b/packages/astro/src/vite-plugin-astro/index.ts @@ -50,12 +50,12 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu async resolveId(id, from) { // If resolving from an astro subresource such as a hoisted script, // we need to resolve relative paths ourselves. - if(from) { + if (from) { const { query: fromQuery, filename } = parseAstroRequest(from); - if(fromQuery.astro && isRelativePath(id)) { + if (fromQuery.astro && isRelativePath(id)) { const resolvedURL = new URL(id, `file://${filename}`); const resolved = resolvedURL.pathname; - if(isBrowserPath(resolved)) { + if (isBrowserPath(resolved)) { return slash(fileURLToPath(new URL('.' + resolved, config.projectRoot))); } return slash(fileURLToPath(resolvedURL)); diff --git a/packages/astro/test/lit-element.test.js b/packages/astro/test/lit-element.test.js index 9d73a50de..395eaf2e5 100644 --- a/packages/astro/test/lit-element.test.js +++ b/packages/astro/test/lit-element.test.js @@ -2,7 +2,7 @@ import { expect } from 'chai'; import cheerio from 'cheerio'; import { loadFixture } from './test-utils.js'; -describe('LitElement test', function() { +describe('LitElement test', function () { this.timeout(30000); let fixture; |