Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit bbdf8b3

Browse files
authored
Add more files to npm distribution (rollup#2552)
* Include sourcemaps and ESM browser build in bundle * Exclude sourcemaps again, use js extension for browser bundle, only generate sourcemaps relevant for tests
1 parent 084354e commit bbdf8b3

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,9 @@
116116
"url-parse": "^1.4.3"
117117
},
118118
"files": [
119-
"dist/rollup.browser.js",
120-
"dist/rollup.es.js",
121-
"dist/rollup.js",
122-
"dist/**/*.d.ts",
123-
"bin/rollup",
124-
"README.md"
119+
"dist/*.js",
120+
"dist/*.d.ts",
121+
"bin/rollup"
125122
],
126123
"lint-staged": {
127124
"{src,bin,browser,typings}/**/*.ts": [

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default command => {
8181
external: ['fs', 'path', 'events', 'module', 'util', 'crypto'],
8282
output: [
8383
{ file: 'dist/rollup.js', format: 'cjs', sourcemap: true, banner },
84-
{ file: 'dist/rollup.es.js', format: 'es', sourcemap: true, banner }
84+
{ file: 'dist/rollup.es.js', format: 'esm', banner }
8585
]
8686
},
8787
/* Rollup CLI */
@@ -134,8 +134,8 @@ export default command => {
134134
terser({ module: true, output: { comments: 'some' } })
135135
],
136136
output: [
137-
{ file: 'dist/rollup.browser.js', format: 'umd', name: 'rollup', sourcemap: true, banner },
138-
{ file: 'dist/rollup.browser.mjs', format: 'es', sourcemap: true, banner }
137+
{ file: 'dist/rollup.browser.js', format: 'umd', name: 'rollup', banner },
138+
{ file: 'dist/rollup.browser.es.js', format: 'esm', banner }
139139
]
140140
}
141141
]);

0 commit comments

Comments
 (0)