- ReasonML Quick Start Guide
- Raphael Rafatpanah Bruno Joseph D'mello
- 153字
- 2021-07-02 12:34:16
The package-specs field
The package-specs field contains two fields: module and in-source.
The module field controls the JavaScript module format. The default is commonjs, and other available options include amdjs, amdjs-global, es6, and es6-global. The -global part tells BuckleScript to resolve node_modules to relative paths for browsers.
The in-source field controls the destination of the generated JavaScript files; true results in the generated files being placed along side source files, and false results in the generated files being placed in lib/js. Setting in-source to false is useful when using Reason within an existing JavaScript project so that the existing build pipeline can be used without having to change.
Let's use the "es6" module format for now, and place our compiled assets in lib/js:
"package-specs": {
"module": "es6",
"in-source": false
},
- 廣電5G從入門到精通
- 物聯(lián)網(wǎng)標(biāo)準(zhǔn)化指南
- RCNP實(shí)驗(yàn)指南:構(gòu)建高級的路由互聯(lián)網(wǎng)絡(luò)(BARI)
- FreeSWITCH 1.2
- SOA用戶指南
- 光網(wǎng)絡(luò)評估及案例分析
- 物聯(lián)網(wǎng)之魂:物聯(lián)網(wǎng)協(xié)議與物聯(lián)網(wǎng)操作系統(tǒng)
- TCP/IP入門經(jīng)典(第5版)
- 網(wǎng)絡(luò)安全技術(shù)與解決方案(修訂版)
- Spring 5.0 Projects
- 圖解手機(jī)元器件維修技巧
- 基于性能的保障理論與方法
- Working with Legacy Systems
- 網(wǎng)管第一課:網(wǎng)絡(luò)操作系統(tǒng)與配置管理
- 異構(gòu)蜂窩網(wǎng)絡(luò)關(guān)鍵理論與技術(shù)