Constants for the frontend.
npm i -S @substrate-system/constantsThis exposes ESM and common JS via package.json exports field.
import '@substrate-system/constants'require('@substrate-system/constants')import {
EM_DASH,
EN_DASH,
NBSP,
ELLIPSIS
} from '@namespace/constants'This package exposes minified JS files too. Copy them to a location that is accessible to your web server, then link to them in HTML.
cp ./node_modules/@namespace/constants/dist/module.min.js ./public<script type="module" src="./module.min.js"></script>