capacitor-assets icon indicating copy to clipboard operation
capacitor-assets copied to clipboard

make module esm ready

Open jpike88 opened this issue 3 years ago • 0 comments

import { run } from 'cordova-res';
         ^^^
SyntaxError: Named export 'run' not found. The requested module 'cordova-res' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'cordova-res';
const { run } = pkg;

jpike88 avatar Jan 12 '22 05:01 jpike88