escape-html-template-tag icon indicating copy to clipboard operation
escape-html-template-tag copied to clipboard

[Bug Report]Webpack error: Module not found: Error: Default condition should be last one

Open felixlkh opened this issue 8 months ago • 1 comments

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" },

felixlkh avatar Nov 28 '23 11:11 felixlkh