mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-13 16:57:54 -05:00
* Build both a legacy and modern browser compiler * Dynamic import example and documentation * Update the docs to use the modern browser compiler if the browser supports it * Update policy regarding Stage 3 features * This never made sense, and assigning a string to index 0 *of a string* throws in Module mode (and silently does nothing in Script mode) so remove this unneeded code that throws when compiling `fn for i from from iterable` in Module mode * Have browser-based tests use the ES module version if supported * Simplify building logic * Update output * For the ES module version of the browser compiler, don't automatically attach the runScripts event handler * Consistent comments * Fix comment
23 lines
579 B
CoffeeScript
23 lines
579 B
CoffeeScript
import './local-file.coffee'
|
|
import 'coffeescript'
|
|
|
|
import _ from 'underscore'
|
|
import * as underscore from 'underscore'
|
|
|
|
import { now } from 'underscore'
|
|
import { now as currentTimestamp } from 'underscore'
|
|
import { first, last } from 'underscore'
|
|
import utilityBelt, { each } from 'underscore'
|
|
|
|
export default Math
|
|
export square = (x) -> x * x
|
|
export class Mathematics
|
|
least: (x, y) -> if x < y then x else y
|
|
|
|
export { sqrt }
|
|
export { sqrt as squareRoot }
|
|
export { Mathematics as default, sqrt as squareRoot }
|
|
|
|
export * from 'underscore'
|
|
export { max, min } from 'underscore'
|