InsightSoftwareConsortium / InsightSoftwareConsortium/ITK-Wasm
(!) "this" has been rewritten to "undefined" in derived packages
- Dominant language
- Python
- Stars
- 235
- Forks
- 61
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 4
Description
Example:
```
> rollup -c ./build/rollup.node.config.js
(node:64284) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
./src/index-node.ts → ./dist/bundles/mesh-to-polydata-node.js...
(!) "this" has been rewritten to "undefined"
https://rollupjs.org/troubleshooting/#error-this-is-undefined
../../../../../itk-wasm/dist/core/WorkerPool.js
1: /* eslint-disable @typescript-eslint/no-non-null-assertion */
2: var __rest = (this && this.__rest) || function (s, e) {
^
3: var t = {};
4: for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
...and 1 other occurrence
created ./dist/bundles/mesh-to-polydata-node.js in 1s
> mesh-to-polydata@0.1.0 build:browser
> rollup -c ./build/rollup.browser.config.js
(node:64321) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(!) You have passed an unrecognized option
Unknown input options: resolve. Allowed options: acorn, acornInjectPlugins, cache, context, experimentalCacheExpiry, external, inlineDynamicImports, input, makeAbsoluteExternalsRelative, manualChunks, maxParallelFileOps, maxParallelFileReads, moduleContext, onwarn, perf, plugins, preserveEntrySignatures, preserveModules, preserveSymlinks, shimMissingExports, strictDeprecations, treeshake, watch
./src/index.ts → ./dist/bundles/mesh-to-polydata.js...
(!) Circular dependencies
../../../../../itk-wasm/node_modules/axios/lib/defaults.js -> ../../../../../itk-wasm/node_modules/axios/lib/adapters/xhr.js -> ../../../../../itk-wasm/node_modules/axios/lib/defaults.js
polyfill-node._stream_duplex.js -> polyfill-node._stream_readable.js -> polyfill-node._stream_duplex.js
polyfill-node._stream_duplex.js -> polyfill-node._stream_writable.js -> polyfill-node._stream_duplex.js
../../../../../itk-wasm/node_modules/axios/lib/defaults.js -> ../../../../../itk-wasm/node_modules/axios/lib/adapters/http.js -> ../../../../../itk-wasm/node_modules/axios/lib/defaults.js
(!) "this" has been rewritten to "undefined"
https://rollupjs.org/troubleshooting/#error-this-is-undefined
../../../../../itk-wasm/dist/core/WorkerPool.js
1: /* eslint-disable @typescript-eslint/no-non-null-assertion */
2: var __rest = (this && this.__rest) || function (s, e) {
^
3: var t = {};
4: for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
...and 1 other occurrence
created ./dist/bundles/mesh-to-polydata.js in 1.7s
```
Worth more investigation after migrating the build of the `itk-wasm` package from WebPack to Rollup?
Contributor guide
Assessment
This issue has not been assessed yet.