Niklas Mischkulnig
Niklas Mischkulnig
# 🙋 feature request Use `exports` maps in the resolver https://nodejs.org/api/esm.html#esm_package_exports https://nodejs.org/api/esm.html#esm_conditional_exports https://webpack.js.org/guides/package-exports/ ## 💻 Examples https://github.com/preactjs/preact/blob/master/package.json#L11 https://unpkg.com/browse/[email protected]/package.json ## Relevant code The resolver: https://github.com/parcel-bundler/parcel/blob/v2/packages/resolvers/default/src/DefaultResolver.js which calls: https://github.com/parcel-bundler/parcel/blob/v2/packages/utils/node-resolver-core/src/NodeResolver.js
# 🐛 bug report Adding a new locale directory/files doesn't invalidate the webextension transformer. ## 🤔 Expected Behavior - Add a new directory and messages file under `_locales` - Parcel...
This no longer works: ```js const url = 'https://cdn.skypack.dev/jszip@^3.10.0'; const {default: JSZip} = await import(url); ``` because `import` is turned into a `require` I just found out that this is...
After some heavy debugging I figured out. If you are using Template literals (``) the source map is completely broken. index.ts ```ts console.log("test1") // line 1 correct let text =...
# ↪️ Pull Request Essentially a rebase of https://github.com/parcel-bundler/parcel/pull/4981 Don't use `resolveResult.filePath` for hashing, but `pkgName@pkgVersion/relativePath` inside node_modules. Do we actually want this (by default)? - This system also applies...
An updated version of #2578, but using `faccessat` and removing the unecessary version checks (addressing the feedback from @bnoordhuis) Closes #2578 See the linked PR for the previous discussion. I'm...
### Describe the bug A case where function inlining made the output bigger instead of smaller ### Input code ```typescript function $parcel$export(a, b, c){a[b] = c;} $parcel$export(module.exports, "A", function ()...
### Describe the bug Imports of specific core-js parts are removed with a `mode: usage`. Babel doesn't remove them: https://babeljs.io/repl#?browsers=Chrome%2040&build=&builtIns=entry&corejs=3.21&spec=false&loose=false&code_lz=JYWwDg9gTgLgBAIgMbQKYFoBWBnA9CCAEwFcAbVPCgOmximADsBzKgQxnVdJlSgfeAA3VAgDcAKHFA&debug=false&forceAllTransforms=false&shippedProposals=true&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=unambiguous&lineWrap=false&presets=env&prettier=false&targets=&version=7.18.7&externalPlugins=&assumptions=%7B%7D ### Input code ```typescript import "core-js/modules/es.string.at-alternative"; ``` ### Config ```json...
```js const msgpack = require('@msgpack/msgpack'); let original = {x: undefined}; let serialized = msgpack.encode(original, {extensionCodec}); let deserialized = msgpack.decode(serialized, {extensionCodec}); console.log(original, deserialized, original.x === deserialized.x); ``` prints "{ x: undefined...
**Bug report or Feature request?** Bug **Version (complete output of `terser -V` or specific git commit)** 5.14.1 **Complete CLI command or `minify()` options used** `terser -mc --module --toplevel` **`terser` input**...