You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importcopyfrom"rollup-plugin-copy";importsucrasefrom"@rollup/plugin-sucrase";importjsonfrom"@rollup/plugin-json";importcssfrom"rollup-plugin-css-only";importresolvefrom"@rollup/plugin-node-resolve";importsvgfrom"rollup-plugin-svg";importnodePolyfillsfrom'rollup-plugin-node-polyfills';exportdefault{input: "src/index.jsx",output: {file: "dist/index.js",format: "iife",globals: {react: "React",fs: "fs",path: "path","react-dom": "ReactDOM",},},//This is meant to suppress the warning for d3-selection circular dependencies (https://github.com/d3/d3-selection/issues/168)onwarn: function(warning,warn){if(warning.code==="CIRCULAR_DEPENDENCY")return;warn(warning);},plugins: [svg(),css({output: "css/bundle.css"}),json(),nodePolyfills(),sucrase({transforms: ["jsx"],production: true,}),copy({targets: [{src: ["node_modules/react/umd/react.development.js","node_modules/react-dom/umd/react-dom.development.js","src/static/*",],dest: "dist",},],verbose: true,}),resolve(),],external: ["react","react-dom"],};
I get this error
[!] Error: 'existsSync' is not exported by node_modules/rollup-plugin-node-polyfills/polyfills/empty.js, imported by ../../core/utils/silly-i18n/src/index.js
It's true that the documentation mentions
optional, add option to enable browserified shim
However, not clear how to add that option. What does it really mean?
The text was updated successfully, but these errors were encountered:
With this configuration:
I get this error
It's true that the documentation mentions
However, not clear how to add that option. What does it really mean?
The text was updated successfully, but these errors were encountered: