Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module.exports = {
type: 'react-component',
npm: {
cjs: false,
esModules: false,
umd: false
},
polyfill: false,
webpack: {
config(config) {
config.entry = {
demo: ["./demo/src/index.tsx"]
}
config.resolve.extensions.push(".ts", ".tsx");
config.module.rules.push({
"test": /\.tsx?$/,
"loader": "awesome-typescript-loader"
});
return config;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment