mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
test: test with bundler module resolution (#20629)
Co-authored-by: pooya parsa <pyapar@gmail.com>
This commit is contained in:
parent
c543ea8244
commit
47591c92ec
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -67,6 +67,10 @@ jobs:
|
|||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
module: ['bundler', 'node']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -87,6 +91,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Test (types)
|
- name: Test (types)
|
||||||
run: pnpm test:types
|
run: pnpm test:types
|
||||||
|
env:
|
||||||
|
MODULE_RESOLUTION: ${{ matrix.module }}
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
# autofix workflow will be triggered instead for PRs
|
# autofix workflow will be triggered instead for PRs
|
||||||
|
4
test/fixtures/basic/nuxt.config.ts
vendored
4
test/fixtures/basic/nuxt.config.ts
vendored
@ -15,9 +15,7 @@ export default defineNuxtConfig({
|
|||||||
strict: true,
|
strict: true,
|
||||||
tsConfig: {
|
tsConfig: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
// TODO: For testing (future) support for Node16-style module resolution.
|
moduleResolution: process.env.MODULE_RESOLUTION
|
||||||
// See https://github.com/nuxt/nuxt/issues/18426 and https://github.com/nuxt/nuxt/pull/18431
|
|
||||||
// moduleResolution: 'Node16'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user