File tree Expand file tree Collapse file tree 6 files changed +23
-10
lines changed Expand file tree Collapse file tree 6 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,13 @@ function reload (options) {
7070
7171// Reimplement client version check from autoupdate package
7272function checkNewVersionDocument ( doc ) {
73- if ( doc . _id === 'version' && doc . version !== autoupdateVersion ) {
74- reload ( )
73+ if ( doc && doc . version && doc . _id && __meteor_runtime_config__ . autoupdate . versions [ doc . _id ] ) {
74+ if ( __meteor_runtime_config__ . autoupdate . versions [ doc . _id ] . version !== doc . version ) {
75+ reload ( )
76+ }
7577 }
7678}
77- var autoupdateVersion = __meteor_runtime_config__ . autoupdateVersion || `unknown`
79+
7880var ClientVersions = Autoupdate . _ClientVersions
7981if ( ClientVersions ) {
8082 ClientVersions . find ( ) . observe ( {
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ Package.describe({
88} )
99
1010Package . onUse ( function ( api ) {
11- api . use ( 'ecmascript@0.11 .1' )
11+ api . use ( 'ecmascript@0.12 .1' )
1212 api . use ( 'reload@1.2.0' )
13- api . use ( 'autoupdate@1.4 .0' )
13+ api . use ( 'autoupdate@1.5 .0' )
1414 api . use ( 'reactive-var@1.0.11' )
1515 api . mainModule ( 'client/dev-client.js' , 'client' )
1616} )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Package.describe({
88} )
99
1010Package . onUse ( function ( api ) {
11- api . use ( 'ecmascript@0.11 .1' )
12- api . use ( 'webapp@1.6 .0' )
11+ api . use ( 'ecmascript@0.12 .1' )
12+ api . use ( 'webapp@1.7 .0' )
1313 api . mainModule ( 'server/main.js' , 'server' )
1414} )
Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ meteor add akryum:vue-component
1313
1414## Usage
1515
16+ ### Babel cache
17+
18+ The babel cache folder defaults to ` .cache ` , but you can override it with the ` BABEL_CACHE_DIR ` environment variable:
19+
20+ ```
21+ cross-env BABEL_CACHE_DIR=cacheFolderName
22+ ```
23+
1624### Hot-reloading
1725
1826To enable component hot-reloading, make sure that you launch meteor in development mode (typically with ` meteor ` or ` meteor run ` ). The server console should print this line:
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ Package.describe({
99Package . registerBuildPlugin ( {
1010 name : 'vue-component' ,
1111 use : [
12- 'ecmascript@0.11 .1' ,
13- 'caching-compiler@1.1.12 ' ,
14- 'babel-compiler@7.1 .1' ,
12+ 'ecmascript@0.12 .1' ,
13+ 'caching-compiler@1.2.0 ' ,
14+ 'babel-compiler@7.2 .1' ,
1515 'templating-tools@1.1.2' ,
1616 ] ,
1717 sources : [
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ function toFunction (code) {
1616// Cache
1717global . _vue_cache = global . _vue_cache || { }
1818
19+ // Babel cache directory
20+ process . env . BABEL_CACHE_DIR = process . env . BABEL_CACHE_DIR || '.cache'
21+
1922const babelOptions = Babel . getDefaultOptions ( )
2023
2124// Compiler
You can’t perform that action at this time.
0 commit comments