webpack-dynamic-require
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -150,3 +150,5 @@ "use strict"; | ||
if (g.webpackData.c[entryModuleName]) { | ||
return Promise.resolve(g.webpackData.c[entryModuleName]); | ||
// if webpack enable hmr above return { children, exports, hot ...} | ||
var module = g.webpackData(entryModuleName); | ||
return Promise.resolve(module.a || module); | ||
} | ||
@@ -192,4 +194,6 @@ | ||
console.log('load combo js done', name); | ||
var module = g.webpackData(entryModuleName); | ||
resolve(module.a || module); | ||
var _module = g.webpackData(entryModuleName); | ||
resolve(_module.a || _module); | ||
} catch (e) { | ||
@@ -206,2 +210,2 @@ reject(e); | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9EeW5hbWljLnRzIl0sIm5hbWVzIjpbImciLCJ3aW5kb3ciLCJnbG9iYWwiLCJqc29ucCIsInVybCIsIm9wdCIsImZuIiwidGltZW91dCIsImNiS2V5IiwiY2JWYWwiLCJ0aW1lciIsIkRhdGUiLCJub3ciLCJzIiwic2xpY2UiLCJpbmRleE9mIiwic2NyaXB0IiwiZG9jdW1lbnQiLCJjcmVhdGVFbGVtZW50IiwicmVtb3ZlIiwiY2xlYXJUaW1lb3V0IiwiaGVhZCIsInJlbW92ZUNoaWxkIiwidW5kZWZpbmVkIiwic3JjIiwiZGF0YSIsImFwcGVuZENoaWxkIiwiUHJvbWlzZSIsInJlc29sdmUiLCJyZWplY3QiLCJzZXRUaW1lb3V0IiwiRXJyb3IiLCJhcmdzIiwiZ2V0Qmx1clZlcnNpb24iLCJ2ZXJzaW9uIiwic3BsaXQiLCJtYXAiLCJ2IiwiaSIsImpvaW4iLCJEeW5hbWljUmVxdWlyZSIsIm5hbWUiLCJiYXNlVXJsIiwiaGFzaGVkIiwianNvbnBDYWxsYmFjayIsInJlcGxhY2UiLCJqc29ucFVybCIsInRoZW4iLCJtb2R1bGVzIiwiZW50cnkiLCJlbnRyeU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R7Y2h1bmtOYW1lfS5jc3NgKS5qb2luKCk7XG4gICAgICBjb25zdCBjb21ib0Nzc1VybCA9IGAke2Jhc2VVcmx9Lz8/JHtjb21wb25lbnRDc3N9LCR7Y29tYm9Dc3NDaHVua3N9YDtcbiAgICAgIGxvYWRDU1MoY29tYm9Dc3NVcmwpO1xuICAgIH1cbiAgICBpZiAobmVlZENvbWJvQ2h1bmsgJiYgbmVlZENvbWJvQ2h1bmsubGVuZ3RoKSB7XG4gICAgICBjb25zdCBjb21ib0NodW5rcyA9IG5lZWRDb21ib0NodW5rLm1hcChjaHVua05hbWUgPT4gYGRlcHMvJHtjaHVua05hbWV9LmpzYCkuam9pbigpO1xuICAgICAgY29uc3QgY29tYm9VcmwgPSBgJHtiYXNlVXJsfS8/PyR7Y29tcG9uZW50Q2h1bmtzfSwke2NvbWJvQ2h1bmtzfWA7XG4gICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICBTY3JpcHRqcyhjb21ib1VybCwgKCkgPT4ge1xuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjb25zb2xlLmxvZygnbG9hZCBjb21ibyBqcyBkb25lJywgbmFtZSk7XG4gICAgICAgICAgICBjb25zdCBtb2R1bGUgPSBnLndlYnBhY2tEYXRhKGVudHJ5TW9kdWxlTmFtZSk7XG4gICAgICAgICAgICByZXNvbHZlKG1vZHVsZS5hIHx8IG1vZHVsZSk7XG4gICAgICAgICAgfSBjYXRjaChlKSB7XG4gICAgICAgICAgICByZWplY3QoZSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH0pO1xuICAgIH1cbiAgfSkuY2F0Y2goZnVuY3Rpb24oZXJyb3I6IGFueSkge1xuICAgIGNvbnNvbGUud2FybignbG9hZCByZW1vdGUgZXJyb3InKTtcbiAgICB0aHJvdyBlcnJvclxuICB9KVxufSJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ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AgIGxvYWRDU1MoY29tYm9Dc3NVcmwpO1xuICAgIH1cbiAgICBpZiAobmVlZENvbWJvQ2h1bmsgJiYgbmVlZENvbWJvQ2h1bmsubGVuZ3RoKSB7XG4gICAgICBjb25zdCBjb21ib0NodW5rcyA9IG5lZWRDb21ib0NodW5rLm1hcChjaHVua05hbWUgPT4gYGRlcHMvJHtjaHVua05hbWV9LmpzYCkuam9pbigpO1xuICAgICAgY29uc3QgY29tYm9VcmwgPSBgJHtiYXNlVXJsfS8/PyR7Y29tcG9uZW50Q2h1bmtzfSwke2NvbWJvQ2h1bmtzfWA7XG4gICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICBTY3JpcHRqcyhjb21ib1VybCwgKCkgPT4ge1xuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICBjb25zb2xlLmxvZygnbG9hZCBjb21ibyBqcyBkb25lJywgbmFtZSk7XG4gICAgICAgICAgICBjb25zdCBtb2R1bGUgPSBnLndlYnBhY2tEYXRhKGVudHJ5TW9kdWxlTmFtZSk7XG4gICAgICAgICAgICByZXNvbHZlKG1vZHVsZS5hIHx8IG1vZHVsZSk7XG4gICAgICAgICAgfSBjYXRjaChlKSB7XG4gICAgICAgICAgICByZWplY3QoZSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH0pO1xuICAgIH1cbiAgfSkuY2F0Y2goZnVuY3Rpb24oZXJyb3I6IGFueSkge1xuICAgIGNvbnNvbGUud2FybignbG9hZCByZW1vdGUgZXJyb3InKTtcbiAgICB0aHJvdyBlcnJvclxuICB9KVxufSJdfQ== |
{ | ||
"name": "webpack-dynamic-require", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "you can require cdn bundle dynamic", | ||
@@ -5,0 +5,0 @@ "main": "lib/Dynamic.js", |
@@ -120,3 +120,5 @@ import Scriptjs from 'scriptjs'; | ||
if (g.webpackData.c[entryModuleName]) { | ||
return Promise.resolve(g.webpackData.c[entryModuleName]); | ||
// if webpack enable hmr above return { children, exports, hot ...} | ||
const module = g.webpackData(entryModuleName); | ||
return Promise.resolve(module.a || module); | ||
} | ||
@@ -123,0 +125,0 @@ const componentChunks = 'vendor.js,component.js'; |
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
67797
718