Conversation
| //. If you are using rollup in your project, where you have integrated Sanctuary, you might | ||
| //. get errors. Please import builtins and globals from rollup-plugin-node-builtins and | ||
| //. rollup-plugin-node-globals respectively, in the rollup config file. These are needed to add | ||
| //. the utils folder, which is referenced in the sanctuary code. |
There was a problem hiding this comment.
This is great! Could you share the snippet from your Rollup config file? Perhaps we could include that here.
There was a problem hiding this comment.
Yes, sure. Here is my rollup.config file for a simple project, where I've used Sanctuary and rollup:
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
import builtins from 'rollup-plugin-node-builtins';
import globals from 'rollup-plugin-node-globals';
export default {
input: './src/main.js',
output: {
file: './build/bundle.min.js',
format: 'iife',
name: 'bundle'
},
plugins: [
nodeResolve({ preferBuiltins: false }), // or true
commonjs(),
globals(),
builtins()]
}
;
|
I'm sorry for dropping the ball, @edlimerkaj. Do you know whether the incompatibility still exists, more than two years later? |
No description provided.