Skip to content

Commit

Permalink
Final cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Feb 15, 2022
1 parent 9384e9a commit 8f630c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"dev": "astro-scripts dev \"src/**/*.ts\"",
"postbuild": "astro-scripts copy \"src/**/*.astro\"",
"benchmark": "node test/benchmark/dev.bench.js && node test/benchmark/build.bench.js",
"test": "mocha --timeout 15000 --ignore **/lit-element.test.js && mocha **/lit-element.test.js",
"test": "mocha --parallel --timeout 15000 --ignore **/lit-element.test.js && mocha **/lit-element.test.js",
"test:match": "mocha --timeout 15000 -g"
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/astro/src/vite-plugin-astro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu
if(fromQuery.astro && isRelativePath(id)) {
const resolvedURL = new URL(id, `file://${filename}`);
const resolved = resolvedURL.pathname;

console.log("WINDOWS DEBUG2", resolved);
if(isBrowserPath(resolved)) {
return slash(fileURLToPath(new URL('.' + resolved, config.projectRoot)));
}
Expand All @@ -71,7 +69,7 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu
// Because this needs to be the id for the Vite CSS plugin to property resolve
// relative @imports.
if (query.type === 'style' && isBrowserPath(id)) {
return fileURLToPath(new URL('.' + id, config.projectRoot));
return slash(fileURLToPath(new URL('.' + id, config.projectRoot)));
}

return id;
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/test/static-build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('Static build', () => {
});
});

describe.only('Hoisted scripts', () => {
describe('Hoisted scripts', () => {
it('Get bundled together on the page', async () => {
const html = await fixture.readFile('/subpath/hoisted/index.html');
const $ = cheerio.load(html);
Expand Down

0 comments on commit 8f630c6

Please sign in to comment.