diff --git a/packages/unpacker/src/module-scan/babel-runtime.ts b/packages/unpacker/src/module-scan/babel-runtime.ts index e9b8d5d1..9ba2b640 100644 --- a/packages/unpacker/src/module-scan/babel-runtime.ts +++ b/packages/unpacker/src/module-scan/babel-runtime.ts @@ -77,6 +77,18 @@ const moduleMatchers: Record\w+)\)\s?\{\s+?\k\s?=\s?(?\w+)\.slice\(0\);?\s+?}/, + /return\sObject\.freeze\(Object\.defineProperties\(\w+,\s?\{\s?raw:\s?\{\s?value:\s?Object\.freeze\((?\w+)\)\s?}\s?}\s?\)\)/, + ], + ], + '@babel/runtime/helpers/taggedTemplateLiteralLoose ': [ + [ + /if\s?\(!(?\w+)\)\s?\{\s+?\k\s?=\s?(?\w+)\.slice\(0\);?\s+?}/, + /(?\w+)\.raw\s?=\s?(?\w+)/, + ], + ], '@babel/runtime/helpers/typeof': [ /\w+\s?=\s?"function"\s?===?\s?typeof Symbol\s?&&\s?"symbol"\s?===?\s?typeof Symbol\.iterator\s?\?/, /&& \w+\.constructor\s?===?\s?Symbol\s?&&\s?\w+\s?!==?\s?Symbol\.prototype\s?\?\s?"symbol"\s?:\s?typeof\s?\w+/,