Closed meyer closed 1 year ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
packages/sqrl-text-functions/src/InProcessPatternService.ts | 2 | 3 | 66.67% | ||
<!-- | Total: | 2 | 3 | 66.67% | --> |
Totals | |
---|---|
Change from base Build 3556589603: | 0.0% |
Covered Lines: | 15434 |
Relevant Lines: | 23737 |
That said it's still useful to have a version of the
sqrl-text-functions
that doesn't depend onre2
? maybe?
I like the config option route that you’re using here. I think we should be able to clean it up a bit more so the webpack override isn’t necessary. I’ll fool around with it a bit in the near future.
Problem
sqrl-text-functions/web
exists to work around an re2 import issue.Solution
I fixed the import in the browser by adding
re2: false
toconfig.resolve.alias
in our nextjs config file. While I was at it I also tidied up a few loose types.Result
We can import stuff from
sqrl-text-functions
andnpm run build
andnpm run dev
work without issue.