escape-html-template-tag
escape-html-template-tag copied to clipboard
[Bug Report]Webpack error: Module not found: Error: Default condition should be last one
Module not found: Error: Default condition should be last one.
This can be easily fixed by reordering the default condition to be the last one.
https://github.com/Janpot/escape-html-template-tag/blob/eb8febf447f54e5afe9fd7bff20c6117d1c2396a/package.json#L7-L11
change to
"exports": { "require": "./dist/index.js", "types": "./dist/index.d.ts", "default": "./dist/index.modern.mjs" },
I think we can put the "types"
field first even. PR welcome