Running command npm run release -- --release=6.0.0-alpha.6 --next=6.0.0-pre --dry-run --skip-checks, which utilizes the library build should produce a usable build.
Actual behavior:
The build has the following issues:
.tsx files are being compiled, but not having their extension renamed. Manually changing the extension of the output files to .js fixes the issue.
The source map paths are wrong. The source map and file are in the same folder, but the parent folder name is being added.
The following error occurs when using it in a build (with cli-build-app).
(Emitted value instead of an instance of Error) Cannot find SourceMap '\text-input\index.js.map': Error: Can't resolve './\text-input\index.js.map' in '[root_dir]\node_modules\@dojo\widgets\text-input'
NonErrorEmittedError: (Emitted value instead of an instance of Error) Cannot find SourceMap '\text-input\index.js.map': Error: Can't resolve './\text-input\index.js.map' in '[root_dir]\node_modules\@dojo\widgets\text-input'
Changing the source map urls to /*# sourceMappingURL=\index.js.map*/ fixes the issue.
Combining both manual fixes produces a working build.
Bug
Package Version: 6.0.0-alpha.2
Code
@dojo/widgets
OS: Windows 10
Branch: https://github.com/KaneFreeman/widgets/tree/select-dynamic-positioning
Expected behavior:
Running command
npm run release -- --release=6.0.0-alpha.6 --next=6.0.0-pre --dry-run --skip-checks
, which utilizes the library build should produce a usable build.Actual behavior:
The build has the following issues:
.tsx
files are being compiled, but not having their extension renamed. Manually changing the extension of the output files to.js
fixes the issue./*# sourceMappingURL=\text-input\index.js.map*/
cli-build-app
)./*# sourceMappingURL=\index.js.map*/
fixes the issue.Combining both manual fixes produces a working build.