Treat all filenames as absolute paths. (#8044)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
const actual = transform(
|
||||
'<Foo bar="baz" />',
|
||||
Object.assign({}, opts, { filename: 'fake/path/mock.js' })
|
||||
Object.assign({}, opts, { filename: '/fake/path/mock.js' })
|
||||
).code;
|
||||
|
||||
const expected = multiline([
|
||||
'var _jsxFileName = "fake/path/mock.js";',
|
||||
'var _jsxFileName = "/fake/path/mock.js";',
|
||||
'React.createElement(Foo, {',
|
||||
' bar: "baz",',
|
||||
' __source: {',
|
||||
|
||||
Reference in New Issue
Block a user