Closed zcuric closed 6 months ago
It should be fixed in 4.5.2
It should be fixed in 4.5.2
Thank you! 👏
So isn't this done?! Why not to close?
I encountered problems using @rollup/plugin-eslint.
// bili.config.ts
import { Config } from 'bili';
const config: Config = {
input: 'src/index.ts',
output: {
format: ['cjs', 'esm']
},
plugins: {
'@rollup/plugin-eslint': {
throwOnError: true
}
}
};
export default config;
The problem is that bili puts this plugin in last place, so it's linting transformed code and not the original one.
1:51 error 'rollupPluginBabelHelpers.js' imported multiple times
Hi, when trying to fix the build for
vue-plyr
(https://github.com/redxtech/vue-plyr/issues/60) by updating tobili@4
(see here: https://github.com/zcuric/vue-plyr/pull/1) I encountered an issue when using specific babel config with vue files (I was trying to solve this actually: https://github.com/rollup/rollup-plugin-babel/issues/260).Error I got was this:
After debugging, we concluded that was probably because of order of plugins, which we test by moving https://github.com/egoist/bili/blob/28b1a197eb41dac2582814253f6b2b9226310d21/src/index.ts#L290-L301
to here: https://github.com/egoist/bili/blob/28b1a197eb41dac2582814253f6b2b9226310d21/src/index.ts#L216
In
bili@3
this wasn't an issue, probably because of the way the plugins were defined, array was used in that config.So, there should be a way to define the plugin priority or order of execution to fix these kind of errors.
cc @vladimyr