exifreader 4.40.5 → 4.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -15
- package/babel.config.json +3 -15
- package/bin/build.js +74 -45
- package/bin/cli.js +165 -0
- package/bin/findDependentConfig.js +49 -8
- package/bin/profile.js +4 -4
- package/dist/exif-reader.js +1 -1
- package/dist/exif-reader.js.map +1 -1
- package/package.json +33 -31
- package/src/exif-reader.js +0 -1
- package/src/image-header-iso-bmff-iloc.js +26 -1
- package/src/load-auto.js +1 -1
- package/src/loadview-pipeline.js +17 -13
- package/src/package.json +1 -0
- package/src/photoshop-tag-names.js +0 -927
- package/webpack.config.js +11 -3
- package/bin/.eslintrc.json +0 -7
package/webpack.config.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
4
4
|
|
|
5
|
-
/* eslint-env node */
|
|
6
|
-
|
|
7
5
|
const path = require('path');
|
|
8
6
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
9
7
|
const findConfigFromClosestPackageJson = require('./bin/findDependentConfig');
|
|
@@ -24,6 +22,9 @@ if (includedModules) {
|
|
|
24
22
|
|
|
25
23
|
module.exports = {
|
|
26
24
|
mode: process.env.NODE_ENV || 'production',
|
|
25
|
+
resolveLoader: {
|
|
26
|
+
modules: getResolveLoaderModules()
|
|
27
|
+
},
|
|
27
28
|
optimization: {
|
|
28
29
|
minimizer: [new TerserPlugin({
|
|
29
30
|
terserOptions: {
|
|
@@ -81,7 +82,7 @@ module.exports = {
|
|
|
81
82
|
}
|
|
82
83
|
},
|
|
83
84
|
{
|
|
84
|
-
test: /[/\\](exif-reader|image-header-?(tiff|jpeg|png|heic|avif|jxl|iso-bmff|webp|gif)?|tags|tag-names|tags-helpers|png-text-tags)\.js$/,
|
|
85
|
+
test: /[/\\](exif-reader|image-header-?(tiff|jpeg|png|heic|avif|jxl|iso-bmff|webp|gif)?|tags|tag-names|tags-helpers|png-text-tags|loadview-pipeline)\.js$/,
|
|
85
86
|
loader: 'string-replace-loader',
|
|
86
87
|
options: {
|
|
87
88
|
multiple: getConstantReplacements(includedModules)
|
|
@@ -229,3 +230,10 @@ function getConstantReplacements(modules) {
|
|
|
229
230
|
|
|
230
231
|
return replacements;
|
|
231
232
|
}
|
|
233
|
+
|
|
234
|
+
function getResolveLoaderModules() {
|
|
235
|
+
if (process.env.EXIFREADER_BUILD_MODULES) {
|
|
236
|
+
return [process.env.EXIFREADER_BUILD_MODULES, 'node_modules'];
|
|
237
|
+
}
|
|
238
|
+
return ['node_modules'];
|
|
239
|
+
}
|