Closed Meemaw closed 4 years ago
Same problem:
Error: 'snakeCaseAttributeName' is not exported by ../rionite-snake-case-attribute-name/dist/index.js
Content of ../rionite-snake-case-attribute-name/dist/index.js :
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let reCamelCase = /^_?[a-z][0-9a-z]*$/i;
let reLetters = /[A-Z][^A-Z]/g;
let reLetters2 = /[A-Z]{2,}/g;
let cache = new Map();
function snakeCaseAttributeName(str, useCache) {
let value;
return ((useCache && cache.get(str)) ||
((value = reCamelCase.test(str)
? str
.replace(reLetters, word => '_' + word)
.replace(reLetters2, word => '_' + word)
.toLowerCase()
: str),
useCache && cache.set(str, value),
value));
}
exports.snakeCaseAttributeName = snakeCaseAttributeName;
rollup.config.js :
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import typescript from 'rollup-plugin-typescript2';
export default {
input: './src/index.ts',
output: {
file: './dist/rionite.js',
format: 'umd',
name: 'rionite',
globals: {
'@riim/uid': '@riim/uid',
cellx: 'cellx'
}
},
external: [
'@riim/uid',
'cellx',
'reflect-metadata'
],
plugins: [
nodeResolve({ browser: true }),
commonjs({ include: /node_modules/ }),
typescript({ clean: true })
]
};
No reaction to namedExports.
Hey folks (this is a canned reply, but we mean it!). Thanks to everyone who participated in this issue. We're getting ready to move this plugin to a new home at https://github.com/rollup/plugins, and we have to do some spring cleaning of the issues to make that happen. We're going to close this one, but it doesn't mean that it's not still valid.
We've got some time yet before the move while we resolve pending Pull Requests, so if this issue is still relevant, please @ me and I'll make sure it gets reopened and transferred to the new repo. :beer:
Hello there! I am new to Rollup and would appreciate some help at setting up build for my common library written in Typescript. I managed to make build work for sometime but it stopped working at some point. I am getting the following error:
[!] Error: 'DynamoDB' is not exported by node_modules/aws-sdk/lib/aws.js
My package.json looks like this:
And my rollup.config.ts like this:
I have tried following as suggested here, but without success: