make buildhelper compatible with previous tsconfig #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The move from each codemirror 6 repo having its own separate rollup and tsconfig to a single buildhelper (e.g. with
@codemirror/autocomplete) brokedistcompatibility due to changes intarget,module, etc.One example is the nullish coalescing operator found in the
distof@codemirror/autocomplete, resulting in the following error:Edit: Oops. On further reading of buildhelper, I realized the tsconfig used in the build step was contained inside of
src/build.tsand was not/tsconfig.json. Last commit fixes that.Looks like the es2020 target was indeed an accident. Is the removal of the declarationMap setting causing any problems for you? The rolled-up declaration doesn't use those anyway, so I believe that just causes the TypeScript compiler to waste time creating maps that are never read.
It seemed useful when reading its functionality in tsconfig, but if
srcfiles aren't shipped with thedistas with npm, then yeah it'd be to fine to removedeclarationMapand save compiler time.Thanks. I've merged this without the declaration map change and released fixed version of @codemirror/state and @codemirror/autocomplete.
Pull request closed