-
-
Save ipenywis/93009bb85f68f43b9b2d81254edb9465 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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