You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, create a new module test at the node_modules directory with one file, add one method to this file, export this method and use it in your code. I get the following behaviour for imports
import*asTestModulefrom'test';// is workingimport*asTestModulefrom'test/index';// is workingimport*asTestModulefrom'test/index.js';// is not working("Generated an empty chunk: "te
Bug is most likely coming from this line in src/rollup-plugins/rollup-plugin-wrap-install-targets.ts:
We convert a .js -> js for packages like tippy.js that get installed as tippyjs.js. It looks like we need to restrict this to only a package name. In the past, we've done that by calling:
importvalidatePackageNamefrom'validate-npm-package-name';if(validatePackageName(imp.specifier).validForNewPackages){// this is a package name, not a path within a package
The text was updated successfully, but these errors were encountered:
Original Discussion: #965
/cc @Papierschiff
Bug is most likely coming from this line in
src/rollup-plugins/rollup-plugin-wrap-install-targets.ts
:We convert a
.js
->js
for packages liketippy.js
that get installed astippyjs.js
. It looks like we need to restrict this to only a package name. In the past, we've done that by calling:The text was updated successfully, but these errors were encountered: