Skip to content

Commit a199d5b

Browse files
committed
fix(build): fix production build library export
1 parent f285eaa commit a199d5b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": "1.2.2",
1515
"homepage": "https://github.com/chrisboustead/netlify-cms-widget-async-select",
1616
"license": "MIT",
17-
"main": "dist/main.js",
17+
"main": "dist/index.js",
1818
"devDependencies": {
1919
"@babel/core": "^7.0.0",
2020
"@babel/plugin-proposal-class-properties": "^7.0.0",

webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ const developmentConfig = {
5050
const productionConfig = {
5151
mode: 'production',
5252
entry: {
53-
AsyncSelectControl: ['./src/Control.js'],
54-
AsyncSelectPreview: ['./src/Preview.js']
53+
index: ['./src/index.js']
5554
},
5655
module: {
5756
rules: [

0 commit comments

Comments
 (0)