Skip to content

Commit fa5f624

Browse files
Merge pull request #243 from ahocevar/fix-txml
Fix txml imports and alias
2 parents ce83cc3 + 1aae9a4 commit fa5f624

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
"image",
1010
"raster"
1111
],
12-
"alias": {
13-
"txml/txml": "txml/dist/txml"
14-
},
1512
"main": "dist-node/geotiff.js",
1613
"module": "src/geotiff.js",
1714
"jsdelivr": "dist-browser/geotiff.js",
@@ -79,7 +76,8 @@
7976
"fs": false,
8077
"http": false,
8178
"https": false,
82-
"url": false
79+
"url": false,
80+
"./src/txml": "./src/browser/txml"
8381
},
8482
"sideEffects": false,
8583
"contributors": [

src/browser/txml.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { parse } from 'txml/dist/txml';

src/geotiffimage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint max-len: ["error", { "code": 120 }] */
22

33
import { getFloat16 } from '@petamoriken/float16';
4-
import { parse } from 'txml/txml';
4+
import { parse } from './txml';
55

66
import { photometricInterpretations, ExtraSamplesValues } from './globals';
77
import { fromWhiteIsZero, fromBlackIsZero, fromPalette, fromCMYK, fromYCbCr, fromCIELab } from './rgb';

src/txml.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { parse } from 'txml';

0 commit comments

Comments
 (0)