babel-plugin-universal-import
Advanced tools
Comparing version 1.5.3 to 2.0.0
@@ -1,2 +0,2 @@ | ||
{"/home/travis/build/faceyspacey/babel-plugin-universal-import/index.js": {"path":"/home/travis/build/faceyspacey/babel-plugin-universal-import/index.js","statementMap":{"0":{"start":{"line":3,"column":23},"end":{"line":3,"column":62}},"1":{"start":{"line":5,"column":16},"end":{"line":5,"column":33}},"2":{"start":{"line":7,"column":33},"end":{"line":11,"column":1}},"3":{"start":{"line":13,"column":27},"end":{"line":17,"column":1}},"4":{"start":{"line":19,"column":28},"end":{"line":23,"column":1}},"5":{"start":{"line":26,"column":2},"end":{"line":26,"column":41}},"6":{"start":{"line":30,"column":2},"end":{"line":30,"column":47}},"7":{"start":{"line":34,"column":2},"end":{"line":34,"column":33}},"8":{"start":{"line":38,"column":2},"end":{"line":40,"column":3}},"9":{"start":{"line":39,"column":4},"end":{"line":39,"column":56}},"10":{"start":{"line":42,"column":2},"end":{"line":42,"column":23}},"11":{"start":{"line":46,"column":2},"end":{"line":58,"column":3}},"12":{"start":{"line":47,"column":17},"end":{"line":47,"column":46}},"13":{"start":{"line":48,"column":20},"end":{"line":48,"column":64}},"14":{"start":{"line":49,"column":4},"end":{"line":51,"column":6}},"15":{"start":{"line":53,"column":4},"end":{"line":53,"column":76}},"16":{"start":{"line":53,"column":39},"end":{"line":53,"column":74}},"17":{"start":{"line":55,"column":4},"end":{"line":57,"column":6}},"18":{"start":{"line":60,"column":21},"end":{"line":60,"column":62}},"19":{"start":{"line":61,"column":2},"end":{"line":61,"column":36}},"20":{"start":{"line":65,"column":18},"end":{"line":65,"column":58}},"21":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"22":{"start":{"line":73,"column":34},"end":{"line":73,"column":47}},"23":{"start":{"line":74,"column":2},"end":{"line":74,"column":63}},"24":{"start":{"line":74,"column":15},"end":{"line":74,"column":63}},"25":{"start":{"line":76,"column":18},"end":{"line":76,"column":40}},"26":{"start":{"line":77,"column":25},"end":{"line":77,"column":47}},"27":{"start":{"line":78,"column":20},"end":{"line":78,"column":65}},"28":{"start":{"line":79,"column":2},"end":{"line":79,"column":40}},"29":{"start":{"line":83,"column":34},"end":{"line":83,"column":47}},"30":{"start":{"line":84,"column":2},"end":{"line":84,"column":41}},"31":{"start":{"line":84,"column":15},"end":{"line":84,"column":41}},"32":{"start":{"line":86,"column":2},"end":{"line":91,"column":8}},"33":{"start":{"line":87,"column":14},"end":{"line":87,"column":32}},"34":{"start":{"line":88,"column":15},"end":{"line":88,"column":52}},"35":{"start":{"line":89,"column":4},"end":{"line":89,"column":35}},"36":{"start":{"line":90,"column":4},"end":{"line":90,"column":14}},"37":{"start":{"line":95,"column":30},"end":{"line":95,"column":43}},"38":{"start":{"line":96,"column":2},"end":{"line":110,"column":3}},"39":{"start":{"line":101,"column":4},"end":{"line":109,"column":5}},"40":{"start":{"line":102,"column":6},"end":{"line":105,"column":15}},"41":{"start":{"line":108,"column":6},"end":{"line":108,"column":17}},"42":{"start":{"line":111,"column":2},"end":{"line":111,"column":13}},"43":{"start":{"line":115,"column":13},"end":{"line":115,"column":45}},"44":{"start":{"line":116,"column":2},"end":{"line":116,"column":66}},"45":{"start":{"line":120,"column":2},"end":{"line":123,"column":3}},"46":{"start":{"line":127,"column":15},"end":{"line":141,"column":8}},"47":{"start":{"line":128,"column":22},"end":{"line":128,"column":40}},"48":{"start":{"line":129,"column":23},"end":{"line":129,"column":39}},"49":{"start":{"line":131,"column":4},"end":{"line":138,"column":5}},"50":{"start":{"line":132,"column":29},"end":{"line":135,"column":7}},"51":{"start":{"line":137,"column":6},"end":{"line":137,"column":34}},"52":{"start":{"line":140,"column":4},"end":{"line":140,"column":18}},"53":{"start":{"line":143,"column":2},"end":{"line":143,"column":33}},"54":{"start":{"line":147,"column":18},"end":{"line":147,"column":37}},"55":{"start":{"line":148,"column":29},"end":{"line":148,"column":68}},"56":{"start":{"line":149,"column":28},"end":{"line":149,"column":47}},"57":{"start":{"line":150,"column":20},"end":{"line":150,"column":59}},"58":{"start":{"line":151,"column":27},"end":{"line":153,"column":46}},"59":{"start":{"line":155,"column":2},"end":{"line":155,"column":37}},"60":{"start":{"line":156,"column":2},"end":{"line":156,"column":69}},"61":{"start":{"line":158,"column":18},"end":{"line":158,"column":55}},"62":{"start":{"line":159,"column":15},"end":{"line":164,"column":15}},"63":{"start":{"line":166,"column":2},"end":{"line":166,"column":53}},"64":{"start":{"line":170,"column":15},"end":{"line":173,"column":15}},"65":{"start":{"line":175,"column":2},"end":{"line":175,"column":53}},"66":{"start":{"line":179,"column":18},"end":{"line":181,"column":15}},"67":{"start":{"line":183,"column":2},"end":{"line":183,"column":59}},"68":{"start":{"line":187,"column":28},"end":{"line":187,"column":47}},"69":{"start":{"line":188,"column":25},"end":{"line":188,"column":65}},"70":{"start":{"line":189,"column":27},"end":{"line":191,"column":20}},"71":{"start":{"line":193,"column":20},"end":{"line":195,"column":15}},"72":{"start":{"line":197,"column":2},"end":{"line":197,"column":63}},"73":{"start":{"line":200,"column":0},"end":{"line":262,"column":1}},"74":{"start":{"line":201,"column":28},"end":{"line":201,"column":52}},"75":{"start":{"line":202,"column":23},"end":{"line":202,"column":69}},"76":{"start":{"line":203,"column":26},"end":{"line":203,"column":71}},"77":{"start":{"line":204,"column":23},"end":{"line":206,"column":3}},"78":{"start":{"line":208,"column":2},"end":{"line":261,"column":3}},"79":{"start":{"line":212,"column":8},"end":{"line":212,"column":30}},"80":{"start":{"line":212,"column":24},"end":{"line":212,"column":30}},"81":{"start":{"line":213,"column":8},"end":{"line":213,"column":25}},"82":{"start":{"line":215,"column":30},"end":{"line":215,"column":54}},"83":{"start":{"line":216,"column":8},"end":{"line":216,"column":74}},"84":{"start":{"line":217,"column":32},"end":{"line":217,"column":70}},"85":{"start":{"line":219,"column":27},"end":{"line":221,"column":9}},"86":{"start":{"line":224,"column":8},"end":{"line":235,"column":9}},"87":{"start":{"line":228,"column":23},"end":{"line":231,"column":12}},"88":{"start":{"line":233,"column":10},"end":{"line":233,"column":40}},"89":{"start":{"line":234,"column":10},"end":{"line":234,"column":16}},"90":{"start":{"line":237,"column":21},"end":{"line":252,"column":11}},"91":{"start":{"line":254,"column":24},"end":{"line":254,"column":48}},"92":{"start":{"line":256,"column":21},"end":{"line":256,"column":65}},"93":{"start":{"line":257,"column":8},"end":{"line":257,"column":34}},"94":{"start":{"line":258,"column":8},"end":{"line":258,"column":38}}},"fnMap":{"0":{"name":"getImportArgPath","decl":{"start":{"line":25,"column":9},"end":{"line":25,"column":25}},"loc":{"start":{"line":25,"column":29},"end":{"line":27,"column":1}},"line":25},"1":{"name":"trimChunkNameBaseDir","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":29}},"loc":{"start":{"line":29,"column":39},"end":{"line":31,"column":1}},"line":29},"2":{"name":"prepareChunkNamePath","decl":{"start":{"line":33,"column":9},"end":{"line":33,"column":29}},"loc":{"start":{"line":33,"column":36},"end":{"line":35,"column":1}},"line":33},"3":{"name":"getImport","decl":{"start":{"line":37,"column":9},"end":{"line":37,"column":18}},"loc":{"start":{"line":37,"column":48},"end":{"line":43,"column":1}},"line":37},"4":{"name":"createTrimmedChunkName","decl":{"start":{"line":45,"column":9},"end":{"line":45,"column":31}},"loc":{"start":{"line":45,"column":50},"end":{"line":62,"column":1}},"line":45},"5":{"name":"(anonymous_5)","decl":{"start":{"line":53,"column":24},"end":{"line":53,"column":25}},"loc":{"start":{"line":53,"column":39},"end":{"line":53,"column":74}},"line":53},"6":{"name":"prepareQuasi","decl":{"start":{"line":64,"column":9},"end":{"line":64,"column":21}},"loc":{"start":{"line":64,"column":29},"end":{"line":70,"column":1}},"line":64},"7":{"name":"getMagicCommentChunkName","decl":{"start":{"line":72,"column":9},"end":{"line":72,"column":33}},"loc":{"start":{"line":72,"column":49},"end":{"line":80,"column":1}},"line":72},"8":{"name":"getComponentId","decl":{"start":{"line":82,"column":9},"end":{"line":82,"column":23}},"loc":{"start":{"line":82,"column":42},"end":{"line":92,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":86,"column":23},"end":{"line":86,"column":24}},"loc":{"start":{"line":86,"column":42},"end":{"line":91,"column":3}},"line":86},"10":{"name":"existingMagicCommentChunkName","decl":{"start":{"line":94,"column":9},"end":{"line":94,"column":38}},"loc":{"start":{"line":94,"column":54},"end":{"line":112,"column":1}},"line":94},"11":{"name":"idOption","decl":{"start":{"line":114,"column":9},"end":{"line":114,"column":17}},"loc":{"start":{"line":114,"column":36},"end":{"line":117,"column":1}},"line":114},"12":{"name":"fileOption","decl":{"start":{"line":119,"column":9},"end":{"line":119,"column":19}},"loc":{"start":{"line":119,"column":26},"end":{"line":124,"column":1}},"line":119},"13":{"name":"getCssOptionExpression","decl":{"start":{"line":126,"column":9},"end":{"line":126,"column":31}},"loc":{"start":{"line":126,"column":47},"end":{"line":144,"column":1}},"line":126},"14":{"name":"(anonymous_14)","decl":{"start":{"line":127,"column":46},"end":{"line":127,"column":47}},"loc":{"start":{"line":127,"column":67},"end":{"line":141,"column":3}},"line":127},"15":{"name":"loadOption","decl":{"start":{"line":146,"column":9},"end":{"line":146,"column":19}},"loc":{"start":{"line":146,"column":67},"end":{"line":167,"column":1}},"line":146},"16":{"name":"pathOption","decl":{"start":{"line":169,"column":9},"end":{"line":169,"column":19}},"loc":{"start":{"line":169,"column":55},"end":{"line":176,"column":1}},"line":169},"17":{"name":"resolveOption","decl":{"start":{"line":178,"column":9},"end":{"line":178,"column":22}},"loc":{"start":{"line":178,"column":58},"end":{"line":184,"column":1}},"line":178},"18":{"name":"chunkNameOption","decl":{"start":{"line":186,"column":9},"end":{"line":186,"column":24}},"loc":{"start":{"line":186,"column":62},"end":{"line":198,"column":1}},"line":186},"19":{"name":"universalImportPlugin","decl":{"start":{"line":200,"column":26},"end":{"line":200,"column":47}},"loc":{"start":{"line":200,"column":72},"end":{"line":262,"column":1}},"line":200}},"branchMap":{"0":{"loc":{"start":{"line":38,"column":2},"end":{"line":40,"column":3}},"type":"if","locations":[{"start":{"line":38,"column":2},"end":{"line":40,"column":3}},{"start":{"line":38,"column":2},"end":{"line":40,"column":3}}],"line":38},"1":{"loc":{"start":{"line":46,"column":2},"end":{"line":58,"column":3}},"type":"if","locations":[{"start":{"line":46,"column":2},"end":{"line":58,"column":3}},{"start":{"line":46,"column":2},"end":{"line":58,"column":3}}],"line":46},"2":{"loc":{"start":{"line":53,"column":39},"end":{"line":53,"column":74}},"type":"cond-expr","locations":[{"start":{"line":53,"column":47},"end":{"line":53,"column":66}},{"start":{"line":53,"column":69},"end":{"line":53,"column":74}}],"line":53},"3":{"loc":{"start":{"line":74,"column":2},"end":{"line":74,"column":63}},"type":"if","locations":[{"start":{"line":74,"column":2},"end":{"line":74,"column":63}},{"start":{"line":74,"column":2},"end":{"line":74,"column":63}}],"line":74},"4":{"loc":{"start":{"line":78,"column":31},"end":{"line":78,"column":64}},"type":"cond-expr","locations":[{"start":{"line":78,"column":48},"end":{"line":78,"column":59}},{"start":{"line":78,"column":62},"end":{"line":78,"column":64}}],"line":78},"5":{"loc":{"start":{"line":84,"column":2},"end":{"line":84,"column":41}},"type":"if","locations":[{"start":{"line":84,"column":2},"end":{"line":84,"column":41}},{"start":{"line":84,"column":2},"end":{"line":84,"column":41}}],"line":84},"6":{"loc":{"start":{"line":88,"column":15},"end":{"line":88,"column":52}},"type":"binary-expr","locations":[{"start":{"line":88,"column":15},"end":{"line":88,"column":29}},{"start":{"line":88,"column":33},"end":{"line":88,"column":52}}],"line":88},"7":{"loc":{"start":{"line":89,"column":11},"end":{"line":89,"column":35}},"type":"cond-expr","locations":[{"start":{"line":89,"column":16},"end":{"line":89,"column":31}},{"start":{"line":89,"column":34},"end":{"line":89,"column":35}}],"line":89},"8":{"loc":{"start":{"line":96,"column":2},"end":{"line":110,"column":3}},"type":"if","locations":[{"start":{"line":96,"column":2},"end":{"line":110,"column":3}},{"start":{"line":96,"column":2},"end":{"line":110,"column":3}}],"line":96},"9":{"loc":{"start":{"line":97,"column":4},"end":{"line":99,"column":63}},"type":"binary-expr","locations":[{"start":{"line":97,"column":4},"end":{"line":97,"column":19}},{"start":{"line":98,"column":4},"end":{"line":98,"column":26}},{"start":{"line":99,"column":4},"end":{"line":99,"column":63}}],"line":97},"10":{"loc":{"start":{"line":131,"column":4},"end":{"line":138,"column":5}},"type":"if","locations":[{"start":{"line":131,"column":4},"end":{"line":138,"column":5}},{"start":{"line":131,"column":4},"end":{"line":138,"column":5}}],"line":131},"11":{"loc":{"start":{"line":150,"column":20},"end":{"line":150,"column":59}},"type":"binary-expr","locations":[{"start":{"line":150,"column":20},"end":{"line":150,"column":37}},{"start":{"line":150,"column":41},"end":{"line":150,"column":59}}],"line":150},"12":{"loc":{"start":{"line":151,"column":27},"end":{"line":153,"column":46}},"type":"cond-expr","locations":[{"start":{"line":152,"column":6},"end":{"line":152,"column":41}},{"start":{"line":153,"column":6},"end":{"line":153,"column":46}}],"line":151},"13":{"loc":{"start":{"line":189,"column":27},"end":{"line":191,"column":20}},"type":"cond-expr","locations":[{"start":{"line":190,"column":6},"end":{"line":190,"column":40}},{"start":{"line":191,"column":6},"end":{"line":191,"column":20}}],"line":189},"14":{"loc":{"start":{"line":212,"column":8},"end":{"line":212,"column":30}},"type":"if","locations":[{"start":{"line":212,"column":8},"end":{"line":212,"column":30}},{"start":{"line":212,"column":8},"end":{"line":212,"column":30}}],"line":212},"15":{"loc":{"start":{"line":224,"column":8},"end":{"line":235,"column":9}},"type":"if","locations":[{"start":{"line":224,"column":8},"end":{"line":235,"column":9}},{"start":{"line":224,"column":8},"end":{"line":235,"column":9}}],"line":224},"16":{"loc":{"start":{"line":225,"column":10},"end":{"line":226,"column":59}},"type":"binary-expr","locations":[{"start":{"line":225,"column":10},"end":{"line":225,"column":53}},{"start":{"line":226,"column":10},"end":{"line":226,"column":59}}],"line":225},"17":{"loc":{"start":{"line":237,"column":21},"end":{"line":252,"column":11}},"type":"cond-expr","locations":[{"start":{"line":238,"column":12},"end":{"line":244,"column":11}},{"start":{"line":245,"column":12},"end":{"line":252,"column":11}}],"line":237}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":27,"6":38,"7":11,"8":40,"9":40,"10":40,"11":25,"12":15,"13":15,"14":15,"15":15,"16":26,"17":15,"18":10,"19":10,"20":11,"21":11,"22":13,"23":13,"24":5,"25":8,"26":8,"27":8,"28":8,"29":13,"30":13,"31":6,"32":7,"33":12,"34":12,"35":12,"36":12,"37":14,"38":14,"39":1,"40":1,"41":0,"42":13,"43":13,"44":13,"45":13,"46":13,"47":13,"48":13,"49":13,"50":1,"51":1,"52":13,"53":13,"54":13,"55":13,"56":13,"57":13,"58":13,"59":13,"60":13,"61":13,"62":13,"63":13,"64":13,"65":13,"66":13,"67":13,"68":13,"69":13,"70":13,"71":13,"72":13,"73":1,"74":15,"75":15,"76":15,"77":15,"78":15,"79":27,"80":13,"81":14,"82":14,"83":14,"84":14,"85":14,"86":14,"87":1,"88":1,"89":1,"90":13,"91":13,"92":13,"93":13,"94":13},"f":{"0":27,"1":38,"2":11,"3":40,"4":25,"5":26,"6":11,"7":13,"8":13,"9":12,"10":14,"11":13,"12":13,"13":13,"14":13,"15":13,"16":13,"17":13,"18":13,"19":15},"b":{"0":[40,0],"1":[15,10],"2":[11,15],"3":[5,8],"4":[6,2],"5":[6,7],"6":[12,5],"7":[5,7],"8":[1,13],"9":[14,1,1],"10":[1,12],"11":[13,12],"12":[1,12],"13":[1,12],"14":[13,14],"15":[1,13],"16":[14,14],"17":[1,12]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"8897aa65bf6edd5a9a6a0531c2ba433cf9b29555"} | ||
{"/home/travis/build/faceyspacey/babel-plugin-universal-import/index.js": {"path":"/home/travis/build/faceyspacey/babel-plugin-universal-import/index.js","statementMap":{"0":{"start":{"line":3,"column":23},"end":{"line":3,"column":62}},"1":{"start":{"line":5,"column":16},"end":{"line":5,"column":33}},"2":{"start":{"line":7,"column":33},"end":{"line":11,"column":1}},"3":{"start":{"line":13,"column":27},"end":{"line":17,"column":1}},"4":{"start":{"line":19,"column":28},"end":{"line":23,"column":1}},"5":{"start":{"line":26,"column":2},"end":{"line":26,"column":41}},"6":{"start":{"line":30,"column":2},"end":{"line":30,"column":47}},"7":{"start":{"line":34,"column":2},"end":{"line":34,"column":33}},"8":{"start":{"line":38,"column":2},"end":{"line":40,"column":3}},"9":{"start":{"line":39,"column":4},"end":{"line":39,"column":56}},"10":{"start":{"line":42,"column":2},"end":{"line":42,"column":23}},"11":{"start":{"line":46,"column":2},"end":{"line":58,"column":3}},"12":{"start":{"line":47,"column":17},"end":{"line":47,"column":46}},"13":{"start":{"line":48,"column":20},"end":{"line":48,"column":64}},"14":{"start":{"line":49,"column":4},"end":{"line":51,"column":6}},"15":{"start":{"line":53,"column":4},"end":{"line":53,"column":76}},"16":{"start":{"line":53,"column":39},"end":{"line":53,"column":74}},"17":{"start":{"line":55,"column":4},"end":{"line":57,"column":6}},"18":{"start":{"line":60,"column":21},"end":{"line":60,"column":62}},"19":{"start":{"line":61,"column":2},"end":{"line":61,"column":36}},"20":{"start":{"line":65,"column":18},"end":{"line":65,"column":58}},"21":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"22":{"start":{"line":73,"column":34},"end":{"line":73,"column":47}},"23":{"start":{"line":74,"column":2},"end":{"line":74,"column":63}},"24":{"start":{"line":74,"column":15},"end":{"line":74,"column":63}},"25":{"start":{"line":76,"column":18},"end":{"line":76,"column":40}},"26":{"start":{"line":77,"column":25},"end":{"line":77,"column":47}},"27":{"start":{"line":78,"column":20},"end":{"line":78,"column":65}},"28":{"start":{"line":79,"column":2},"end":{"line":79,"column":40}},"29":{"start":{"line":83,"column":34},"end":{"line":83,"column":47}},"30":{"start":{"line":84,"column":2},"end":{"line":84,"column":41}},"31":{"start":{"line":84,"column":15},"end":{"line":84,"column":41}},"32":{"start":{"line":86,"column":2},"end":{"line":91,"column":8}},"33":{"start":{"line":87,"column":14},"end":{"line":87,"column":32}},"34":{"start":{"line":88,"column":15},"end":{"line":88,"column":52}},"35":{"start":{"line":89,"column":4},"end":{"line":89,"column":35}},"36":{"start":{"line":90,"column":4},"end":{"line":90,"column":14}},"37":{"start":{"line":95,"column":30},"end":{"line":95,"column":43}},"38":{"start":{"line":96,"column":2},"end":{"line":110,"column":3}},"39":{"start":{"line":101,"column":4},"end":{"line":109,"column":5}},"40":{"start":{"line":102,"column":6},"end":{"line":105,"column":15}},"41":{"start":{"line":108,"column":6},"end":{"line":108,"column":17}},"42":{"start":{"line":111,"column":2},"end":{"line":111,"column":13}},"43":{"start":{"line":115,"column":13},"end":{"line":115,"column":45}},"44":{"start":{"line":116,"column":2},"end":{"line":116,"column":66}},"45":{"start":{"line":120,"column":2},"end":{"line":123,"column":3}},"46":{"start":{"line":127,"column":15},"end":{"line":141,"column":8}},"47":{"start":{"line":128,"column":22},"end":{"line":128,"column":40}},"48":{"start":{"line":129,"column":23},"end":{"line":129,"column":39}},"49":{"start":{"line":131,"column":4},"end":{"line":138,"column":5}},"50":{"start":{"line":132,"column":29},"end":{"line":135,"column":7}},"51":{"start":{"line":137,"column":6},"end":{"line":137,"column":34}},"52":{"start":{"line":140,"column":4},"end":{"line":140,"column":18}},"53":{"start":{"line":143,"column":2},"end":{"line":143,"column":33}},"54":{"start":{"line":147,"column":18},"end":{"line":147,"column":37}},"55":{"start":{"line":148,"column":29},"end":{"line":148,"column":68}},"56":{"start":{"line":149,"column":28},"end":{"line":149,"column":47}},"57":{"start":{"line":150,"column":20},"end":{"line":150,"column":59}},"58":{"start":{"line":151,"column":27},"end":{"line":153,"column":46}},"59":{"start":{"line":155,"column":2},"end":{"line":155,"column":37}},"60":{"start":{"line":156,"column":2},"end":{"line":156,"column":69}},"61":{"start":{"line":158,"column":18},"end":{"line":158,"column":55}},"62":{"start":{"line":159,"column":15},"end":{"line":164,"column":15}},"63":{"start":{"line":166,"column":2},"end":{"line":166,"column":53}},"64":{"start":{"line":170,"column":15},"end":{"line":173,"column":15}},"65":{"start":{"line":175,"column":2},"end":{"line":175,"column":53}},"66":{"start":{"line":179,"column":18},"end":{"line":181,"column":15}},"67":{"start":{"line":183,"column":2},"end":{"line":183,"column":59}},"68":{"start":{"line":187,"column":28},"end":{"line":187,"column":47}},"69":{"start":{"line":188,"column":25},"end":{"line":188,"column":65}},"70":{"start":{"line":189,"column":27},"end":{"line":191,"column":20}},"71":{"start":{"line":193,"column":20},"end":{"line":195,"column":15}},"72":{"start":{"line":197,"column":2},"end":{"line":197,"column":63}},"73":{"start":{"line":201,"column":29},"end":{"line":201,"column":59}},"74":{"start":{"line":203,"column":4},"end":{"line":204,"column":40}},"75":{"start":{"line":205,"column":2},"end":{"line":205,"column":61}},"76":{"start":{"line":208,"column":0},"end":{"line":274,"column":1}},"77":{"start":{"line":209,"column":28},"end":{"line":209,"column":52}},"78":{"start":{"line":210,"column":23},"end":{"line":210,"column":69}},"79":{"start":{"line":211,"column":26},"end":{"line":211,"column":71}},"80":{"start":{"line":212,"column":23},"end":{"line":214,"column":3}},"81":{"start":{"line":216,"column":2},"end":{"line":273,"column":3}},"82":{"start":{"line":220,"column":8},"end":{"line":220,"column":30}},"83":{"start":{"line":220,"column":24},"end":{"line":220,"column":30}},"84":{"start":{"line":221,"column":8},"end":{"line":221,"column":25}},"85":{"start":{"line":223,"column":30},"end":{"line":223,"column":54}},"86":{"start":{"line":224,"column":8},"end":{"line":224,"column":74}},"87":{"start":{"line":226,"column":8},"end":{"line":228,"column":9}},"88":{"start":{"line":227,"column":10},"end":{"line":227,"column":70}},"89":{"start":{"line":229,"column":32},"end":{"line":229,"column":70}},"90":{"start":{"line":231,"column":27},"end":{"line":233,"column":9}},"91":{"start":{"line":236,"column":8},"end":{"line":247,"column":9}},"92":{"start":{"line":240,"column":23},"end":{"line":243,"column":12}},"93":{"start":{"line":245,"column":10},"end":{"line":245,"column":40}},"94":{"start":{"line":246,"column":10},"end":{"line":246,"column":16}},"95":{"start":{"line":249,"column":21},"end":{"line":264,"column":11}},"96":{"start":{"line":266,"column":24},"end":{"line":266,"column":48}},"97":{"start":{"line":268,"column":21},"end":{"line":268,"column":65}},"98":{"start":{"line":269,"column":8},"end":{"line":269,"column":34}},"99":{"start":{"line":270,"column":8},"end":{"line":270,"column":38}}},"fnMap":{"0":{"name":"getImportArgPath","decl":{"start":{"line":25,"column":9},"end":{"line":25,"column":25}},"loc":{"start":{"line":25,"column":29},"end":{"line":27,"column":1}},"line":25},"1":{"name":"trimChunkNameBaseDir","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":29}},"loc":{"start":{"line":29,"column":39},"end":{"line":31,"column":1}},"line":29},"2":{"name":"prepareChunkNamePath","decl":{"start":{"line":33,"column":9},"end":{"line":33,"column":29}},"loc":{"start":{"line":33,"column":36},"end":{"line":35,"column":1}},"line":33},"3":{"name":"getImport","decl":{"start":{"line":37,"column":9},"end":{"line":37,"column":18}},"loc":{"start":{"line":37,"column":48},"end":{"line":43,"column":1}},"line":37},"4":{"name":"createTrimmedChunkName","decl":{"start":{"line":45,"column":9},"end":{"line":45,"column":31}},"loc":{"start":{"line":45,"column":50},"end":{"line":62,"column":1}},"line":45},"5":{"name":"(anonymous_5)","decl":{"start":{"line":53,"column":24},"end":{"line":53,"column":25}},"loc":{"start":{"line":53,"column":39},"end":{"line":53,"column":74}},"line":53},"6":{"name":"prepareQuasi","decl":{"start":{"line":64,"column":9},"end":{"line":64,"column":21}},"loc":{"start":{"line":64,"column":29},"end":{"line":70,"column":1}},"line":64},"7":{"name":"getMagicCommentChunkName","decl":{"start":{"line":72,"column":9},"end":{"line":72,"column":33}},"loc":{"start":{"line":72,"column":49},"end":{"line":80,"column":1}},"line":72},"8":{"name":"getComponentId","decl":{"start":{"line":82,"column":9},"end":{"line":82,"column":23}},"loc":{"start":{"line":82,"column":42},"end":{"line":92,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":86,"column":23},"end":{"line":86,"column":24}},"loc":{"start":{"line":86,"column":42},"end":{"line":91,"column":3}},"line":86},"10":{"name":"existingMagicCommentChunkName","decl":{"start":{"line":94,"column":9},"end":{"line":94,"column":38}},"loc":{"start":{"line":94,"column":54},"end":{"line":112,"column":1}},"line":94},"11":{"name":"idOption","decl":{"start":{"line":114,"column":9},"end":{"line":114,"column":17}},"loc":{"start":{"line":114,"column":36},"end":{"line":117,"column":1}},"line":114},"12":{"name":"fileOption","decl":{"start":{"line":119,"column":9},"end":{"line":119,"column":19}},"loc":{"start":{"line":119,"column":26},"end":{"line":124,"column":1}},"line":119},"13":{"name":"getCssOptionExpression","decl":{"start":{"line":126,"column":9},"end":{"line":126,"column":31}},"loc":{"start":{"line":126,"column":47},"end":{"line":144,"column":1}},"line":126},"14":{"name":"(anonymous_14)","decl":{"start":{"line":127,"column":46},"end":{"line":127,"column":47}},"loc":{"start":{"line":127,"column":67},"end":{"line":141,"column":3}},"line":127},"15":{"name":"loadOption","decl":{"start":{"line":146,"column":9},"end":{"line":146,"column":19}},"loc":{"start":{"line":146,"column":67},"end":{"line":167,"column":1}},"line":146},"16":{"name":"pathOption","decl":{"start":{"line":169,"column":9},"end":{"line":169,"column":19}},"loc":{"start":{"line":169,"column":55},"end":{"line":176,"column":1}},"line":169},"17":{"name":"resolveOption","decl":{"start":{"line":178,"column":9},"end":{"line":178,"column":22}},"loc":{"start":{"line":178,"column":58},"end":{"line":184,"column":1}},"line":178},"18":{"name":"chunkNameOption","decl":{"start":{"line":186,"column":9},"end":{"line":186,"column":24}},"loc":{"start":{"line":186,"column":62},"end":{"line":198,"column":1}},"line":186},"19":{"name":"checkForNestedChunkName","decl":{"start":{"line":200,"column":9},"end":{"line":200,"column":32}},"loc":{"start":{"line":200,"column":39},"end":{"line":206,"column":1}},"line":200},"20":{"name":"universalImportPlugin","decl":{"start":{"line":208,"column":26},"end":{"line":208,"column":47}},"loc":{"start":{"line":208,"column":72},"end":{"line":274,"column":1}},"line":208}},"branchMap":{"0":{"loc":{"start":{"line":38,"column":2},"end":{"line":40,"column":3}},"type":"if","locations":[{"start":{"line":38,"column":2},"end":{"line":40,"column":3}},{"start":{"line":38,"column":2},"end":{"line":40,"column":3}}],"line":38},"1":{"loc":{"start":{"line":46,"column":2},"end":{"line":58,"column":3}},"type":"if","locations":[{"start":{"line":46,"column":2},"end":{"line":58,"column":3}},{"start":{"line":46,"column":2},"end":{"line":58,"column":3}}],"line":46},"2":{"loc":{"start":{"line":53,"column":39},"end":{"line":53,"column":74}},"type":"cond-expr","locations":[{"start":{"line":53,"column":47},"end":{"line":53,"column":66}},{"start":{"line":53,"column":69},"end":{"line":53,"column":74}}],"line":53},"3":{"loc":{"start":{"line":74,"column":2},"end":{"line":74,"column":63}},"type":"if","locations":[{"start":{"line":74,"column":2},"end":{"line":74,"column":63}},{"start":{"line":74,"column":2},"end":{"line":74,"column":63}}],"line":74},"4":{"loc":{"start":{"line":78,"column":31},"end":{"line":78,"column":64}},"type":"cond-expr","locations":[{"start":{"line":78,"column":48},"end":{"line":78,"column":59}},{"start":{"line":78,"column":62},"end":{"line":78,"column":64}}],"line":78},"5":{"loc":{"start":{"line":84,"column":2},"end":{"line":84,"column":41}},"type":"if","locations":[{"start":{"line":84,"column":2},"end":{"line":84,"column":41}},{"start":{"line":84,"column":2},"end":{"line":84,"column":41}}],"line":84},"6":{"loc":{"start":{"line":88,"column":15},"end":{"line":88,"column":52}},"type":"binary-expr","locations":[{"start":{"line":88,"column":15},"end":{"line":88,"column":29}},{"start":{"line":88,"column":33},"end":{"line":88,"column":52}}],"line":88},"7":{"loc":{"start":{"line":89,"column":11},"end":{"line":89,"column":35}},"type":"cond-expr","locations":[{"start":{"line":89,"column":16},"end":{"line":89,"column":31}},{"start":{"line":89,"column":34},"end":{"line":89,"column":35}}],"line":89},"8":{"loc":{"start":{"line":96,"column":2},"end":{"line":110,"column":3}},"type":"if","locations":[{"start":{"line":96,"column":2},"end":{"line":110,"column":3}},{"start":{"line":96,"column":2},"end":{"line":110,"column":3}}],"line":96},"9":{"loc":{"start":{"line":97,"column":4},"end":{"line":99,"column":63}},"type":"binary-expr","locations":[{"start":{"line":97,"column":4},"end":{"line":97,"column":19}},{"start":{"line":98,"column":4},"end":{"line":98,"column":26}},{"start":{"line":99,"column":4},"end":{"line":99,"column":63}}],"line":97},"10":{"loc":{"start":{"line":131,"column":4},"end":{"line":138,"column":5}},"type":"if","locations":[{"start":{"line":131,"column":4},"end":{"line":138,"column":5}},{"start":{"line":131,"column":4},"end":{"line":138,"column":5}}],"line":131},"11":{"loc":{"start":{"line":150,"column":20},"end":{"line":150,"column":59}},"type":"binary-expr","locations":[{"start":{"line":150,"column":20},"end":{"line":150,"column":37}},{"start":{"line":150,"column":41},"end":{"line":150,"column":59}}],"line":150},"12":{"loc":{"start":{"line":151,"column":27},"end":{"line":153,"column":46}},"type":"cond-expr","locations":[{"start":{"line":152,"column":6},"end":{"line":152,"column":41}},{"start":{"line":153,"column":6},"end":{"line":153,"column":46}}],"line":151},"13":{"loc":{"start":{"line":189,"column":27},"end":{"line":191,"column":20}},"type":"cond-expr","locations":[{"start":{"line":190,"column":6},"end":{"line":190,"column":40}},{"start":{"line":191,"column":6},"end":{"line":191,"column":20}}],"line":189},"14":{"loc":{"start":{"line":203,"column":4},"end":{"line":204,"column":40}},"type":"binary-expr","locations":[{"start":{"line":203,"column":4},"end":{"line":203,"column":50}},{"start":{"line":204,"column":4},"end":{"line":204,"column":40}}],"line":203},"15":{"loc":{"start":{"line":205,"column":9},"end":{"line":205,"column":61}},"type":"binary-expr","locations":[{"start":{"line":205,"column":9},"end":{"line":205,"column":17}},{"start":{"line":205,"column":21},"end":{"line":205,"column":61}}],"line":205},"16":{"loc":{"start":{"line":220,"column":8},"end":{"line":220,"column":30}},"type":"if","locations":[{"start":{"line":220,"column":8},"end":{"line":220,"column":30}},{"start":{"line":220,"column":8},"end":{"line":220,"column":30}}],"line":220},"17":{"loc":{"start":{"line":226,"column":8},"end":{"line":228,"column":9}},"type":"if","locations":[{"start":{"line":226,"column":8},"end":{"line":228,"column":9}},{"start":{"line":226,"column":8},"end":{"line":228,"column":9}}],"line":226},"18":{"loc":{"start":{"line":236,"column":8},"end":{"line":247,"column":9}},"type":"if","locations":[{"start":{"line":236,"column":8},"end":{"line":247,"column":9}},{"start":{"line":236,"column":8},"end":{"line":247,"column":9}}],"line":236},"19":{"loc":{"start":{"line":237,"column":10},"end":{"line":238,"column":59}},"type":"binary-expr","locations":[{"start":{"line":237,"column":10},"end":{"line":237,"column":53}},{"start":{"line":238,"column":10},"end":{"line":238,"column":59}}],"line":237},"20":{"loc":{"start":{"line":249,"column":21},"end":{"line":264,"column":11}},"type":"cond-expr","locations":[{"start":{"line":250,"column":12},"end":{"line":256,"column":11}},{"start":{"line":257,"column":12},"end":{"line":264,"column":11}}],"line":249}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":31,"6":57,"7":13,"8":46,"9":46,"10":46,"11":27,"12":17,"13":17,"14":17,"15":17,"16":28,"17":17,"18":10,"19":10,"20":11,"21":11,"22":30,"23":30,"24":10,"25":20,"26":20,"27":20,"28":20,"29":15,"30":15,"31":6,"32":9,"33":14,"34":14,"35":14,"36":14,"37":16,"38":16,"39":1,"40":1,"41":0,"42":15,"43":15,"44":15,"45":15,"46":15,"47":15,"48":15,"49":15,"50":1,"51":1,"52":15,"53":15,"54":15,"55":15,"56":15,"57":15,"58":15,"59":15,"60":15,"61":15,"62":15,"63":15,"64":15,"65":15,"66":15,"67":15,"68":15,"69":15,"70":15,"71":15,"72":15,"73":15,"74":15,"75":15,"76":1,"77":17,"78":17,"79":17,"80":17,"81":17,"82":31,"83":15,"84":16,"85":16,"86":16,"87":16,"88":15,"89":16,"90":16,"91":16,"92":1,"93":1,"94":1,"95":15,"96":15,"97":15,"98":15,"99":15},"f":{"0":31,"1":57,"2":13,"3":46,"4":27,"5":28,"6":11,"7":30,"8":15,"9":14,"10":16,"11":15,"12":15,"13":15,"14":15,"15":15,"16":15,"17":15,"18":15,"19":15,"20":17},"b":{"0":[46,0],"1":[17,10],"2":[11,17],"3":[10,20],"4":[12,8],"5":[6,9],"6":[14,5],"7":[5,9],"8":[1,15],"9":[16,1,1],"10":[1,14],"11":[15,12],"12":[3,12],"13":[3,12],"14":[15,9],"15":[15,2],"16":[15,16],"17":[15,1],"18":[1,15],"19":[16,16],"20":[1,14]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"62546b2f6242d0782072325e9794ce362b5c90c6"} | ||
} |
12
index.js
@@ -200,2 +200,10 @@ 'use-strict' | ||
function checkForNestedChunkName(node) { | ||
const generatedChunkName = getMagicCommentChunkName(node) | ||
const isNested = | ||
generatedChunkName.indexOf('[request]') === -1 && | ||
generatedChunkName.indexOf('/') > -1 | ||
return isNested && prepareChunkNamePath(generatedChunkName) | ||
} | ||
module.exports = function universalImportPlugin({ types: t, template }) { | ||
@@ -218,2 +226,6 @@ const chunkNameTemplate = template('() => MODULE') | ||
t.existingChunkName = existingMagicCommentChunkName(importArgNode) | ||
// no existing chunkname, no problem - we will reuse that for fixing nested chunk names | ||
if (!t.existingChunkName) { | ||
t.existingChunkName = checkForNestedChunkName(importArgNode) | ||
} | ||
const universalImport = getImport(p, IMPORT_UNIVERSAL_DEFAULT) | ||
@@ -220,0 +232,0 @@ |
{ | ||
"name": "babel-plugin-universal-import", | ||
"version": "1.5.3", | ||
"version": "2.0.0", | ||
"description": "Babel plugin to transform import() into its Universal counterpart", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
422633
837