huzaifa
06/09/2020, 7:02 PMstalbert
06/09/2020, 7:17 PMhuzaifa
06/09/2020, 7:26 PMhuzaifa
06/09/2020, 7:27 PMhuzaifa
06/09/2020, 7:30 PMstalbert
06/09/2020, 7:31 PMstalbert
06/09/2020, 7:33 PMstalbert
06/09/2020, 7:34 PMstalbert
06/09/2020, 7:34 PMimport * as foolib from "foolib"
sort of syntaxhuzaifa
06/09/2020, 7:49 PMhuzaifa
06/09/2020, 7:50 PMstalbert
06/09/2020, 7:51 PMrequire()
unless you're 1. working in the browser console for testing or something or 2. you really need to dynamically load the lib. You should generally be able to list any well behaved AMD module as a dependency in your define() definition (or just use import
syntax if using TypeScript)dbarnett
06/09/2020, 8:42 PMimport/export
syntax was not yet supported in 2.1 , but maybe this has changed?stalbert
06/09/2020, 9:58 PMimport
syntax I mean transpiling TypeScript. Personally I use UMD as the target output for TypeScript so I can run the same code in NetSuite or in NodeJs (for unit tests)stalbert
06/09/2020, 10:01 PMstalbert
06/09/2020, 10:01 PMAshwin K.
06/09/2020, 10:08 PM