Skip to content

Commit

Permalink
chore(release): 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kisenka committed Aug 3, 2017
1 parent 3b91d92 commit 7258f85
Show file tree
Hide file tree
Showing 14 changed files with 14,861 additions and 14,933 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="3.1.0"></a>
# [3.1.0](https://github.com/kisenka/webpack-svg-sprite-loader/compare/v3.0.11...v3.1.0) (2017-08-03)


### Features

* **loader:** webpack 3 module concatenation interop in extract mode ([8a79536](https://github.com/kisenka/webpack-svg-sprite-loader/commit/8a79536))



<a name="3.0.11"></a>
## [3.0.11](https://github.com/kisenka/webpack-svg-sprite-loader/compare/v3.0.10...v3.0.11) (2017-08-03)

Expand Down
35 changes: 16 additions & 19 deletions examples/browser-sprite-extract-mode/build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
Expand Down Expand Up @@ -63,30 +60,16 @@
/******/ __webpack_require__.p = "build/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony default export */ __webpack_exports__["a"] = ({
id: "twitter-usage",
viewBox: "0 0 273.4 222.2",
url: __webpack_require__.p + "sprite.svg#twitter-usage",
toString: function () {
return this.url;
}
});

/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__ = __webpack_require__(1);

// => {id string, width: string, height: string, viewBox: string, url: string}

Expand All @@ -100,5 +83,19 @@ window.addEventListener('DOMContentLoaded', () => {
});


/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony default export */ __webpack_exports__["a"] = ({
id: "twitter-usage",
viewBox: "0 0 273.4 222.2",
url: __webpack_require__.p + "sprite.svg#twitter-usage",
toString: function () {
return this.url;
}
});

/***/ })
/******/ ]);
Original file line number Diff line number Diff line change
@@ -1,23 +1 @@
{
"name": "dll",
"content": {
"./dll.js": {
"id": 0,
"meta": {
"harmonyModule": true
},
"exports": [
"dll"
]
},
"../assets/facebook.svg": {
"id": 1,
"meta": {
"harmonyModule": true
},
"exports": [
"default"
]
}
}
}
{"name":"dll","content":{"./dll.js":{"id":1,"meta":{"harmonyModule":true},"exports":["dll"]},"../assets/facebook.svg":{"id":2,"meta":{"harmonyModule":true},"exports":["default"]}}}
21 changes: 9 additions & 12 deletions examples/browser-sprite-with-dll-extract-mode/build/dll.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ var dll =
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
Expand Down Expand Up @@ -64,17 +61,23 @@ var dll =
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__;

/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__ = __webpack_require__(1);
/* harmony export (immutable) */ __webpack_exports__["dll"] = dll;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__ = __webpack_require__(2);


// => {id string, width: string, height: string, viewBox: string, url: string}
Expand All @@ -96,7 +99,7 @@ function dll() {


/***/ }),
/* 1 */
/* 2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Expand All @@ -110,11 +113,5 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
}
});

/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__;

/***/ })
/******/ ]);
49 changes: 23 additions & 26 deletions examples/browser-sprite-with-dll-extract-mode/build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
Expand Down Expand Up @@ -63,34 +60,32 @@
/******/ __webpack_require__.p = "build/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 2);
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__ = __webpack_require__(3);
/* harmony export (immutable) */ __webpack_exports__["a"] = dll;
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dll__ = __webpack_require__(2);



// => {id string, width: string, height: string, viewBox: string, url: string}

console.log(`dll: ${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */]}`);
let image;
let usage;
console.log(`main: ${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */]}`);

window.addEventListener('DOMContentLoaded', () => {
image = `<img width="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].width}" height="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].height}" src="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].url}">`;
usage = `<svg viewBox="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].viewBox}"><use xlink:href="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].url}"></use></svg>`;
});

function dll() {
console.log('dll module');
const image = `<img width="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].width}" height="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].height}" src="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].url}">`;
const usage = `<svg viewBox="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].viewBox}"><use xlink:href="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].url}"></use></svg>`;

document.body.insertAdjacentHTML('beforeend', `${image} ${usage}`);
}

Object(__WEBPACK_IMPORTED_MODULE_1__dll__["a" /* dll */])();
});


