esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

`external=` option doesn't apply on imports with `/` e.g. `external=css-in-js-utils/*`

Open chrisirhc opened this issue 3 years ago • 1 comments

Repro:

  1. https://esm.sh/v99/[email protected]?dev&external=css-in-js-utils%2F*
  2. Follow import to https://esm.sh/v99/[email protected]/X-ZS9jc3MtaW4tanMtdXRpbHM/es2022/inline-style-prefixer.development.js

Expect: css-in-js module to be imported as an external.

Actual:

// esm-build-0efbdc249b7c8359f5afc7af9c495c986c375902-46c791ab/node_modules/inline-style-prefixer/es/plugins/crossFade.js
import isPrefixedValue from "/v99/[email protected]/es2022/lib/isPrefixedValue.development.js";
var prefixes2 = ["-webkit-", ""];
function crossFade(property, value) {

Ah, the external= doesn't apply when the import is css-in-js-utils/…

chrisirhc avatar Dec 17 '22 10:12 chrisirhc

thanks for reporting, i will look into it

ije avatar Dec 21 '22 05:12 ije