webpack config:
{
module: {
loaders: [
{test: /\.json$/, loader: 'json'},
{test: /\.ts$/, loader: 'ts-loader'}
]
},
externals: {
THREE: 'THREE'
}
}
my directory:
entry.ts:
/// <reference path="../typings/threejs/three.d.ts" />
import ball from './ball.json';
//....
but when i run the webpack, it will report
ERROR in ./src/entry.ts
(5,20): error TS2307: Cannot find module './ball.json'.
webpack config:
my directory:
entry.ts:
but when i run the webpack, it will report
ERROR in ./src/entry.ts
(5,20): error TS2307: Cannot find module './ball.json'.