- 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
},
- Mastering Machine Learning for Penetration Testing
- 5G承載網網絡規劃與組網設計
- 電子政務效益的經濟分析與評價
- 物聯網之魂:物聯網協議與物聯網操作系統
- 社交電商運營策略、技巧與實操
- 萬物互聯:蜂窩物聯網組網技術詳解
- Building RESTful Web Services with Spring 5(Second Edition)
- 物聯網技術與應用
- 園區網絡架構與技術
- 全聯網標識服務
- Getting Started with tmux
- 華為HCIA-Datacom認證指南
- 物聯網與智慧農業
- Architecting Data:Intensive Applications
- 物聯網傳感器技術與應用