material-motion
Version:
Makes it easy to add rich, interactive motion to your application.
41 lines (37 loc) • 923 B
JavaScript
import typescript from 'rollup-plugin-typescript2';
import resolve from 'rollup-plugin-node-resolve';
// Rollup doesn't seem to resolve the export statement unless you use a relative
// path.
import {
renameSymbolObservable,
unifyLicenses,
} from '../../node_modules/indefinite-observable/rollupPlugins';
export default {
input: './src/index.ts',
output: {
file: './dist/material-motion.bundle.js',
format: 'esm',
},
plugins: [
resolve({
modulesOnly: true,
// Whitelist imports to assert that we only inline things that we've
// injected the licenses for.
only: [
'indefinite-observable',
'wobble',
'symbol-observable',
'fast-equals',
],
}),
typescript({
tsconfigOverride: {
compilerOptions: {
declaration: false,
},
},
}),
renameSymbolObservable(),
unifyLicenses(),
],
};