url-loader
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [2.3.0](https://github.com/webpack-contrib/url-loader/compare/v2.2.0...v2.3.0) (2019-11-21) | ||
### Features | ||
* new `esModules` option to output ES modules ([0ee2b99](https://github.com/webpack-contrib/url-loader/commit/0ee2b9964f37f4d7c5dd6ea09f8526525e0fab91)) | ||
### [2.2.0](https://github.com/webpack-contrib/url-loader/compare/v2.1.0...v2.2.0) (2019-10-04) | ||
@@ -7,0 +14,0 @@ |
@@ -60,3 +60,3 @@ "use strict"; | ||
return `module.exports = ${JSON.stringify(`data:${mimetype || ''};base64,${src.toString('base64')}`)}`; | ||
return `${options.esModules ? 'export default' : 'module.exports ='} ${JSON.stringify(`data:${mimetype || ''};base64,${src.toString('base64')}`)}`; | ||
} // Normalize the fallback. | ||
@@ -63,0 +63,0 @@ |
@@ -40,2 +40,5 @@ { | ||
] | ||
}, | ||
"esModules": { | ||
"type": "boolean" | ||
} | ||
@@ -42,0 +45,0 @@ }, |
{ | ||
"name": "url-loader", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "A loader for webpack which transforms files into base64 URIs", | ||
@@ -48,8 +48,8 @@ "license": "MIT", | ||
"mime": "^2.4.4", | ||
"schema-utils": "^2.4.1" | ||
"schema-utils": "^2.5.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.6.2", | ||
"@babel/core": "^7.6.2", | ||
"@babel/preset-env": "^7.6.2", | ||
"@babel/cli": "^7.7.0", | ||
"@babel/core": "^7.7.2", | ||
"@babel/preset-env": "^7.7.1", | ||
"@commitlint/cli": "^8.2.0", | ||
@@ -64,15 +64,15 @@ "@commitlint/config-conventional": "^8.2.0", | ||
"del-cli": "^3.0.0", | ||
"eslint": "^6.5.1", | ||
"eslint-config-prettier": "^6.3.0", | ||
"eslint": "^6.6.0", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"file-loader": "^4.2.0", | ||
"husky": "^3.0.8", | ||
"husky": "^3.1.0", | ||
"jest": "^24.9.0", | ||
"jest-junit": "^8.0.0", | ||
"lint-staged": "^9.4.1", | ||
"memory-fs": "^0.4.1", | ||
"jest-junit": "^9.0.0", | ||
"lint-staged": "^9.4.3", | ||
"memory-fs": "^0.5.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.18.2", | ||
"standard-version": "^7.0.0", | ||
"webpack": "^4.41.0" | ||
"prettier": "^1.19.1", | ||
"standard-version": "^7.0.1", | ||
"webpack": "^4.41.2" | ||
}, | ||
@@ -79,0 +79,0 @@ "keywords": [ |
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
20414
136
Updatedschema-utils@^2.5.0