I have created a rollup project. I wasn't able to use rollup -c && rollup -c --environment PRODUCTION
without using less than two files :
Some people told me on freenode I should only have one file.
I wan't to be able to run the following code with rollup:
src/index.js
export default true;
src/tests/index.test.js
import demo from '../index';
describe('demo test', () => {
it('should return true', () => {
expect(demo).toBe(true);
});
});
I couldn't find any logical explanation on what plugin should be in what file, all I know is I wasn't able to make it work with only one configuration.