Nathaniel Tucker

Results 66 comments of Nathaniel Tucker

I would recommend considering https://github.com/callstack/linaria as it is much better for performance than others.

https://github.com/callstack/linaria is by far the best css-in-js implementation as it has zero runtime. Super fast and also more powerful in other ways.

> Lerna(v3.21.0) does not publishes the private packages if we use `--no-private` flag in publish command. > > Reference: https://github.com/lerna/lerna/tree/master/commands/version#--no-private However that also makes it not bump the package versions...

node_modules/msw/lib/node/index.mjs is commonjs? Mjs extensions should only be used for esm

node_modules/msw/lib/node/index.mjs is commonest? Mjs extensions should only be used for esmwhat is https://github.com/mswjs/msw/pull/1247 about then? It adds mjs extensions

I believe importing is fine... you just have to specify the file extension anytime you're in an esm.

Ts doesn't force you to not use extensions. If you add .js it will still look for .d.ts etc. See my project for example bundling: https://github.com/coinbase/rest-hooks

For instance, you can see in https://github.com/coinbase/rest-hooks/blob/master/packages/core/src/index.ts all the relative imports specify .js in the extension. If you use tsc for compiling your js: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js If you use babel -...

Again, this implementation is against spec so it will break in all environments that implement spec correctly: https://nodejs.org/api/esm.html#mandatory-file-extensions

I would personally be happy with ESM targets being removed until properly impelemented