feat: provide usable UMD builds for all packages (#2141)

This commit is contained in:
Tony Alves
2019-03-16 15:44:29 -07:00
committed by Shawn Erquhart
parent 1d935c704d
commit 82cc7941cc
89 changed files with 1025 additions and 712 deletions

View File

@ -23,19 +23,13 @@
"dependencies": {
"react-datetime": "^2.16.3"
},
"devDependencies": {
"cross-env": "^5.2.0",
"css-loader": "^2.1.1",
"to-string-loader": "^1.1.5",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
},
"peerDependencies": {
"@emotion/core": "^10.0.9",
"@emotion/styled": "^10.0.9",
"moment": "^2.11.2",
"netlify-cms-ui-default": "^2.0.0",
"prop-types": "^15.5.10",
"react": "^16.4.1"
"moment": "^2.24.0",
"netlify-cms-ui-default": "^2.4.1-beta.0",
"prop-types": "^15.7.2",
"react": "^16.8.4",
"react-dom": "^16.8.4"
}
}

View File

@ -8,4 +8,5 @@ const Widget = (opts = {}) => ({
...opts,
});
export const NetlifyCmsWidgetDate = { Widget, controlComponent, previewComponent };
export { Widget as default, controlComponent, previewComponent };

View File

@ -1,17 +1,3 @@
const { getConfig } = require('../../scripts/webpack.js');
const baseWebpackConfig = getConfig();
module.exports = {
...baseWebpackConfig,
module: {
rules: [
...baseWebpackConfig.module.rules,
{
test: /\.css$/,
include: [/react-datetime/],
use: ['to-string-loader', 'css-loader'],
},
],
},
};
module.exports = getConfig();