babel-plugin-universal-import
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -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":0},"end":{"line":187,"column":1}},"1":{"start":{"line":4,"column":18},"end":{"line":4,"column":35}},"2":{"start":{"line":5,"column":28},"end":{"line":5,"column":55}},"3":{"start":{"line":6,"column":22},"end":{"line":6,"column":43}},"4":{"start":{"line":7,"column":17},"end":{"line":7,"column":33}},"5":{"start":{"line":9,"column":28},"end":{"line":9,"column":52}},"6":{"start":{"line":10,"column":23},"end":{"line":10,"column":69}},"7":{"start":{"line":11,"column":26},"end":{"line":11,"column":71}},"8":{"start":{"line":12,"column":23},"end":{"line":14,"column":3}},"9":{"start":{"line":17,"column":4},"end":{"line":17,"column":43}},"10":{"start":{"line":21,"column":4},"end":{"line":21,"column":49}},"11":{"start":{"line":25,"column":4},"end":{"line":32,"column":5}},"12":{"start":{"line":26,"column":24},"end":{"line":30,"column":7}},"13":{"start":{"line":31,"column":6},"end":{"line":31,"column":47}},"14":{"start":{"line":34,"column":4},"end":{"line":34,"column":40}},"15":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"16":{"start":{"line":39,"column":24},"end":{"line":43,"column":7}},"17":{"start":{"line":44,"column":6},"end":{"line":44,"column":41}},"18":{"start":{"line":47,"column":4},"end":{"line":47,"column":34}},"19":{"start":{"line":51,"column":4},"end":{"line":54,"column":5}},"20":{"start":{"line":52,"column":19},"end":{"line":52,"column":66}},"21":{"start":{"line":53,"column":6},"end":{"line":53,"column":31}},"22":{"start":{"line":56,"column":4},"end":{"line":56,"column":29}},"23":{"start":{"line":60,"column":4},"end":{"line":70,"column":5}},"24":{"start":{"line":61,"column":21},"end":{"line":61,"column":50}},"25":{"start":{"line":62,"column":22},"end":{"line":62,"column":66}},"26":{"start":{"line":63,"column":6},"end":{"line":65,"column":8}},"27":{"start":{"line":67,"column":6},"end":{"line":69,"column":8}},"28":{"start":{"line":72,"column":23},"end":{"line":72,"column":64}},"29":{"start":{"line":73,"column":4},"end":{"line":73,"column":38}},"30":{"start":{"line":77,"column":36},"end":{"line":77,"column":49}},"31":{"start":{"line":78,"column":4},"end":{"line":78,"column":65}},"32":{"start":{"line":78,"column":17},"end":{"line":78,"column":65}},"33":{"start":{"line":80,"column":20},"end":{"line":80,"column":42}},"34":{"start":{"line":81,"column":27},"end":{"line":81,"column":49}},"35":{"start":{"line":82,"column":22},"end":{"line":82,"column":67}},"36":{"start":{"line":83,"column":4},"end":{"line":83,"column":42}},"37":{"start":{"line":87,"column":36},"end":{"line":87,"column":49}},"38":{"start":{"line":88,"column":4},"end":{"line":88,"column":43}},"39":{"start":{"line":88,"column":17},"end":{"line":88,"column":43}},"40":{"start":{"line":90,"column":4},"end":{"line":94,"column":10}},"41":{"start":{"line":91,"column":16},"end":{"line":91,"column":34}},"42":{"start":{"line":92,"column":17},"end":{"line":92,"column":54}},"43":{"start":{"line":93,"column":6},"end":{"line":93,"column":46}},"44":{"start":{"line":98,"column":15},"end":{"line":98,"column":44}},"45":{"start":{"line":99,"column":4},"end":{"line":99,"column":68}},"46":{"start":{"line":103,"column":4},"end":{"line":106,"column":5}},"47":{"start":{"line":110,"column":20},"end":{"line":110,"column":39}},"48":{"start":{"line":111,"column":22},"end":{"line":111,"column":61}},"49":{"start":{"line":113,"column":4},"end":{"line":113,"column":39}},"50":{"start":{"line":114,"column":4},"end":{"line":114,"column":71}},"51":{"start":{"line":116,"column":17},"end":{"line":120,"column":17}},"52":{"start":{"line":122,"column":4},"end":{"line":122,"column":55}},"53":{"start":{"line":126,"column":17},"end":{"line":129,"column":17}},"54":{"start":{"line":131,"column":4},"end":{"line":131,"column":55}},"55":{"start":{"line":135,"column":20},"end":{"line":137,"column":17}},"56":{"start":{"line":139,"column":4},"end":{"line":139,"column":61}},"57":{"start":{"line":143,"column":22},"end":{"line":145,"column":17}},"58":{"start":{"line":147,"column":4},"end":{"line":147,"column":65}},"59":{"start":{"line":150,"column":2},"end":{"line":186,"column":3}},"60":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"61":{"start":{"line":154,"column":24},"end":{"line":154,"column":30}},"62":{"start":{"line":155,"column":8},"end":{"line":155,"column":25}},"63":{"start":{"line":157,"column":30},"end":{"line":157,"column":54}},"64":{"start":{"line":158,"column":32},"end":{"line":158,"column":53}},"65":{"start":{"line":161,"column":8},"end":{"line":171,"column":9}},"66":{"start":{"line":165,"column":23},"end":{"line":168,"column":12}},"67":{"start":{"line":170,"column":10},"end":{"line":170,"column":47}},"68":{"start":{"line":173,"column":24},"end":{"line":180,"column":10}},"69":{"start":{"line":182,"column":21},"end":{"line":182,"column":65}},"70":{"start":{"line":183,"column":8},"end":{"line":183,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":51},"end":{"line":187,"column":1}},"line":3},"1":{"name":"getImportArgPath","decl":{"start":{"line":16,"column":11},"end":{"line":16,"column":27}},"loc":{"start":{"line":16,"column":31},"end":{"line":18,"column":3}},"line":16},"2":{"name":"trimChunkNameBaseDir","decl":{"start":{"line":20,"column":11},"end":{"line":20,"column":31}},"loc":{"start":{"line":20,"column":41},"end":{"line":22,"column":3}},"line":20},"3":{"name":"getUniversalImport","decl":{"start":{"line":24,"column":11},"end":{"line":24,"column":29}},"loc":{"start":{"line":24,"column":33},"end":{"line":35,"column":3}},"line":24},"4":{"name":"getImportCss","decl":{"start":{"line":37,"column":11},"end":{"line":37,"column":23}},"loc":{"start":{"line":37,"column":27},"end":{"line":48,"column":3}},"line":37},"5":{"name":"getPath","decl":{"start":{"line":50,"column":11},"end":{"line":50,"column":18}},"loc":{"start":{"line":50,"column":22},"end":{"line":57,"column":3}},"line":50},"6":{"name":"createTrimmedChunkName","decl":{"start":{"line":59,"column":11},"end":{"line":59,"column":33}},"loc":{"start":{"line":59,"column":49},"end":{"line":74,"column":3}},"line":59},"7":{"name":"getMagicCommentChunkName","decl":{"start":{"line":76,"column":11},"end":{"line":76,"column":35}},"loc":{"start":{"line":76,"column":51},"end":{"line":84,"column":3}},"line":76},"8":{"name":"getComponentId","decl":{"start":{"line":86,"column":11},"end":{"line":86,"column":25}},"loc":{"start":{"line":86,"column":41},"end":{"line":95,"column":3}},"line":86},"9":{"name":"(anonymous_9)","decl":{"start":{"line":90,"column":25},"end":{"line":90,"column":26}},"loc":{"start":{"line":90,"column":44},"end":{"line":94,"column":5}},"line":90},"10":{"name":"idOption","decl":{"start":{"line":97,"column":11},"end":{"line":97,"column":19}},"loc":{"start":{"line":97,"column":35},"end":{"line":100,"column":3}},"line":97},"11":{"name":"fileOption","decl":{"start":{"line":102,"column":11},"end":{"line":102,"column":21}},"loc":{"start":{"line":102,"column":25},"end":{"line":107,"column":3}},"line":102},"12":{"name":"loadOption","decl":{"start":{"line":109,"column":11},"end":{"line":109,"column":21}},"loc":{"start":{"line":109,"column":40},"end":{"line":123,"column":3}},"line":109},"13":{"name":"pathOption","decl":{"start":{"line":125,"column":11},"end":{"line":125,"column":21}},"loc":{"start":{"line":125,"column":40},"end":{"line":132,"column":3}},"line":125},"14":{"name":"resolveOption","decl":{"start":{"line":134,"column":11},"end":{"line":134,"column":24}},"loc":{"start":{"line":134,"column":40},"end":{"line":140,"column":3}},"line":134},"15":{"name":"chunkNameOption","decl":{"start":{"line":142,"column":11},"end":{"line":142,"column":26}},"loc":{"start":{"line":142,"column":42},"end":{"line":148,"column":3}},"line":142}},"branchMap":{"0":{"loc":{"start":{"line":25,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":32,"column":5}},{"start":{"line":25,"column":4},"end":{"line":32,"column":5}}],"line":25},"1":{"loc":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},{"start":{"line":38,"column":4},"end":{"line":45,"column":5}}],"line":38},"2":{"loc":{"start":{"line":51,"column":4},"end":{"line":54,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":54,"column":5}},{"start":{"line":51,"column":4},"end":{"line":54,"column":5}}],"line":51},"3":{"loc":{"start":{"line":60,"column":4},"end":{"line":70,"column":5}},"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":70,"column":5}},{"start":{"line":60,"column":4},"end":{"line":70,"column":5}}],"line":60},"4":{"loc":{"start":{"line":78,"column":4},"end":{"line":78,"column":65}},"type":"if","locations":[{"start":{"line":78,"column":4},"end":{"line":78,"column":65}},{"start":{"line":78,"column":4},"end":{"line":78,"column":65}}],"line":78},"5":{"loc":{"start":{"line":82,"column":33},"end":{"line":82,"column":66}},"type":"cond-expr","locations":[{"start":{"line":82,"column":50},"end":{"line":82,"column":61}},{"start":{"line":82,"column":64},"end":{"line":82,"column":66}}],"line":82},"6":{"loc":{"start":{"line":88,"column":4},"end":{"line":88,"column":43}},"type":"if","locations":[{"start":{"line":88,"column":4},"end":{"line":88,"column":43}},{"start":{"line":88,"column":4},"end":{"line":88,"column":43}}],"line":88},"7":{"loc":{"start":{"line":92,"column":17},"end":{"line":92,"column":54}},"type":"binary-expr","locations":[{"start":{"line":92,"column":17},"end":{"line":92,"column":31}},{"start":{"line":92,"column":35},"end":{"line":92,"column":54}}],"line":92},"8":{"loc":{"start":{"line":93,"column":21},"end":{"line":93,"column":45}},"type":"cond-expr","locations":[{"start":{"line":93,"column":26},"end":{"line":93,"column":41}},{"start":{"line":93,"column":44},"end":{"line":93,"column":45}}],"line":93},"9":{"loc":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"type":"if","locations":[{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},{"start":{"line":154,"column":8},"end":{"line":154,"column":30}}],"line":154},"10":{"loc":{"start":{"line":161,"column":8},"end":{"line":171,"column":9}},"type":"if","locations":[{"start":{"line":161,"column":8},"end":{"line":171,"column":9}},{"start":{"line":161,"column":8},"end":{"line":171,"column":9}}],"line":161},"11":{"loc":{"start":{"line":162,"column":10},"end":{"line":163,"column":59}},"type":"binary-expr","locations":[{"start":{"line":162,"column":10},"end":{"line":162,"column":53}},{"start":{"line":163,"column":10},"end":{"line":163,"column":59}}],"line":162}},"s":{"0":1,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":18,"10":26,"11":9,"12":9,"13":9,"14":9,"15":9,"16":9,"17":9,"18":9,"19":8,"20":8,"21":8,"22":8,"23":17,"24":11,"25":11,"26":11,"27":11,"28":6,"29":6,"30":9,"31":9,"32":3,"33":6,"34":6,"35":6,"36":6,"37":8,"38":8,"39":3,"40":5,"41":8,"42":8,"43":8,"44":8,"45":8,"46":8,"47":9,"48":9,"49":9,"50":9,"51":9,"52":9,"53":8,"54":8,"55":8,"56":8,"57":8,"58":8,"59":2,"60":18,"61":9,"62":9,"63":9,"64":9,"65":9,"66":1,"67":1,"68":8,"69":8,"70":8},"f":{"0":2,"1":18,"2":26,"3":9,"4":9,"5":8,"6":17,"7":9,"8":8,"9":8,"10":8,"11":8,"12":9,"13":8,"14":8,"15":8},"b":{"0":[9,0],"1":[9,0],"2":[8,0],"3":[11,6],"4":[3,6],"5":[4,2],"6":[3,5],"7":[8,3],"8":[3,5],"9":[9,9],"10":[1,8],"11":[9,9]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"16eac6f08c2b335fa0b3fd78672cef4e37ba3f67"} | ||
{"/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":0},"end":{"line":197,"column":1}},"1":{"start":{"line":4,"column":18},"end":{"line":4,"column":35}},"2":{"start":{"line":5,"column":28},"end":{"line":5,"column":55}},"3":{"start":{"line":6,"column":22},"end":{"line":6,"column":43}},"4":{"start":{"line":7,"column":17},"end":{"line":7,"column":33}},"5":{"start":{"line":9,"column":28},"end":{"line":9,"column":52}},"6":{"start":{"line":10,"column":23},"end":{"line":10,"column":69}},"7":{"start":{"line":11,"column":26},"end":{"line":11,"column":71}},"8":{"start":{"line":12,"column":23},"end":{"line":14,"column":3}},"9":{"start":{"line":17,"column":4},"end":{"line":17,"column":43}},"10":{"start":{"line":21,"column":4},"end":{"line":21,"column":49}},"11":{"start":{"line":25,"column":4},"end":{"line":32,"column":5}},"12":{"start":{"line":26,"column":24},"end":{"line":30,"column":7}},"13":{"start":{"line":31,"column":6},"end":{"line":31,"column":47}},"14":{"start":{"line":34,"column":4},"end":{"line":34,"column":40}},"15":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"16":{"start":{"line":39,"column":24},"end":{"line":43,"column":7}},"17":{"start":{"line":44,"column":6},"end":{"line":44,"column":41}},"18":{"start":{"line":47,"column":4},"end":{"line":47,"column":34}},"19":{"start":{"line":51,"column":4},"end":{"line":54,"column":5}},"20":{"start":{"line":52,"column":19},"end":{"line":52,"column":66}},"21":{"start":{"line":53,"column":6},"end":{"line":53,"column":31}},"22":{"start":{"line":56,"column":4},"end":{"line":56,"column":29}},"23":{"start":{"line":60,"column":4},"end":{"line":70,"column":5}},"24":{"start":{"line":61,"column":21},"end":{"line":61,"column":50}},"25":{"start":{"line":62,"column":22},"end":{"line":62,"column":66}},"26":{"start":{"line":63,"column":6},"end":{"line":65,"column":8}},"27":{"start":{"line":67,"column":6},"end":{"line":69,"column":8}},"28":{"start":{"line":72,"column":23},"end":{"line":72,"column":64}},"29":{"start":{"line":73,"column":4},"end":{"line":73,"column":38}},"30":{"start":{"line":77,"column":36},"end":{"line":77,"column":49}},"31":{"start":{"line":78,"column":4},"end":{"line":78,"column":65}},"32":{"start":{"line":78,"column":17},"end":{"line":78,"column":65}},"33":{"start":{"line":80,"column":20},"end":{"line":80,"column":42}},"34":{"start":{"line":81,"column":27},"end":{"line":81,"column":49}},"35":{"start":{"line":82,"column":22},"end":{"line":82,"column":67}},"36":{"start":{"line":83,"column":4},"end":{"line":83,"column":42}},"37":{"start":{"line":87,"column":36},"end":{"line":87,"column":49}},"38":{"start":{"line":88,"column":4},"end":{"line":88,"column":43}},"39":{"start":{"line":88,"column":17},"end":{"line":88,"column":43}},"40":{"start":{"line":90,"column":4},"end":{"line":94,"column":10}},"41":{"start":{"line":91,"column":16},"end":{"line":91,"column":34}},"42":{"start":{"line":92,"column":17},"end":{"line":92,"column":54}},"43":{"start":{"line":93,"column":6},"end":{"line":93,"column":46}},"44":{"start":{"line":98,"column":15},"end":{"line":98,"column":44}},"45":{"start":{"line":99,"column":4},"end":{"line":99,"column":68}},"46":{"start":{"line":103,"column":4},"end":{"line":106,"column":5}},"47":{"start":{"line":110,"column":20},"end":{"line":110,"column":39}},"48":{"start":{"line":111,"column":22},"end":{"line":111,"column":61}},"49":{"start":{"line":113,"column":4},"end":{"line":113,"column":39}},"50":{"start":{"line":114,"column":4},"end":{"line":114,"column":71}},"51":{"start":{"line":116,"column":17},"end":{"line":120,"column":17}},"52":{"start":{"line":122,"column":4},"end":{"line":122,"column":55}},"53":{"start":{"line":126,"column":17},"end":{"line":129,"column":17}},"54":{"start":{"line":131,"column":4},"end":{"line":131,"column":55}},"55":{"start":{"line":135,"column":20},"end":{"line":137,"column":17}},"56":{"start":{"line":139,"column":4},"end":{"line":139,"column":61}},"57":{"start":{"line":143,"column":22},"end":{"line":145,"column":17}},"58":{"start":{"line":147,"column":4},"end":{"line":147,"column":65}},"59":{"start":{"line":150,"column":2},"end":{"line":196,"column":3}},"60":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"61":{"start":{"line":154,"column":24},"end":{"line":154,"column":30}},"62":{"start":{"line":155,"column":8},"end":{"line":155,"column":25}},"63":{"start":{"line":157,"column":30},"end":{"line":157,"column":54}},"64":{"start":{"line":158,"column":32},"end":{"line":158,"column":53}},"65":{"start":{"line":161,"column":8},"end":{"line":171,"column":9}},"66":{"start":{"line":165,"column":23},"end":{"line":168,"column":12}},"67":{"start":{"line":170,"column":10},"end":{"line":170,"column":47}},"68":{"start":{"line":173,"column":21},"end":{"line":188,"column":11}},"69":{"start":{"line":190,"column":24},"end":{"line":190,"column":48}},"70":{"start":{"line":192,"column":21},"end":{"line":192,"column":65}},"71":{"start":{"line":193,"column":8},"end":{"line":193,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":51},"end":{"line":197,"column":1}},"line":3},"1":{"name":"getImportArgPath","decl":{"start":{"line":16,"column":11},"end":{"line":16,"column":27}},"loc":{"start":{"line":16,"column":31},"end":{"line":18,"column":3}},"line":16},"2":{"name":"trimChunkNameBaseDir","decl":{"start":{"line":20,"column":11},"end":{"line":20,"column":31}},"loc":{"start":{"line":20,"column":41},"end":{"line":22,"column":3}},"line":20},"3":{"name":"getUniversalImport","decl":{"start":{"line":24,"column":11},"end":{"line":24,"column":29}},"loc":{"start":{"line":24,"column":33},"end":{"line":35,"column":3}},"line":24},"4":{"name":"getImportCss","decl":{"start":{"line":37,"column":11},"end":{"line":37,"column":23}},"loc":{"start":{"line":37,"column":27},"end":{"line":48,"column":3}},"line":37},"5":{"name":"getPath","decl":{"start":{"line":50,"column":11},"end":{"line":50,"column":18}},"loc":{"start":{"line":50,"column":22},"end":{"line":57,"column":3}},"line":50},"6":{"name":"createTrimmedChunkName","decl":{"start":{"line":59,"column":11},"end":{"line":59,"column":33}},"loc":{"start":{"line":59,"column":49},"end":{"line":74,"column":3}},"line":59},"7":{"name":"getMagicCommentChunkName","decl":{"start":{"line":76,"column":11},"end":{"line":76,"column":35}},"loc":{"start":{"line":76,"column":51},"end":{"line":84,"column":3}},"line":76},"8":{"name":"getComponentId","decl":{"start":{"line":86,"column":11},"end":{"line":86,"column":25}},"loc":{"start":{"line":86,"column":41},"end":{"line":95,"column":3}},"line":86},"9":{"name":"(anonymous_9)","decl":{"start":{"line":90,"column":25},"end":{"line":90,"column":26}},"loc":{"start":{"line":90,"column":44},"end":{"line":94,"column":5}},"line":90},"10":{"name":"idOption","decl":{"start":{"line":97,"column":11},"end":{"line":97,"column":19}},"loc":{"start":{"line":97,"column":35},"end":{"line":100,"column":3}},"line":97},"11":{"name":"fileOption","decl":{"start":{"line":102,"column":11},"end":{"line":102,"column":21}},"loc":{"start":{"line":102,"column":25},"end":{"line":107,"column":3}},"line":102},"12":{"name":"loadOption","decl":{"start":{"line":109,"column":11},"end":{"line":109,"column":21}},"loc":{"start":{"line":109,"column":40},"end":{"line":123,"column":3}},"line":109},"13":{"name":"pathOption","decl":{"start":{"line":125,"column":11},"end":{"line":125,"column":21}},"loc":{"start":{"line":125,"column":40},"end":{"line":132,"column":3}},"line":125},"14":{"name":"resolveOption","decl":{"start":{"line":134,"column":11},"end":{"line":134,"column":24}},"loc":{"start":{"line":134,"column":40},"end":{"line":140,"column":3}},"line":134},"15":{"name":"chunkNameOption","decl":{"start":{"line":142,"column":11},"end":{"line":142,"column":26}},"loc":{"start":{"line":142,"column":42},"end":{"line":148,"column":3}},"line":142}},"branchMap":{"0":{"loc":{"start":{"line":25,"column":4},"end":{"line":32,"column":5}},"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":32,"column":5}},{"start":{"line":25,"column":4},"end":{"line":32,"column":5}}],"line":25},"1":{"loc":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},{"start":{"line":38,"column":4},"end":{"line":45,"column":5}}],"line":38},"2":{"loc":{"start":{"line":51,"column":4},"end":{"line":54,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":54,"column":5}},{"start":{"line":51,"column":4},"end":{"line":54,"column":5}}],"line":51},"3":{"loc":{"start":{"line":60,"column":4},"end":{"line":70,"column":5}},"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":70,"column":5}},{"start":{"line":60,"column":4},"end":{"line":70,"column":5}}],"line":60},"4":{"loc":{"start":{"line":78,"column":4},"end":{"line":78,"column":65}},"type":"if","locations":[{"start":{"line":78,"column":4},"end":{"line":78,"column":65}},{"start":{"line":78,"column":4},"end":{"line":78,"column":65}}],"line":78},"5":{"loc":{"start":{"line":82,"column":33},"end":{"line":82,"column":66}},"type":"cond-expr","locations":[{"start":{"line":82,"column":50},"end":{"line":82,"column":61}},{"start":{"line":82,"column":64},"end":{"line":82,"column":66}}],"line":82},"6":{"loc":{"start":{"line":88,"column":4},"end":{"line":88,"column":43}},"type":"if","locations":[{"start":{"line":88,"column":4},"end":{"line":88,"column":43}},{"start":{"line":88,"column":4},"end":{"line":88,"column":43}}],"line":88},"7":{"loc":{"start":{"line":92,"column":17},"end":{"line":92,"column":54}},"type":"binary-expr","locations":[{"start":{"line":92,"column":17},"end":{"line":92,"column":31}},{"start":{"line":92,"column":35},"end":{"line":92,"column":54}}],"line":92},"8":{"loc":{"start":{"line":93,"column":21},"end":{"line":93,"column":45}},"type":"cond-expr","locations":[{"start":{"line":93,"column":26},"end":{"line":93,"column":41}},{"start":{"line":93,"column":44},"end":{"line":93,"column":45}}],"line":93},"9":{"loc":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"type":"if","locations":[{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},{"start":{"line":154,"column":8},"end":{"line":154,"column":30}}],"line":154},"10":{"loc":{"start":{"line":161,"column":8},"end":{"line":171,"column":9}},"type":"if","locations":[{"start":{"line":161,"column":8},"end":{"line":171,"column":9}},{"start":{"line":161,"column":8},"end":{"line":171,"column":9}}],"line":161},"11":{"loc":{"start":{"line":162,"column":10},"end":{"line":163,"column":59}},"type":"binary-expr","locations":[{"start":{"line":162,"column":10},"end":{"line":162,"column":53}},{"start":{"line":163,"column":10},"end":{"line":163,"column":59}}],"line":162},"12":{"loc":{"start":{"line":173,"column":21},"end":{"line":188,"column":11}},"type":"cond-expr","locations":[{"start":{"line":174,"column":12},"end":{"line":180,"column":11}},{"start":{"line":181,"column":12},"end":{"line":188,"column":11}}],"line":173}},"s":{"0":1,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":19,"10":27,"11":10,"12":10,"13":10,"14":10,"15":9,"16":9,"17":9,"18":9,"19":9,"20":9,"21":9,"22":9,"23":18,"24":11,"25":11,"26":11,"27":11,"28":7,"29":7,"30":9,"31":9,"32":3,"33":6,"34":6,"35":6,"36":6,"37":9,"38":9,"39":4,"40":5,"41":8,"42":8,"43":8,"44":9,"45":9,"46":9,"47":9,"48":9,"49":9,"50":9,"51":9,"52":9,"53":9,"54":9,"55":9,"56":9,"57":9,"58":9,"59":2,"60":19,"61":9,"62":10,"63":10,"64":10,"65":10,"66":1,"67":1,"68":9,"69":9,"70":9,"71":9},"f":{"0":2,"1":19,"2":27,"3":10,"4":9,"5":9,"6":18,"7":9,"8":9,"9":8,"10":9,"11":9,"12":9,"13":9,"14":9,"15":9},"b":{"0":[10,0],"1":[9,0],"2":[9,0],"3":[11,7],"4":[3,6],"5":[4,2],"6":[4,5],"7":[8,3],"8":[3,5],"9":[9,10],"10":[1,9],"11":[10,10],"12":[1,8]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"0c1251cc9921846da769378a660ceedd27dc1469"} | ||
} |
/* eslint-disable */ | ||
var ADDED = {}; | ||
module.exports = function(chunkName) { | ||
@@ -24,2 +26,7 @@ var href = getHref(chunkName) | ||
if (ADDED[href] === true) { | ||
return Promise.resolve(); | ||
} | ||
ADDED[href] = true; | ||
var head = document.getElementsByTagName('head')[0] | ||
@@ -26,0 +33,0 @@ var link = document.createElement('link') |
26
index.js
@@ -173,11 +173,21 @@ 'use-strict' | ||
const options = t.objectExpression([ | ||
idOption(importArgNode), | ||
fileOption(p), | ||
loadOption(p, importArgNode), | ||
pathOption(p, importArgNode), | ||
resolveOption(importArgNode), | ||
chunkNameOption(importArgNode) | ||
]) | ||
const opts = this.opts.babelServer | ||
? [ | ||
idOption(importArgNode), | ||
fileOption(p), | ||
pathOption(p, importArgNode), | ||
resolveOption(importArgNode), | ||
chunkNameOption(importArgNode) | ||
] | ||
: [ | ||
idOption(importArgNode), | ||
fileOption(p), | ||
loadOption(p, importArgNode), // only when not on a babel-server | ||
pathOption(p, importArgNode), | ||
resolveOption(importArgNode), | ||
chunkNameOption(importArgNode) | ||
] | ||
const options = t.objectExpression(opts) | ||
const func = t.callExpression(universalImport, [options]) | ||
@@ -184,0 +194,0 @@ p.parentPath.replaceWith(func) |
{ | ||
"name": "babel-plugin-universal-import", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Babel plugin to transform import() into its Universal counterpart", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -125,8 +125,18 @@ <a href="https://gitter.im/Reactlandia/Lobby" target="_blank"> | ||
If your compiling the server with Babel, you may need to add this babel-plugin as well: [babel-plugin-dynamic-import-webpack](https://github.com/airbnb/babel-plugin-dynamic-import-webpack). And if you're using a version of Webpack before 2.2.0, you also must add it. | ||
If your compiling the server with Babel, set the following option so `import()` does not exist in the final compilation result server-side: | ||
```js | ||
{ | ||
"plugins": [ | ||
["universal-import", { | ||
"babelServer": true | ||
}] | ||
] | ||
} | ||
``` | ||
## Next Steps | ||
Checkout the rest of the packages in the *"Universal"* family: | ||
- [webpack-flush-chunks](https://github.com/faceyspacey/rwebpack-flush-chunks) | ||
- [webpack-flush-chunks](https://github.com/faceyspacey/webpack-flush-chunks) | ||
- [react-universal-component](https://github.com/faceyspacey/react-universal-component) | ||
@@ -133,0 +143,0 @@ - [extract-css-chunks-webpack-plugin](https://github.com/faceyspacey/extract-css-chunks-webpack-plugin) |
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
384369
717
167