Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(feature-flags): run output through babel #9204

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
9 changes: 9 additions & 0 deletions packages/feature-flags/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,25 @@
"watch": "yarn clean && node tasks/build.js && rollup -c -w"
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/generator": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/template": "^7.14.5",
"@babel/types": "^7.14.5",
"@carbon/scss-generator": "^10.13.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"change-case": "^4.1.2",
"fs-extra": "^9.0.1",
"js-yaml": "^3.14.0",
"rimraf": "^3.0.2",
"rollup": "^2.46.0",
"rollup-plugin-strip-banner": "^2.0.0"
},
"babel": {
"presets": [
"@babel/env"
]
},
"sideEffects": false
}
4 changes: 4 additions & 0 deletions packages/feature-flags/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*/

import path from 'path';
import resolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import stripBanner from 'rollup-plugin-strip-banner';

const BANNER = `/**
Expand All @@ -19,6 +21,8 @@ const BANNER = `/**
const baseConfig = {
external: [],
plugins: [
resolve(),
babel({ babelHelpers: 'bundled' }),
stripBanner(),
{
renderChunk(code) {
Expand Down
20 changes: 20 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1792,10 +1792,14 @@ __metadata:
version: 0.0.0-use.local
resolution: "@carbon/feature-flags@workspace:packages/feature-flags"
dependencies:
"@babel/core": ^7.14.6
"@babel/generator": ^7.14.5
"@babel/preset-env": ^7.14.7
"@babel/template": ^7.14.5
"@babel/types": ^7.14.5
"@carbon/scss-generator": ^10.13.0
"@rollup/plugin-babel": ^5.3.0
"@rollup/plugin-node-resolve": ^13.0.0
change-case: ^4.1.2
fs-extra: ^9.0.1
js-yaml: ^3.14.0
Expand Down Expand Up @@ -4662,6 +4666,22 @@ __metadata:
languageName: node
linkType: hard

"@rollup/plugin-node-resolve@npm:^13.0.0":
version: 13.0.0
resolution: "@rollup/plugin-node-resolve@npm:13.0.0"
dependencies:
"@rollup/pluginutils": ^3.1.0
"@types/resolve": 1.17.1
builtin-modules: ^3.1.0
deepmerge: ^4.2.2
is-module: ^1.0.0
resolve: ^1.19.0
peerDependencies:
rollup: ^2.42.0
checksum: c0237e65f50d593efc176e07a2ddf734918bc7344f739fe2254a3bfaa4be37c6d4787d045ab79d741811d3658f7e8bbb1484e6aa25bbb9fe2a3c33472b3f371d
languageName: node
linkType: hard

"@rollup/plugin-replace@npm:^2.4.2":
version: 2.4.2
resolution: "@rollup/plugin-replace@npm:2.4.2"
Expand Down