Commit graph

24 commits

Author SHA1 Message Date
Isiah Meadows
90bcff0fa7
Deduplicate m.route and m.redraw logic (#2453)
- Remove appropriate route change subcriptions when a root is removed
  via `m.mount(root, null)`.
- Don't pollute `onpopstate` and friends - use standard event listeners
  instead.
- Simplify and streamline subscriptions, in preparation of adding a
  `remove` parameter to `m.mount`.
- Change the redraw internals to redraw immediately, with ability to
  cancel via returning a sentinel.
- Change `"bleeding-edge"` for `m.version` in `next` to instead just be
  the latest `m.version`. (If you're using `next`, you should know what
  you're in for.)
- Update tests to be aware of these changes. (Some were failing for
  subtle reasons.)
- Drive-by: remove some uses of `string.charAt(n)` and use `string[n]`
  instead.
2019-07-05 18:52:06 -04:00
Isiah Meadows
c33621cd52
Simplify bundler a little (#2290)
- Remove a useless abstraction
- Remove a useless write + read
- Only read when generating the bundle
- Use one watcher instead of two
- Use Chokidar to simplify and make for a better experience
2018-11-27 18:02:35 -05:00
Rasmus Porsager
68e412bb59 Fix #2232 - wrongly matching prop after comments ending with a dot (#2249)
* Fix #2232 - wrongly matching prop after comments ending with a dot

* Avoid matching urls `://`
2018-10-14 16:32:28 -04:00
ᴙɘɘᴙgYmɘᴙɘj
385458aadd Exit process with error on bundler errors (#2240) (#2244)
* Exit process with error on bundler errors (#2240)

Setting the errorCode within bundle.js does not change the exit code
when called with cli.js.  This moves the outer `try...catch` from
bundle.js to the `bundle` call in cli.js, so it can set the exit code.

* Lint

* Allow bundler to throw on error
2018-10-10 13:29:14 -04:00
Pierre-Yves Gerardy
c3d015be28 IICE => IIFE 2017-03-04 23:24:21 +01:00
Leo Horie
1fe4a08e71 lint 2016-12-02 22:03:23 -05:00
Leo Horie
713c25c9c0 fix #1404 2016-12-01 01:45:07 -05:00
Leo Horie
94804356fe bundler: throw error correctly when there's syntax error 2016-11-24 20:46:17 -05:00
Leo Horie
c3d856e139 allow a["b"] = require(...) in bundler 2016-11-16 00:09:41 -05:00
Leo Horie
0edc374729 write to bundle if first time 2016-10-27 10:29:08 -04:00
Leo Horie
f4e88a6879 don re-emit if not needed 2016-10-27 10:26:23 -04:00
Leo Horie
8c5fd9ec25 lint 2016-09-23 22:49:20 -04:00
Leo Horie
b8ef290acd improved bundler, handle width/height atts 2016-09-23 10:31:33 -04:00
Leo Horie
6c3036e5c6 fix event removal in diff
fix CI
2016-08-12 22:08:02 -04:00
Leo Horie
fc9d4f2ee4 fix "use strict" detection in bundler 2016-08-12 01:00:20 -04:00
Leo Horie
15b6ff8c8b don't stop watching if watch api returns no file name 2016-08-12 00:43:48 -04:00
Leo Horie
9bd0cd73fc inline Date.now, remove redundant comment 2016-07-30 14:55:34 -04:00
Pat Cavit
16c892037b Require tighter collision checking 2016-07-29 23:52:22 -07:00
Leo Horie
40b2053895 more bundler fixes 2016-07-30 00:48:23 -04:00
Leo Horie
d0851f8a3b handle globals in bundler 2016-07-30 00:05:00 -04:00
Leo Horie
7c736b511a rename node to vnode 2016-07-29 22:04:04 -04:00
Leo Horie
91a492b2e8 fix node module resolution in bundler 2016-07-28 23:22:37 -04:00
Leo Horie
640b19228a improve bundler 2016-07-28 22:35:22 -04:00
Leo Horie
89492a4956 modularize bundler and minify scripts 2016-06-23 01:10:30 -04:00