Closed snlamm closed 3 years ago
I believe this is expected behavior. In a browser, #
marks the end of a URL. So trying to load es5-ext.array.#.clear.v0.10.53.js
would result in a browser requesting es5-ext.array.
—everything after the hash would be ignored. Because Snowpack’s goal is to maintain parity with the ESM spec, I don’t think we’ll support something that browsers don’t (obviously not including quality of life improvements that don’t conflict with ESM and make writing easier—we’re big fans of those).
Understood - thanks for taking a look!
Bug Report Quick Checklist
Describe the bug
Summary: It looks like snowpack is breaking on file-paths with pounds signs (i.e.
#
). It breaks on the most recent snowpack v3.3.0 (and v3.2.0). However, it works fine at v3.0.13.Details: My code relies on an npm dependency which itself relies on an old package called
es5-ext
. It’s a library to provide shims for ES6. Thises5-ext
package has the following file structure:es5-ext/array/#/clear.js
.When I run the
snowpack build --watch
command, however, it’s not able to read past the#
in the filepath!The output I get is:
I’m running snowpack v3.3.0, with @snowpack/plugin-babel v2.17.
I'm a huge fan of Snowpack. Happy provide any other information!
To Reproduce
npm init snowpack-app --template @snowpack/app-template-react-typescript --use-yarn
yarn add es6-map
tsconfig.json
setstrict
tofalse
(since es6-map is typed as any)src/index.tsx
add:console.log(Map);
/_snowpack/pkg/es5-ext.array.#.clear.v0.10.53.js
/_snowpack/pkg/es5-ext.array.