Skip to content

Commit

Permalink
[ci] yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and actions-user committed Feb 15, 2022
1 parent 3513070 commit ee2952e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/vite-plugin-astro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion test/lit-element.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee2952e

Please sign in to comment.