Skip to content

Commit

Permalink
Merge pull request #218 from LiveIntent/cm-1203
Browse files Browse the repository at this point in the history
[CM-1203] Drop mjs-entry plugin
  • Loading branch information
mschuwalow authored Mar 22, 2024
2 parents 69d0c0a + 29a9fae commit 436a373
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
17 changes: 0 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-dts": "^6.0.1",
"rollup-plugin-mjs-entry": "^0.1.1",
"serialize-javascript": ">=6.0.1",
"sinon": "^17.0.0",
"sinon-chai": "^3.7.0",
"ts-node": "^10.9.1",
Expand Down
15 changes: 11 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import strip from '@rollup/plugin-strip'
import ts from '@rollup/plugin-typescript'
import cleaner from 'rollup-plugin-cleaner'
import mjsEntry from 'rollup-plugin-mjs-entry'
import dts from 'rollup-plugin-dts'
import del from "rollup-plugin-delete"

Expand All @@ -12,9 +11,18 @@ export default [
input: './src/index.ts',
output: [
{
file: `${OUTPUT_DIR}/index.cjs`,
dir: OUTPUT_DIR,
entryFileNames: '[name].cjs',
chunkFileNames: '[name]-[hash].cjs',
format: 'cjs',
sourcemap: false
},
{
dir: OUTPUT_DIR,
entryFileNames: '[name].mjs',
chunkFileNames: '[name]-[hash].mjs',
format: 'es',
sourcemap: false
}
],
plugins: [
Expand All @@ -25,8 +33,7 @@ export default [
declarationDir: `${OUTPUT_DIR}/dts`,
}
}),
strip(),
mjsEntry() // https://nodejs.org/api/packages.html#packages_dual_commonjs_es_module_packages
strip()
],
external: [
'live-connect-common',
Expand Down

0 comments on commit 436a373

Please sign in to comment.