2019-05-24 20:24:44 +08:00
|
|
|
# example.js
|
|
|
|
|
|
|
|
```javascript
|
2019-05-24 21:00:42 +08:00
|
|
|
import await { get, set, getNumber } from "./magic.js";
|
2019-05-24 20:24:44 +08:00
|
|
|
|
|
|
|
// accessing memory
|
|
|
|
console.log(get());
|
|
|
|
set(42);
|
|
|
|
console.log(get());
|
|
|
|
set(123);
|
|
|
|
console.log(get());
|
|
|
|
|
|
|
|
// random numbers
|
|
|
|
console.log(getNumber());
|
|
|
|
console.log(getNumber());
|
|
|
|
console.log(getNumber());
|
|
|
|
```
|
|
|
|
|
|
|
|
# magic.js
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
// reexporting
|
|
|
|
export await * from "./magic.wat";
|
|
|
|
```
|
|
|
|
|
|
|
|
# magic.wat
|
|
|
|
|
|
|
|
```wat
|
|
|
|
(module
|
|
|
|
(type $t0 (func (result i32)))
|
|
|
|
(type $t1 (func (param i32)))
|
|
|
|
(import "./memory.js" "memory" (memory 1))
|
|
|
|
(import "./magic-number.js" "getRandomNumber" (func $getRandomNumber (type $t0)))
|
|
|
|
(func $get (export "get") (type $t0) (result i32)
|
|
|
|
(i32.load
|
|
|
|
(i32.const 0)))
|
|
|
|
(func $set (export "set") (type $t1) (param $p i32)
|
|
|
|
(i32.store
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $p)))
|
|
|
|
(func $get (export "getNumber") (type $t0) (result i32)
|
|
|
|
(call $getRandomNumber))
|
|
|
|
)
|
|
|
|
```
|
|
|
|
|
|
|
|
# magic-number.js
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
export function getNumber() {
|
|
|
|
return 42;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getRandomNumber() {
|
|
|
|
return Math.floor(Math.random() * 256);
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
# memory.js
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
async function getMemoryFromParentInWorker() {
|
|
|
|
await new Promise(r => setTimeout(r, 200));
|
|
|
|
// fake
|
|
|
|
return new WebAssembly.Memory({ initial: 1 });
|
|
|
|
}
|
|
|
|
|
|
|
|
export const memory = await getMemoryFromParentInWorker();
|
|
|
|
```
|
|
|
|
|
|
|
|
# dist/output.js
|
|
|
|
|
|
|
|
```javascript
|
2019-10-11 05:11:05 +08:00
|
|
|
/******/ (() => { // webpackBootstrap
|
|
|
|
/******/ var __webpack_modules__ = ([
|
2019-05-24 20:24:44 +08:00
|
|
|
/* 0 */
|
|
|
|
/*!********************!*\
|
|
|
|
!*** ./example.js ***!
|
|
|
|
\********************/
|
2019-06-05 20:26:08 +08:00
|
|
|
/*! exports [not provided] [no usage info] */
|
2019-11-15 07:06:30 +08:00
|
|
|
/*! runtime requirements: __webpack_require__, __webpack_require__.r, __webpack_exports__, module, __webpack_require__.* */
|
2019-10-09 05:45:47 +08:00
|
|
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
2019-05-24 20:24:44 +08:00
|
|
|
|
|
|
|
"use strict";
|
2019-06-05 20:26:08 +08:00
|
|
|
module.exports = (async () => {
|
2019-05-24 20:24:44 +08:00
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2019-05-24 21:00:42 +08:00
|
|
|
/* harmony import */ var _magic_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./magic.js */ 1);
|
2019-06-05 20:26:08 +08:00
|
|
|
_magic_js__WEBPACK_IMPORTED_MODULE_0__ = await Promise.resolve(_magic_js__WEBPACK_IMPORTED_MODULE_0__);
|
2019-05-24 20:24:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
// accessing memory
|
2019-10-09 05:45:47 +08:00
|
|
|
console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.get)());
|
|
|
|
(0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.set)(42);
|
|
|
|
console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.get)());
|
|
|
|
(0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.set)(123);
|
|
|
|
console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.get)());
|
2019-05-24 20:24:44 +08:00
|
|
|
|
|
|
|
// random numbers
|
2019-10-09 05:45:47 +08:00
|
|
|
console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.getNumber)());
|
|
|
|
console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.getNumber)());
|
|
|
|
console.log((0,_magic_js__WEBPACK_IMPORTED_MODULE_0__.getNumber)());
|
2019-05-24 20:24:44 +08:00
|
|
|
|
2019-06-05 20:26:08 +08:00
|
|
|
return __webpack_exports__;
|
|
|
|
})();
|
2019-05-24 20:24:44 +08:00
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/* 1 */
|
2019-05-24 21:00:42 +08:00
|
|
|
/*!******************!*\
|
|
|
|
!*** ./magic.js ***!
|
|
|
|
\******************/
|
|
|
|
/*! export get [provided] [no usage info] [missing usage info prevents renaming] */
|
|
|
|
/*! export getNumber [provided] [no usage info] [missing usage info prevents renaming] */
|
|
|
|
/*! export set [provided] [no usage info] [missing usage info prevents renaming] */
|
|
|
|
/*! other exports [not provided] [no usage info] */
|
2019-11-15 07:06:30 +08:00
|
|
|
/*! runtime requirements: __webpack_require__, __webpack_exports__, __webpack_require__.d, __webpack_require__.r, module, __webpack_require__.* */
|
2019-10-09 05:45:47 +08:00
|
|
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
2019-05-24 21:00:42 +08:00
|
|
|
|
|
|
|
"use strict";
|
2019-06-05 20:26:08 +08:00
|
|
|
module.exports = (async () => {
|
2019-05-24 21:00:42 +08:00
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2019-10-09 05:45:47 +08:00
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
/* harmony export */ "get": () => /* reexport safe */ _magic_wat__WEBPACK_IMPORTED_MODULE_0__.get,
|
|
|
|
/* harmony export */ "getNumber": () => /* reexport safe */ _magic_wat__WEBPACK_IMPORTED_MODULE_0__.getNumber,
|
|
|
|
/* harmony export */ "set": () => /* reexport safe */ _magic_wat__WEBPACK_IMPORTED_MODULE_0__.set
|
|
|
|
/* harmony export */ });
|
2019-05-24 21:00:42 +08:00
|
|
|
/* harmony import */ var _magic_wat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./magic.wat */ 2);
|
2019-06-05 20:26:08 +08:00
|
|
|
_magic_wat__WEBPACK_IMPORTED_MODULE_0__ = await Promise.resolve(_magic_wat__WEBPACK_IMPORTED_MODULE_0__);
|
2019-05-24 21:00:42 +08:00
|
|
|
// reexporting
|
|
|
|
|
|
|
|
|
2019-06-05 20:26:08 +08:00
|
|
|
return __webpack_exports__;
|
|
|
|
})();
|
2019-05-24 21:00:42 +08:00
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/* 2 */
|
2019-05-24 20:24:44 +08:00
|
|
|
/*!*******************!*\
|
|
|
|
!*** ./magic.wat ***!
|
|
|
|
\*******************/
|
2019-08-05 19:32:25 +08:00
|
|
|
/*! export get [provided] [no usage info] [provision prevents renaming (no use info)] */
|
|
|
|
/*! export getNumber [provided] [no usage info] [provision prevents renaming (no use info)] */
|
|
|
|
/*! export set [provided] [no usage info] [provision prevents renaming (no use info)] */
|
2019-05-24 20:24:44 +08:00
|
|
|
/*! other exports [not provided] [no usage info] */
|
2019-10-11 05:11:05 +08:00
|
|
|
/*! runtime requirements: module, __webpack_exports__, __webpack_require__.v, __webpack_require__, __webpack_require__.* */
|
2019-10-09 05:45:47 +08:00
|
|
|
/***/ ((module, exports, __webpack_require__) => {
|
2019-05-24 20:24:44 +08:00
|
|
|
|
2019-05-24 21:00:42 +08:00
|
|
|
/* harmony import */ var WEBPACK_IMPORTED_MODULE_0 = __webpack_require__(/*! ./memory.js */ 3);
|
2019-05-24 20:24:44 +08:00
|
|
|
|
2019-05-24 21:00:42 +08:00
|
|
|
/* harmony import */ var WEBPACK_IMPORTED_MODULE_1 = __webpack_require__(/*! ./magic-number.js */ 4);
|
2019-05-24 20:24:44 +08:00
|
|
|
|
2019-06-05 20:26:08 +08:00
|
|
|
module.exports = Promise.resolve(WEBPACK_IMPORTED_MODULE_0).then(function(WEBPACK_IMPORTED_MODULE_0) { return __webpack_require__.v(exports, module.i, {
|
2019-05-24 20:24:44 +08:00
|
|
|
"./memory.js": {
|
2019-06-05 20:26:08 +08:00
|
|
|
"memory": WEBPACK_IMPORTED_MODULE_0.memory
|
2019-05-24 20:24:44 +08:00
|
|
|
},
|
|
|
|
"./magic-number.js": {
|
2019-06-05 20:26:08 +08:00
|
|
|
"getRandomNumber": WEBPACK_IMPORTED_MODULE_1.getRandomNumber
|
2019-05-24 20:24:44 +08:00
|
|
|
}
|
|
|
|
}); })
|
|
|
|
|
|
|
|
/***/ }),
|
2019-05-24 21:00:42 +08:00
|
|
|
/* 3 */
|
2019-05-24 20:24:44 +08:00
|
|
|
/*!*******************!*\
|
|
|
|
!*** ./memory.js ***!
|
|
|
|
\*******************/
|
|
|
|
/*! export memory [provided] [no usage info] [missing usage info prevents renaming] */
|
|
|
|
/*! other exports [not provided] [no usage info] */
|
2019-11-15 07:06:30 +08:00
|
|
|
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.r, module, __webpack_require__.* */
|
2019-10-09 05:45:47 +08:00
|
|
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
2019-05-24 20:24:44 +08:00
|
|
|
|
|
|
|
"use strict";
|
2019-06-05 20:26:08 +08:00
|
|
|
module.exports = (async () => {
|
2019-05-24 20:24:44 +08:00
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2019-10-09 05:45:47 +08:00
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
/* harmony export */ "memory": () => /* binding */ memory
|
|
|
|
/* harmony export */ });
|
2019-05-24 20:24:44 +08:00
|
|
|
async function getMemoryFromParentInWorker() {
|
|
|
|
await new Promise(r => setTimeout(r, 200));
|
|
|
|
// fake
|
|
|
|
return new WebAssembly.Memory({ initial: 1 });
|
|
|
|
}
|
|
|
|
|
|
|
|
const memory = await getMemoryFromParentInWorker();
|
2019-06-05 20:26:08 +08:00
|
|
|
|
2019-05-24 20:24:44 +08:00
|
|
|
return __webpack_exports__;
|
|
|
|
})();
|
|
|
|
|
|
|
|
/***/ }),
|
2019-05-24 21:00:42 +08:00
|
|
|
/* 4 */
|
2019-05-24 20:24:44 +08:00
|
|
|
/*!*************************!*\
|
|
|
|
!*** ./magic-number.js ***!
|
|
|
|
\*************************/
|
|
|
|
/*! export getNumber [provided] [no usage info] [missing usage info prevents renaming] */
|
|
|
|
/*! export getRandomNumber [provided] [no usage info] [missing usage info prevents renaming] */
|
|
|
|
/*! other exports [not provided] [no usage info] */
|
2019-11-15 07:06:30 +08:00
|
|
|
/*! runtime requirements: __webpack_exports__, __webpack_require__.d, __webpack_require__.r, __webpack_require__.* */
|
2019-10-11 05:11:05 +08:00
|
|
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
2019-05-24 20:24:44 +08:00
|
|
|
|
|
|
|
"use strict";
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2019-10-09 05:45:47 +08:00
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
/* harmony export */ "getNumber": () => /* binding */ getNumber,
|
|
|
|
/* harmony export */ "getRandomNumber": () => /* binding */ getRandomNumber
|
|
|
|
/* harmony export */ });
|
2019-05-24 20:24:44 +08:00
|
|
|
function getNumber() {
|
|
|
|
return 42;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getRandomNumber() {
|
|
|
|
return Math.floor(Math.random() * 256);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***/ })
|
2019-10-11 05:11:05 +08:00
|
|
|
/******/ ]);
|
|
|
|
/************************************************************************/
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ var __webpack_module_cache__ = {};
|
|
|
|
/******/
|
|
|
|
/******/ // The require function
|
|
|
|
/******/ function __webpack_require__(moduleId) {
|
|
|
|
/******/ // Check if module is in cache
|
|
|
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
|
|
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
|
|
|
/******/ }
|
|
|
|
/******/ // Create a new module (and put it into the cache)
|
|
|
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
|
|
/******/ i: moduleId,
|
|
|
|
/******/ l: false,
|
|
|
|
/******/ exports: {}
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // Execute the module function
|
|
|
|
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
|
|
/******/
|
|
|
|
/******/ // Flag the module as loaded
|
|
|
|
/******/ module.l = true;
|
|
|
|
/******/
|
|
|
|
/******/ // Return the exports of the module
|
|
|
|
/******/ return module.exports;
|
|
|
|
/******/ }
|
|
|
|
/******/
|
|
|
|
/************************************************************************/
|
2019-10-09 05:45:47 +08:00
|
|
|
/******/ /* webpack/runtime/define property getters */
|
2019-05-24 20:24:44 +08:00
|
|
|
/******/ !function() {
|
2019-10-09 05:45:47 +08:00
|
|
|
/******/ // define getter functions for harmony exports
|
2019-05-24 20:24:44 +08:00
|
|
|
/******/ var hasOwnProperty = Object.prototype.hasOwnProperty;
|
2019-10-09 05:45:47 +08:00
|
|
|
/******/ __webpack_require__.d = (exports, definition) => {
|
|
|
|
/******/ for(var key in definition) {
|
|
|
|
/******/ if(hasOwnProperty.call(definition, key) && !hasOwnProperty.call(exports, key)) {
|
|
|
|
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
|
|
/******/ }
|
2019-05-24 20:24:44 +08:00
|
|
|
/******/ }
|
|
|
|
/******/ };
|
|
|
|
/******/ }();
|
|
|
|
/******/
|
2019-11-15 07:06:30 +08:00
|
|
|
/******/ /* webpack/runtime/make namespace object */
|
|
|
|
/******/ !function() {
|
|
|
|
/******/ // define __esModule on exports
|
|
|
|
/******/ __webpack_require__.r = (exports) => {
|
|
|
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
|
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
/******/ }
|
|
|
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
/******/ };
|
|
|
|
/******/ }();
|
|
|
|
/******/
|
2019-05-24 20:24:44 +08:00
|
|
|
/******/ /* webpack/runtime/publicPath */
|
|
|
|
/******/ !function() {
|
|
|
|
/******/ __webpack_require__.p = "dist/";
|
|
|
|
/******/ }();
|
|
|
|
/******/
|
|
|
|
/******/ /* webpack/runtime/wasm chunk loading */
|
|
|
|
/******/ !function() {
|
2019-06-05 20:26:08 +08:00
|
|
|
/******/ __webpack_require__.v = function(exports, wasmModuleId, importsObj) {
|
|
|
|
/******/ var req = fetch(__webpack_require__.p + "" + {"2":"594f5a209057602bfc3f"}[wasmModuleId] + ".module.wasm");
|
2019-05-24 20:24:44 +08:00
|
|
|
/******/ if(typeof WebAssembly.instantiateStreaming === 'function') {
|
|
|
|
/******/ return WebAssembly.instantiateStreaming(req, importsObj)
|
2019-06-05 20:26:08 +08:00
|
|
|
/******/ .then(function(res) { return Object.assign(exports, res.instance.exports); });
|
2019-05-24 20:24:44 +08:00
|
|
|
/******/ }
|
|
|
|
/******/ return req
|
|
|
|
/******/ .then(function(x) { return x.arrayBuffer(); })
|
|
|
|
/******/ .then(function(bytes) { return WebAssembly.instantiate(bytes, importsObj); })
|
2019-06-05 20:26:08 +08:00
|
|
|
/******/ .then(function(res) { return Object.assign(exports, res.instance.exports); });
|
2019-05-24 20:24:44 +08:00
|
|
|
/******/ };
|
|
|
|
/******/ }();
|
|
|
|
/******/
|
2019-10-11 05:11:05 +08:00
|
|
|
/************************************************************************/
|
|
|
|
/******/ // startup
|
|
|
|
/******/ // Load entry module
|
|
|
|
/******/ __webpack_require__(0);
|
|
|
|
/******/ // This entry module used 'module' so it can't be inlined
|
|
|
|
/******/ })()
|
|
|
|
;
|
2019-05-24 20:24:44 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
# Info
|
|
|
|
|
|
|
|
## Unoptimized
|
|
|
|
|
|
|
|
```
|
|
|
|
Hash: 0a1b2c3d4e5f6a7b8c9d
|
2019-11-15 07:06:30 +08:00
|
|
|
Version: webpack 5.0.0-beta.6
|
2019-10-11 05:11:05 +08:00
|
|
|
Asset Size
|
|
|
|
594f5a209057602bfc3f.module.wasm 139 bytes [emitted] [immutable] [name: (main)]
|
|
|
|
output.js 8.7 KiB [emitted] [name: main]
|
2019-08-05 19:32:25 +08:00
|
|
|
Entrypoint main = output.js (594f5a209057602bfc3f.module.wasm)
|
2019-10-11 05:11:05 +08:00
|
|
|
chunk output.js (main) 708 bytes (javascript) 139 bytes (webassembly) 1.24 KiB (runtime) [entry] [rendered]
|
2019-05-24 20:24:44 +08:00
|
|
|
> ./example.js main
|
2019-10-11 05:11:05 +08:00
|
|
|
./example.js 253 bytes [built]
|
2019-05-24 20:24:44 +08:00
|
|
|
[no exports]
|
|
|
|
[used exports unknown]
|
|
|
|
entry ./example.js main
|
2019-10-11 05:11:05 +08:00
|
|
|
./magic-number.js 124 bytes [built]
|
|
|
|
[exports: getNumber, getRandomNumber]
|
|
|
|
[used exports unknown]
|
|
|
|
wasm import ./magic-number.js ./magic.wat
|
|
|
|
./magic.js 50 bytes [built]
|
2019-05-24 21:00:42 +08:00
|
|
|
[exports: get, getNumber, set]
|
|
|
|
[used exports unknown]
|
2019-10-11 05:11:05 +08:00
|
|
|
harmony side effect evaluation ./magic.js ./example.js 1:0-55
|
|
|
|
harmony import specifier ./magic.js ./example.js 4:12-15
|
|
|
|
harmony import specifier ./magic.js ./example.js 5:0-3
|
|
|
|
harmony import specifier ./magic.js ./example.js 6:12-15
|
|
|
|
harmony import specifier ./magic.js ./example.js 7:0-3
|
|
|
|
harmony import specifier ./magic.js ./example.js 8:12-15
|
|
|
|
harmony import specifier ./magic.js ./example.js 11:12-21
|
|
|
|
harmony import specifier ./magic.js ./example.js 12:12-21
|
|
|
|
harmony import specifier ./magic.js ./example.js 13:12-21
|
|
|
|
./magic.wat 70 bytes (javascript) 139 bytes (webassembly) [built]
|
2019-05-24 20:24:44 +08:00
|
|
|
[exports: get, getNumber, set]
|
|
|
|
[used exports unknown]
|
2019-10-11 05:11:05 +08:00
|
|
|
harmony side effect evaluation ./magic.wat ./magic.js 2:0-34
|
|
|
|
harmony export imported specifier ./magic.wat ./magic.js 2:0-34
|
|
|
|
./memory.js 211 bytes [built]
|
2019-05-24 20:24:44 +08:00
|
|
|
[exports: memory]
|
|
|
|
[used exports unknown]
|
2019-10-11 05:11:05 +08:00
|
|
|
wasm import ./memory.js ./magic.wat
|
2019-05-24 20:24:44 +08:00
|
|
|
+ 4 hidden chunk modules
|
|
|
|
```
|
|
|
|
|
|
|
|
## Production mode
|
|
|
|
|
|
|
|
```
|
|
|
|
Hash: 0a1b2c3d4e5f6a7b8c9d
|
2019-11-15 07:06:30 +08:00
|
|
|
Version: webpack 5.0.0-beta.6
|
2019-10-11 05:11:05 +08:00
|
|
|
Asset Size
|
|
|
|
4636ea8e62e0734a195f.module.wasm 139 bytes [emitted] [immutable] [name: (main)]
|
2019-10-28 21:09:53 +08:00
|
|
|
output.js 1.61 KiB [emitted] [name: main]
|
2019-08-05 19:32:25 +08:00
|
|
|
Entrypoint main = output.js (4636ea8e62e0734a195f.module.wasm)
|
2019-10-11 05:11:05 +08:00
|
|
|
chunk output.js (main) 708 bytes (javascript) 139 bytes (webassembly) 999 bytes (runtime) [entry] [rendered]
|
2019-05-24 20:24:44 +08:00
|
|
|
> ./example.js main
|
2019-10-11 05:11:05 +08:00
|
|
|
./example.js 253 bytes [built]
|
|
|
|
[no exports]
|
|
|
|
[no exports used]
|
|
|
|
entry ./example.js main
|
|
|
|
./magic-number.js 124 bytes [built]
|
|
|
|
[exports: getNumber, getRandomNumber]
|
|
|
|
[only some exports used: getRandomNumber]
|
|
|
|
wasm import ./magic-number.js ./magic.wat
|
|
|
|
./magic.js 50 bytes [built]
|
|
|
|
[exports: get, getNumber, set]
|
|
|
|
[all exports used]
|
|
|
|
harmony side effect evaluation ./magic.js ./example.js 1:0-55
|
|
|
|
harmony import specifier ./magic.js ./example.js 4:12-15
|
|
|
|
harmony import specifier ./magic.js ./example.js 5:0-3
|
|
|
|
harmony import specifier ./magic.js ./example.js 6:12-15
|
|
|
|
harmony import specifier ./magic.js ./example.js 7:0-3
|
|
|
|
harmony import specifier ./magic.js ./example.js 8:12-15
|
|
|
|
harmony import specifier ./magic.js ./example.js 11:12-21
|
|
|
|
harmony import specifier ./magic.js ./example.js 12:12-21
|
|
|
|
harmony import specifier ./magic.js ./example.js 13:12-21
|
|
|
|
./magic.wat 70 bytes (javascript) 139 bytes (webassembly) [built]
|
|
|
|
[exports: get, getNumber, set]
|
|
|
|
[all exports used]
|
|
|
|
harmony side effect evaluation ./magic.wat ./magic.js 2:0-34
|
|
|
|
harmony export imported specifier ./magic.wat ./magic.js 2:0-34
|
|
|
|
./memory.js 211 bytes [built]
|
|
|
|
[exports: memory]
|
|
|
|
[all exports used]
|
|
|
|
wasm import ./memory.js ./magic.wat
|
|
|
|
+ 3 hidden chunk modules
|
2019-05-24 20:24:44 +08:00
|
|
|
```
|