UNPKG
@mattburlage/react-file-viewer
Version:
latest (1.1.1)
1.1.1
Extendable file viewer for web
github.com/plangrid/react-file-viewer
plangrid/react-file-viewer
@mattburlage/react-file-viewer
/
config
/
jest
/
fileTransform.js
10 lines
(8 loc)
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
// Copyright (c) 2017 PlanGrid, Inc.
// transform file imports into filenames
const
path =
require
(
'path'
);
module
.
exports
= {
process
(
src, filename
) {
return
'module.exports = '
+
JSON
.
stringify
(path.
basename
(filename)) +
';'
; } };