Comments (3)
Thanks for the issue and repro πΊ
I just tried your reproduction and all works as expected for me:
β npm run build
> [email protected] build /code/forks/test-rollup-typescript
> rollup -c
src/index.ts β bundle.js...
created bundle.js in 141ms
Could something on your system be interfering?
from plugins.
Thank you for the quick reply.
I have done some further testing, and I was able to pin down more specifically why it did not work in my environment and why I does work in other environments.
I still believe that there is a bug somewhere.
It appears that a parent folder of the folder I was working from contained a parenthesis "(". The exact path I was working from was "/Users/quentinadam/Dropbox (Personal)/Projects/test-rollup-typescript".
Spaces in the path do not seem to interfere but parentheses do.
If the name of the folder is changed for example from "test-rollup-typescript" to "test-rollup-typescript(test)" the npm run build
step fails with the error I described above.
The issue is 100% reproducible on a fresh Digital Ocean VPS with Ubuntu 18.04 with the following commands :
# install nodejs
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
# clone repo
git clone https://github.com/quentinadam/test-rollup-typescript.git
cd test-rollup-typescript
# install packages
npm install
# move out of folder and change folder name to include parenthesis
cd ..
mv test-rollup-typescript "test-rollup-typescript(test)"
cd "test-rollup-typescript(test)"
# run build phase
npm run build
from plugins.
This seems to be caused by pluginutils' createFilter
interpreting parenthesis as glob characters instead of part of the path. As a result, the typescript files aren't matched properly by the filter. I'll try to put up a PR for pluginutils later.
from plugins.
Related Issues (20)
- @rollup/plugin-alias entries is not work when use customResolver HOT 1
- [@rollup/plugin-eslint] New flat config `eslint.config.js` is not recognized HOT 1
- [@rollup/plugin-esm-shim] Shim inserted incorrectly if source file has `import` in comment HOT 1
- [@rollup/plugin-node-resolve] confusion about what this plugin does HOT 2
- How to tell `--configPlugin` to use specific `tsconfig`? HOT 5
- [@rollup/plugin-node-resolve] resolving package.json exports/imports arrays HOT 1
- Source URLs in generated source map are wrong when `composite` is enabled in tsconfig.json
- requireReturnsDefault: "auto" results in an incorrect bundle for some libraries
- [@rollup/plugin-alias] Allow to configure alias based on entry point
- ε¨SCSSδΈε¦δ½ζΏζ’Varει
- Allow @rollup/plugin-virtual to be a function that takes a module ID
- [@rollup/plugin-tpescript] Rollup does not use `paths` in `rollup.config.ts`
- [@rollup/plugin-typescript] allowImportingTsExtensions warning
- [@rollup/plugin-tpescript] Rollup does not get `module` and `moduleResolution` settings from extended `tsconfig.json` HOT 1
- [@rollup/plugin-json] won't process files without json suffix HOT 4
- CommonJS plugin version bump to 26.0.0 causes build issue HOT 4
- Confusing explanation in @rollup/plugin-typescript's README
- [@rollup/plugin-swc] leads to unusable bundle in combination with [@rollup/plugin-commonjs] and [@rollup/plugin-node-resolve]
- I don't know if this is a mistake
- Wasm plugin to support latest ESM Integration & Source Phase Imports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.