Home
last modified time | relevance | path

Searched refs:CommonJS (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/typescript/src/testRunner/unittests/services/
Dtranspile.ts89 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/
DisolatedModulesPlainFile-CommonJS.symbols1 === 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))
DisolatedModulesPlainFile-CommonJS.errors.txt1 …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…
DAPISample_transform.js21 let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
35 var result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
DexportDefaultClassNameWithObject.errors.txt1 …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.
DexportClassNameWithObjectCommonJS.errors.txt1 …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.
DAPISample_compile.js44 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
78 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
DisolatedModulesPlainFile-CommonJS.types1 === tests/cases/compiler/isolatedModulesPlainFile-CommonJS.ts ===
DAPISample_watcher.js116 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
199 watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
DmoduleResolutionNoTsCJS.types2 // CommonJS output
/third_party/typescript/src/testRunner/unittests/config/
DconvertCompilerOptionsFromJson.ts100 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/
Dpackages.md61 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 …]
Dmodule.md13 `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
Desm.md15 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/
DREADME.md12 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/
DAPISample_transform.ts25 let result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
DAPISample_compile.ts48 target: ts.ScriptTarget.ES5, module: ts.ModuleKind.CommonJS
/third_party/node/test/es-module/
Dtest-esm-type-flag.mjs8 // Assert we loaded CommonJS dependency
Dtest-esm-scope-node-modules.mjs8 // Assert we loaded CommonJS dependency
/third_party/typescript_eslint/packages/typescript-estree/tests/fixtures/semanticInfo/badTSConfig/
Dtsconfig.json7 …"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES…
/third_party/typescript/src/services/codefixes/
DimportFixes.ts116 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
DfixModuleAndTargetOptions.ts33 if (moduleKind === ModuleKind.CommonJS) {
/third_party/typescript/tests/projects/emitDeclarationOnly/
Dtsconfig.json13 …"esModuleInterop": true, /* Enables emit interoperability between CommonJS and E…
/third_party/typescript/scripts/
DconfigureLanguageServiceBuild.ts81 compilerOptions: { module: ts.ModuleKind.CommonJS }
/third_party/css-what/
Dtsconfig.json24 …"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creat…

1234