Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork40
Webpack not transpiling *.debug.* or *.release.* files #304
Description
nativescript-dev-webpack@0.8.0
nativescript-worker-loader@0.8.1
webpack@3.2.0
In my application I have an environments folder with the following files:
environment.d.tsenvironment.debug.tsenvironment.release.ts
The environment file is referenced from other files in the application like this, and the d.ts file resolves the module import errors during development.
import { environment } from './../../environments/environment';
When doing a regular build withtns run <platform>
, theenvironment.debug.ts
file is renamed toenvironment.ts
when it is copied to the platform folder. It will copy the release version if I provide the--release
flag.
This does not work for webpack though. I get the following error:
Module not found: Error: Can't resolve './../../environments/environment'
It appears that the webpack plugin isn't taking these files into account. Is this a bug, or am I missing a Webpack loader?