/third_party/typescript/src/testRunner/unittests/services/ |
D | transpile.ts | 89 options: { compilerOptions: { module: ModuleKind.CommonJS } } 94 options: { compilerOptions: { module: ModuleKind.CommonJS } } 98 options: { compilerOptions: { module: ModuleKind.CommonJS } } 102 options: { compilerOptions: { module: ModuleKind.CommonJS } } 106 options: { compilerOptions: { module: ModuleKind.CommonJS } } 114 … options: { compilerOptions: { module: ModuleKind.CommonJS, newLine: NewLineKind.LineFeed } } 122 options: { compilerOptions: { module: ModuleKind.CommonJS }, fileName: "file" } 162 module: ModuleKind.CommonJS, 181 … { compilerOptions: { newLine: NewLineKind.LineFeed, module: ModuleKind.CommonJS }, fileName: "inp… 207 …options: { compilerOptions: { lib: ["es6", "dom"], module: ModuleKind.CommonJS }, fileName: "input… [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | isolatedModulesPlainFile-CommonJS.symbols | 1 === tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts === 3 >run : Symbol(run, Decl(isolatedModulesPlainFile-CommonJS.ts, 0, 0)) 4 >a : Symbol(a, Decl(isolatedModulesPlainFile-CommonJS.ts, 0, 21)) 7 >run : Symbol(run, Decl(isolatedModulesPlainFile-CommonJS.ts, 0, 0))
|
D | isolatedModulesPlainFile-CommonJS.errors.txt | 1 …ts/cases/compiler/isolatedModulesPlainFile-CommonJS.ts(1,1): error TS1208: 'isolatedModulesPlainFi… 4 ==== tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts (1 errors) ==== 7 !!! error TS1208: 'isolatedModulesPlainFile-CommonJS.ts' cannot be compiled under '--isolatedModule…
|
D | APISample_transform.js | 21 let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS }); 35 var result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
|
D | exportDefaultClassNameWithObject.errors.txt | 1 …ject.ts(1,22): error TS2725: Class name cannot be 'Object' when targeting ES5 with module CommonJS. 7 !!! error TS2725: Class name cannot be 'Object' when targeting ES5 with module CommonJS.
|
D | exportClassNameWithObjectCommonJS.errors.txt | 1 …onJS.ts(1,14): error TS2725: Class name cannot be 'Object' when targeting ES5 with module CommonJS. 7 !!! error TS2725: Class name cannot be 'Object' when targeting ES5 with module CommonJS.
|
D | APISample_compile.js | 44 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS 78 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
|
D | isolatedModulesPlainFile-CommonJS.types | 1 === tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts ===
|
D | APISample_watcher.js | 116 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS }); 199 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
|
D | moduleResolutionNoTsCJS.types | 2 // CommonJS output
|
/third_party/typescript/src/testRunner/unittests/config/ |
D | convertCompilerOptionsFromJson.ts | 100 module: ModuleKind.CommonJS, 125 module: ModuleKind.CommonJS, 150 module: ModuleKind.CommonJS, 288 module: ModuleKind.CommonJS, 319 module: ModuleKind.CommonJS, 350 module: ModuleKind.CommonJS, 381 module: ModuleKind.CommonJS, 412 module: ModuleKind.CommonJS, 490 module: ModuleKind.CommonJS, 520 module: ModuleKind.CommonJS,
|
/third_party/node/doc/api/ |
D | packages.md | 61 Node.js will treat as [CommonJS][] all other forms of input, such as `.js` files 65 CommonJS and ES modules, it is best to be explicit whenever possible. Node.js 66 will treat the following as CommonJS when passed to `node` as the initial input, 78 all sources are CommonJS. Being explicit about the `type` of the package will 87 `"type"` field, `.js` files are treated as [CommonJS][]. 104 // Loaded as CommonJS since ./node_modules/commonjs-package/package.json 108 // Loaded as CommonJS since ./node_modules/commonjs-package/package.json 115 Files ending with `.cjs` are always loaded as [CommonJS][] regardless of the 120 // Loaded as CommonJS since .cjs is always loaded as CommonJS. 130 interpret a particular file as [CommonJS][] by naming it with a `.cjs` [all …]
|
D | module.md | 13 `Module`, the [`module`][] variable often seen in [CommonJS][] modules. Accessed 40 // In a CommonJS module 58 // sibling-module.js is a CommonJS module. 88 builtin [ES Modules][] to match the properties of the [CommonJS][] exports. It 145 // In a CommonJS module 211 [CommonJS]: modules.md
|
D | esm.md | 15 description: Support for detection of CommonJS named exports. 69 [CommonJS][]. 80 Node.js treats JavaScript code as CommonJS modules by default. 134 Like in CommonJS, module files within packages can be accessed by appending a 222 default export is also provided which is the value of the CommonJS exports. 255 [Dynamic `import()`][] is supported in both CommonJS and ES modules. In CommonJS 319 ## Interoperability with CommonJS 323 An `import` statement can reference an ES module or a CommonJS module. 325 expressions are supported in CommonJS for loading ES modules. 327 When importing [CommonJS modules](#esm_commonjs_namespaces), the [all …]
|
/third_party/protobuf/js/ |
D | README.md | 12 1. CommonJS-style imports (eg. `var protos = require('my-protos');`) 53 Closure Compiler style imports and one that uses CommonJS imports. 54 You can see all the CommonJS files in `commonjs_out/`. 64 or CommonJS imports: 104 CommonJS imports 107 If you want to use CommonJS imports, your build should run a command 112 For CommonJS imports, `protoc` will spit out one file per input file
|
/third_party/typescript/tests/cases/compiler/ |
D | APISample_transform.ts | 25 let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
|
D | APISample_compile.ts | 48 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
|
/third_party/node/test/es-module/ |
D | test-esm-type-flag.mjs | 8 // Assert we loaded CommonJS dependency
|
D | test-esm-scope-node-modules.mjs | 8 // Assert we loaded CommonJS dependency
|
/third_party/typescript_eslint/packages/typescript-estree/tests/fixtures/semanticInfo/badTSConfig/ |
D | tsconfig.json | 7 …"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES…
|
/third_party/typescript/src/services/codefixes/ |
D | importFixes.ts | 116 case ImportKind.CommonJS: 184 CommonJS, enumerator 527 case ModuleKind.CommonJS: 530 … return isExternalModule(importingFile) ? ImportKind.Namespace : ImportKind.CommonJS; 532 return ImportKind.CommonJS; 633 return isExternalModule(importingFile) ? ImportKind.Default : ImportKind.CommonJS; 640 return ImportKind.CommonJS; 645 return allowSyntheticDefaults ? ImportKind.Default : ImportKind.CommonJS; 810 readonly importKind: ImportKind.CommonJS | ImportKind.Namespace; 824 const declaration = namespaceLikeImport.importKind === ImportKind.CommonJS
|
D | fixModuleAndTargetOptions.ts | 33 if (moduleKind === ModuleKind.CommonJS) {
|
/third_party/typescript/tests/projects/emitDeclarationOnly/ |
D | tsconfig.json | 13 …"esModuleInterop": true, /* Enables emit interoperability between CommonJS and E…
|
/third_party/typescript/scripts/ |
D | configureLanguageServiceBuild.ts | 81 compilerOptions: { module: ts.ModuleKind.CommonJS }
|
/third_party/css-what/ |
D | tsconfig.json | 24 …"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creat…
|