Merge branch 'master' of github.com:babel/babel
This commit is contained in:
commit
dc2a20dbcd
@ -243,7 +243,7 @@ export default class File {
|
||||
if (name) {
|
||||
if (typeof name === "object" && name.transformer) {
|
||||
plugin = name.transformer;
|
||||
position ||= name.position;
|
||||
position = name.position || position;
|
||||
} else if (typeof name === "string") {
|
||||
// this is a plugin in the form of "foobar" or "foobar:after"
|
||||
// where the optional colon is the delimiter for plugin position in the transformer stack
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user