Skip to content

Commit

Permalink
[added] typescript:main to Pundle config
Browse files Browse the repository at this point in the history
Summary: Ensures that we load the TypeScript versions of modules when available, so we if a change affects multiple packages, we don't have to build before testing it.

Reviewers: steelbrain, O2 Material Motion, O3 Material JavaScript platform reviewers, #material_motion

Reviewed By: steelbrain

Tags: #material_motion

Differential Revision: http://codereview.cc/D2470
  • Loading branch information
appsforartists committed Jan 6, 2017
1 parent 45b116c commit dac9464
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/demos-react/.pundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const tsConfig = require('./tsconfig');
const mainTSConfig = require('../../tsconfig');

module.exports = {
debug: true,
// ^ Setting this to true sets "process.env.NODE_ENV" to "development" in processed js, it's set to "production" otherwise
entry: ['./src/mount.tsx'],
output: {
bundlePath: '/dist/bundle.js',
Expand All @@ -29,8 +27,12 @@ module.exports = {
[
require.resolve('pundle-preset-typescript'),
{
resolver: {
packageMains: ['typescript:main', 'browser', 'main'],
},
transformer: {
extensions: ['js', 'jsx', 'ts', 'tsx'],
exclude: [],
config: {
compilerOptions: Object.assign(
mainTSConfig.compilerOptions,
Expand Down

0 comments on commit dac9464

Please sign in to comment.