mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
36 lines
646 B
TypeScript
36 lines
646 B
TypeScript
//// [tests/cases/conformance/moduleResolution/bundler/bundlerConditionsExcludesNode.ts] ////
|
|
|
|
//// [package.json]
|
|
{
|
|
"name": "conditions",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"main": "index.cjs",
|
|
"types": "index.d.cts",
|
|
"exports": {
|
|
".": {
|
|
"node": "./index.node.js",
|
|
"default": "./index.web.js"
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [index.node.js]
|
|
export const node = 0;
|
|
|
|
//// [index.node.d.ts]
|
|
export const node: number;
|
|
|
|
//// [index.web.js]
|
|
export const web = 0;
|
|
|
|
//// [index.web.d.ts]
|
|
export const web: number;
|
|
|
|
//// [main.ts]
|
|
import { web } from "conditions";
|
|
|
|
|
|
//// [main.js]
|
|
export {};
|