Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import path from 'path';
import rollupConfig from '@ovh-ux/component-rollup-config';
const config = rollupConfig(
{
input: 'src/index.js',
},
{
lessTildeImporter: {
paths: [
path.resolve(__dirname, 'node_modules'),
path.resolve(__dirname, '../../../../node_modules'),
],
},
},
);
const outputs = [config.es()];
// if (process.env.BUILD === 'production') {
import rollupConfig from '@ovh-ux/component-rollup-config';
const config = rollupConfig({
input: 'src/index.js',
});
const outputs = [config.es({
output: {
sourcemap: false,
},
})];
if (process.env.BUILD === 'production') {
outputs.push(config.cjs());
outputs.push(
config.umd({
output: {
globals: {
angular: 'angular',
import rollupConfig from '@ovh-ux/component-rollup-config';
const config = rollupConfig({
input: 'src/index.js',
});
const outputs = [config.es()];
if (process.env.BUILD === 'production') {
outputs.push(config.cjs());
outputs.push(
config.umd({
output: {
globals: {
angular: 'angular',
},
},
}),
);
import rollupConfig from '@ovh-ux/component-rollup-config';
const config = rollupConfig({
input: './src/index.js',
});
const outputs = [config.es()];
if (process.env.BUILD === 'production') {
outputs.push(config.cjs());
outputs.push(
config.umd({
output: {
globals: {
angular: 'angular',
},
},
}),
);
import path from 'path';
import rollupConfig from '@ovh-ux/component-rollup-config';
const config = rollupConfig(
{
input: './src/index.js',
},
{
lessTildeImporter: {
paths: [
path.resolve(__dirname, 'node_modules'),
path.resolve(__dirname, '../../../../node_modules'),
],
},
},
);
export default [
config.cjs(),
config.umd({
import rollupConfig from '@ovh-ux/component-rollup-config';
import path from 'path';
const config = rollupConfig({
input: 'src/index.js',
}, {
lessTildeImporter: {
paths: [
path.resolve(__dirname, 'node_modules'),
path.resolve(__dirname, '../../../../node_modules'),
],
},
});
const outputs = [config.es()];
if (process.env.BUILD === 'production') {
outputs.push(config.cjs());
outputs.push(config.umd());
}
import path from 'path';
import rollupConfig from '@ovh-ux/component-rollup-config';
const config = rollupConfig(
{
input: 'src/index.js',
},
{
lessTildeImporter: {
paths: [
path.resolve(__dirname, 'node_modules'),
path.resolve(__dirname, '../../../../node_modules'),
],
},
},
);
const outputs = [config.es()];
if (process.env.BUILD === 'production') {
import rollupConfig from '@ovh-ux/component-rollup-config';
const config = rollupConfig({
input: './src/index.js',
});
const outputs = [config.es()];
if (process.env.BUILD === 'production') {
outputs.push(config.cjs());
outputs.push(
config.umd({
output: {
globals: {
angular: 'angular',
jquery: '$',
},
},
}),
import path from 'path';
import rollupConfig from '@ovh-ux/component-rollup-config';
const config = rollupConfig(
{
input: 'src/index.js',
},
{
lessTildeImporter: {
paths: [
path.resolve(__dirname, 'node_modules'),
path.resolve(__dirname, '../../../../node_modules'),
],
},
},
);
const outputs = [
config.es({
output: {
import rollupConfig from '@ovh-ux/component-rollup-config';
const config = rollupConfig({
input: './src/index.js',
});
const outputs = [
config.es(),
];
if (process.env.BUILD === 'production') {
outputs.push(config.cjs());
outputs.push(config.umd({
output: {
globals: {
angular: 'angular',
},
},
}));