Lines Matching +full:import +full:- +full:module
1 # ES6 module support for JerryScript
3 The module system allows users to write import and export statements in scripts, which can be used …
4 …ndard's relevant part can be found [here](https://www.ecma-international.org/ecma-262/6.0/#sec-mod…
5 …e builtin modules with ES6 imports can use the [Port API](05.PORT-API.md#es2015-module-system) to …
9 If a script contains import statements, then JerryScript will open and evaluate the the referenced …
15 import { exported_value } from "./module.js"
20 module.js
30 * exporting identifiers from the module's lexical environment
32 * importing exported identifiers from a module
34 * module namespace imports
35 * `import * as module from 'module.js`
37 * `export {variable} from 'module.js'`
39 * `export * from 'module.js'`
40 * importing a module for side-effects
41 * `import 'module.js'`
42 * default import and export statements
44 * `import def from 'module.js'`
51 import {
54 } from "./module.js"
56 import { getFeatureDetails } from "./module_2.js"
70 // module.js
87 ### Module namespace import statements
89 A module namespace object can be imported. In this case the local binding will contain an object ho…
92 import * as module from './module.js';
94 print(">> Engine: " + module.engine);
95 print(">> Version: " + module.version);
100 …module, either via named indirect exports or a star export statement. In this case the resolving p…
103 import { a, b } from 'module.js'
109 // module.js
121 …module can optionally provide a single default export by using the `export default` statement. Def…
124 import defaultExport, { b as c } from 'module.js'
131 // module.js
138 ### Importing modules for side-effects
140 Evaluate a module without importing anything. Any errors encountered in the module will be propagat…
143 import 'module.js' // > module.js
144 // "> module.js" is printed
149 // module.js
151 print ("> module.js");