0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00

Remove #astro/* subpath imports (#11636)

This commit is contained in:
Bjorn Lu 2024-08-07 10:41:35 +08:00 committed by GitHub
parent 2716f52aae
commit c8fe46d562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View file

@ -83,9 +83,6 @@
}, },
"./virtual-modules/*": "./dist/virtual-modules/*" "./virtual-modules/*": "./dist/virtual-modules/*"
}, },
"imports": {
"#astro/*": "./dist/*.js"
},
"bin": { "bin": {
"astro": "astro.js" "astro": "astro.js"
}, },

View file

@ -1,8 +1,8 @@
import * as assert from 'node:assert/strict'; import * as assert from 'node:assert/strict';
import { describe, it } from 'node:test'; import { describe, it } from 'node:test';
import { MissingLocale } from '#astro/core/errors/errors-data'; import { MissingLocale } from '../../../dist/core/errors/errors-data.js';
import { AstroError } from '#astro/core/errors/index'; import { AstroError } from '../../../dist/core/errors/index.js';
import { toRoutingStrategy } from '#astro/i18n/utils'; import { toRoutingStrategy } from '../../../dist/i18n/utils.js';
import { validateConfig } from '../../../dist/core/config/validate.js'; import { validateConfig } from '../../../dist/core/config/validate.js';
import { import {
getLocaleAbsoluteUrl, getLocaleAbsoluteUrl,