mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
19 lines
679 B
JavaScript
19 lines
679 B
JavaScript
// no `exports` key, should resolve to entries/dir/index.js
|
|
import dirEntry from '@vitejs/test-entries/dir'
|
|
// no `exports` key, should resolve to entries/file.js
|
|
import fileEntry from '@vitejs/test-entries/file'
|
|
// has `exports` key, should resolve to pkg-exports/entry
|
|
import pkgExportsEntry from '@vitejs/test-resolve-pkg-exports/entry'
|
|
import deepFoo from '@vitejs/test-deep-import/foo'
|
|
import deepBar from '@vitejs/test-deep-import/bar'
|
|
import { used } from './util'
|
|
|
|
export default `
|
|
entries/dir: ${dirEntry}
|
|
entries/file: ${fileEntry}
|
|
pkg-exports/entry: ${pkgExportsEntry}
|
|
deep-import/foo: ${deepFoo}
|
|
deep-import/bar: ${deepBar}
|
|
util: ${used(['[success]'])}
|
|
`
|