feat(ses): Export SES Transforms
MODIFY
packages/ses/package.json
packages/ses/package.json
"import": "./lockdown.js",
"require": "./dist/lockdown.cjs",
"browser": "./dist/lockdown.umd.js"
+ },
+ "./transforms": {
+ "import": "./transforms.js",
+ "require": "./dist/transforms.cjs",
+ "browser": "./dist/transforms.umd.js"
}
},
"scripts": {

MODIFY
packages/ses/rollup.config.js
packages/ses/rollup.config.js
@@ -25,6 +25,15 @@ export default [
format: 'cjs',
},
],
+ },
+ {
+ input: 'src/transforms.js',
+ output: [
+ {
+ file: 'dist/transforms.cjs',
+ format: 'cjs',
+ },
+ ],
plugins: [resolve(), commonjs()],
},
{
@@ -45,6 +54,15 @@ export default [
},
plugins: [resolve(), commonjs()],
},
+ {
+ input: 'src/transforms.js',
+ output: {
+ file: 'dist/transforms.umd.js',
+ format: 'umd',
+ name: 'SesTransforms',
+ },
+ plugins: [resolve(), commonjs()],
+ },
{
input: 'ses.js',
output: {
@@ -63,4 +81,13 @@ export default [
},
plugins: [resolve(), commonjs(), terser()],
},
+ {
+ input: 'src/transforms.js',
+ output: {
+ file: 'dist/transforms.umd.min.js',
+ format: 'umd',
+ name: 'SesTransforms',
+ },
+ plugins: [resolve(), commonjs(), terser()],
+ },
];

feat(ses): Export SES Transforms (#608)