/***/ }),
Expand All @@ -112,24 +107,26 @@ function dll() {
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dll__ = __webpack_require__(0);

/* harmony export (immutable) */ __webpack_exports__["a"] = dll;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__ = __webpack_require__(3);


// => {id string, width: string, height: string, viewBox: string, url: string}

console.log(`main: ${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */]}`);
console.log(`dll: ${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */]}`);
let image;
let usage;

window.addEventListener('DOMContentLoaded', () => {
const image = `<img width="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].width}" height="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].height}" src="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].url}">`;
const usage = `<svg viewBox="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].viewBox}"><use xlink:href="${__WEBPACK_IMPORTED_MODULE_0__assets_twitter_svg__["a" /* default */].url}"></use></svg>`;
image = `<img width="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].width}" height="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].height}" src="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].url}">`;
usage = `<svg viewBox="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].viewBox}"><use xlink:href="${__WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__["a" /* default */].url}"></use></svg>`;
});

document.body.insertAdjacentHTML('beforeend', `${image} ${usage}`);
function dll() {
console.log('dll module');

__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__dll__["a" /* dll */])();
});
document.body.insertAdjacentHTML('beforeend', `${image} ${usage}`);
}


/***/ }),
Expand Down
36 changes: 1 addition & 35 deletions examples/browser-sprite-with-dll/build/dll-manifest.json
Original file line number Diff line number Diff line change
@@ -1,35 +1 @@
{
"name": "dll",
"content": {
"../../env/webpack-2/node_modules/webpack/buildin/global.js": {
"id": 0,
"meta": {}
},
"./dll.js": {
"id": 1,
"meta": {
"harmonyModule": true
},
"exports": [
"dll"
]
},
"../assets/facebook.svg": {
"id": 2,
"meta": {
"harmonyModule": true
},
"exports": [
"default"
]
},
"../../node_modules/svg-baker-runtime/browser-symbol.js": {
"id": 3,
"meta": {}
},
"../../runtime/browser-sprite.build.js": {
"id": 4,
"meta": {}
}
}
}
{"name":"dll","content":{"../../env/webpack-3/node_modules/webpack/buildin/global.js":{"id":0,"meta":{}},"./dll.js":{"id":2,"meta":{"harmonyModule":true},"exports":["dll"]},"../assets/facebook.svg":{"id":3,"meta":{"harmonyModule":true},"exports":["default"]},"../../node_modules/svg-baker-runtime/browser-symbol.js":{"id":4,"meta":{}},"../../runtime/browser-sprite.build.js":{"id":5,"meta":{}}}}
29 changes: 13 additions & 16 deletions examples/browser-sprite-with-dll/build/dll.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ var dll =
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
Expand Down Expand Up @@ -64,7 +61,7 @@ var dll =
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 5);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
/******/ ([
Expand Down Expand Up @@ -96,12 +93,18 @@ module.exports = g;

/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__;

/***/ }),
/* 2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__ = __webpack_require__(2);
/* harmony export (immutable) */ __webpack_exports__["dll"] = dll;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__assets_facebook_svg__ = __webpack_require__(3);


function dll() {
Expand All @@ -110,14 +113,14 @@ function dll() {


/***/ }),
/* 2 */
/* 3 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_svg_baker_runtime_browser_symbol__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_svg_baker_runtime_browser_symbol__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_svg_baker_runtime_browser_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_svg_baker_runtime_browser_symbol__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_svg_sprite_loader_runtime_browser_sprite_build__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_svg_sprite_loader_runtime_browser_sprite_build__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_svg_sprite_loader_runtime_browser_sprite_build___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_svg_sprite_loader_runtime_browser_sprite_build__);


Expand All @@ -131,7 +134,7 @@ var result = __WEBPACK_IMPORTED_MODULE_1_svg_sprite_loader_runtime_browser_sprit
/* harmony default export */ __webpack_exports__["default"] = (symbol);

/***/ }),
/* 3 */
/* 4 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) {
Expand Down Expand Up @@ -488,7 +491,7 @@ return BrowserSpriteSymbol;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))

/***/ }),
/* 4 */
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) {
Expand Down Expand Up @@ -1303,11 +1306,5 @@ return sprite;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))

/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__;

/***/ })
/******/ ]);
Loading

0 comments on commit 7258f85

Please sign in to comment.