Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cf34f54

Browse filesBrowse files
committed
chore: exclude test files from es build
1 parent b47d3d5 commit cf34f54
Copy full SHA for cf34f54

File tree

2 files changed

+12
-7
lines changed
Filter options

2 files changed

+12
-7
lines changed

‎.babelrc

Copy file name to clipboardExpand all lines: .babelrc
+11-6Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"ignore": [
3+
"**/tests/**"
4+
],
25
"presets": [
36
[
47
"@babel/env",
@@ -10,9 +13,7 @@
1013
}
1114
}
1215
],
13-
"@babel/react",
14-
// ["env", {"modules": true}],
15-
//"react"
16+
"@babel/react"
1617
],
1718
"plugins": [
1819
"@babel/plugin-proposal-export-default-from",
@@ -38,9 +39,13 @@
3839
"plugins": [["@babel/plugin-transform-runtime", { "useESModules": true }]]
3940
},
4041
"test": {
41-
"presets": [
42-
"@babel/env", "@babel/preset-react"
43-
]
42+
"presets": [
43+
"@babel/env", "@babel/preset-react"
44+
],
45+
"plugins": [
46+
"babel-plugin-dynamic-import-node",
47+
// 'babel-plugin-transform-dynamic-import'
48+
]
4449
}
4550
}
4651
}

‎package.json

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"changelog": "auto-changelog --starting-version 3.0.0-rc.2 --commit-limit false --hide-credit",
3636
"build": "npm run build:lib && npm run build:esm",
3737
"build:lib": "rollup --environment BUNDLE:false --c --sourcemap",
38-
"build:esm": "cross-env BABEL_ENV=esm-dir babel src --out-dir es --copy-files",
38+
"build:esm": "cross-env BABEL_ENV=esm-dir babel src --out-dir es --copy-files --no-copy-ignored",
3939
"postinstall": "node npm-postinstall",
4040
"storybook": "start-storybook",
4141
"jest:test": "cross-env BABEL_ENV=test jest",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.