mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] yarn format
This commit is contained in:
parent
ec6f148fc8
commit
911b15588e
2 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue