Comments (6)
Yes it looks correct, and it works for me locally.
from karma-rollup-preprocessor.
Can you share a little more about how it breaks?
I'm curious what @rollup/plugin-multi-entry
does to the facadeModuleId
, I wasn't able to figure that out by looking at its source.
from karma-rollup-preprocessor.
@rollup/plugin-multi-entry
registers all the files that it processes under a virtual file with the name of \0rollup:plugin-multi-entry:entry-point
. facadeModuleId
was the only ID property I could find that maintains the null byte. The rest of the properties like fileName
replace the null byte with an underscore.
However, I am just discovering that karma itself prevents @rollup/plugin-multi-entry
from working as expected in a different way. The plugin is expecting a glob, but Karma is already expanding the glob to individual files. This observation appears to tread on #49.
Still, that doesn't change the fact that tests were passing with karma-rollup-preprocessor
7.0.0, and failing with 7.0.1 with the same rollup config.
Sorry for being brief, I am in a hurry atm. Can expand more later if still needed.
from karma-rollup-preprocessor.
Just following up on this @Lalem001. I'd like to fix this, do you still think your suggestion !hasNullByte()
is the best way forward?
from karma-rollup-preprocessor.
The suggestion is a possible solution. Karma would never use that particular plugin correctly anyway, since it only sends Rollup (and the preprocessor) 1 file at a time. The solution might resolve problems with other plugins that have not yet been reported.
I will say however that this issue so far has been preventing me from being on latest karma-rollup-preprocessor
, and the solution proposed does resolve the issue for me locally.
from karma-rollup-preprocessor.
That makes sense. Well, it seems like a fair precaution to check for null bytes. I updated the development
branch, does this look correct to you?
from karma-rollup-preprocessor.
Related Issues (20)
- Rollup has moved output options within the config
- sourcemaps not working HOT 4
- Add support of array configs HOT 4
- Source Maps not Working HOT 1
- Watching doesn't start when debugging HOT 4
- Not compatible with the latest version of Rollup (v1.0.0) HOT 2
- TypeError: Cannot read property 'forEach' of undefined HOT 4
- dynamic imports give a 404 HOT 4
- dependencies are duplicated for each test file HOT 19
- Issues using babel-typescript and @types packages HOT 3
- Watching fails to process files HOT 6
- Missing options in examples HOT 2
- Warnings when used with Rollup >= 1.27.0
- There are hints when using plug-ins that introduce files HOT 1
- Watch not working on windows HOT 9
- #69 breaks configs with output.file HOT 1
- Watcher not working using TypeScript? HOT 13
- Watch mode overwrites the test file HOT 9
- New version containing fix for watch mode HOT 1
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 karma-rollup-preprocessor.