Skip to content

Commit f99f9f7

Browse files
mahainaJustineo
authored andcommitted
build: change babelHelpers from to
1 parent 8577bed commit f99f9f7

File tree

6 files changed

+15
-30
lines changed

6 files changed

+15
-30
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ node_modules
33
npm-debug.log
44
.vscode
55
**/dist
6-
**/es
76
**/variables.*
87
**/test/snapshots
+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
> ⚠️ - Breaking Changes
22
3+
## 0.0.1-alpha.0
4+
- build: change babelHelpers from `runtime` to `bundled`.
5+
- chore: delete useless dependencies.
6+
37
## 0.0.1-alpha.0
48
- First release.

packages/dls-color-palette/babel.config.js

-5
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,5 @@ module.exports = {
1313
'modules': false
1414
}
1515
].filter(Boolean)
16-
],
17-
plugins: [
18-
[
19-
'@babel/transform-runtime'
20-
]
2116
]
2217
}

packages/dls-color-palette/package-lock.json

+3-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dls-color-palette/package.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dls-color-palette",
3-
"version": "0.0.1-alpha.0",
3+
"version": "0.0.1-alpha.1",
44
"description": "color palette generator for BAIDU DLS.",
55
"main": "dist/index.cjs.mim.js",
66
"module": "dist/index.esm.min.js",
@@ -15,9 +15,11 @@
1515
"baidu"
1616
],
1717
"license": "MIT",
18+
"dependencies": {
19+
"color-converters": "^0.1.1"
20+
},
1821
"devDependencies": {
1922
"@babel/core": "^7.11.6",
20-
"@babel/plugin-transform-runtime": "^7.11.5",
2123
"@babel/preset-env": "^7.11.5",
2224
"@rollup/plugin-babel": "^5.2.0",
2325
"@rollup/plugin-commonjs": "^15.0.0",
@@ -28,13 +30,8 @@
2830
"rollup-plugin-babel": "^4.4.0",
2931
"rollup-plugin-terser": "^7.0.1"
3032
},
31-
"dependencies": {
32-
"@babel/runtime": "^7.11.2",
33-
"color-converters": "^0.1.1"
34-
},
3533
"files": [
3634
"dist",
37-
"es",
3835
"src"
3936
]
4037
}

packages/dls-color-palette/rollup.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export default {
3838
commonjs(),
3939
babel({
4040
// see https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
41-
babelHelpers: 'runtime',
42-
exclude: 'node_modules/**'
41+
babelHelpers: 'bundled'
42+
// exclude: 'node_modules/**' is not set because color-converters need to be transform
4343
})
44-
],
45-
external: [/@babel\/runtime/]
44+
]
45+
// external: [/@babel\/runtime/] is not set to prevent @babel/runtime version conflicts
4646
}

0 commit comments

Comments
 (0)