Skip to content

Instantly share code, notes, and snippets.

@MillerGregor
Last active July 14, 2020 06:37
Show Gist options
  • Save MillerGregor/8d8f37ae117bec133e67e05733fdea73 to your computer and use it in GitHub Desktop.
Save MillerGregor/8d8f37ae117bec133e67e05733fdea73 to your computer and use it in GitHub Desktop.
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