I use scoped modules like:
// src/main.js
import Something from "@some/thing";
The external package would be:
// node_modules/@some/thing/package.json
{
...
"jsnext:main": "src/index",
...
}
// node_modules/@some/thing/src/index.js
export default {};
This works in 0.16.1, but since version 0.16.2 the bundling fails with this error:
> rollup -f cjs -i src/main.js -o build/main.js
ENOENT, no such file or directory 'F:\Sourcecode\JavaScript\MyProject\node_modules\@some\thing.js'
Error: ENOENT, no such file or directory 'F:\Sourcecode\JavaScript\MyProject\node_modules\@some\thing.js'
at Error (native)
at Object.fs.openSync (evalmachine.<anonymous>:500:18)
at Object.fs.readFileSync (evalmachine.<anonymous>:352:15)
at Object.readFileSync (F:\Sourcecode\JavaScript\MyProject\node_modules\rollup\node_modules\sander\src\methodMakers\standardMethod.js:47:27)
at _Bundle.defaultLoader [as load] (F:\Sourcecode\JavaScript\MyProject\node_modules\rollup\dist\rollup.js:3193:22)
at _Bundle.fetchModule (F:\Sourcecode\JavaScript\MyProject\node_modules\rollup\dist\rollup.js:3290:38)
at F:\Sourcecode\JavaScript\MyProject\node_modules\rollup\dist\rollup.js:3335:21
at lib$es6$promise$$internal$$tryCatch (F:\Sourcecode\JavaScript\MyProject\node_modules\rollup\node_modules\sander\node_modules\es6-promise\dist\es6-promise.js:331:16)
at lib$es6$promise$$internal$$invokeCallback (F:\Sourcecode\JavaScript\MyProject\node_modules\rollup\node_modules\sander\node_modules\es6-promise\dist\es6-promise.js:343:17)
at F:\Sourcecode\JavaScript\MyProject\node_modules\rollup\node_modules\sander\node_modules\es6-promise\dist\es6-promise.js:891:13
Rollup doesn't include the external module's entry point for some reason. Other external modules with no scope work just fine!
I use scoped modules like:
The external package would be:
This works in 0.16.1, but since version 0.16.2 the bundling fails with this error:
Rollup doesn't include the external module's entry point for some reason. Other external modules with no scope work just fine!