Open na9da opened 1 week ago
Convert CJS modules to ESM.
Required for #6998 Depends on: https://github.com/terriajs/terriamap/tree/cjs-to-esm
TODO:
What this PR does:
module.exports
export default ...
Convert CJS require() to ESM import statements. (https://github.com/TerriaJS/terriajs/pull/7311/commits/30654f1a33b1af79afe5843b99855d67cc3c3667) This requires, in some places:
file-saver
react-responsive
or adding @types/x as dependency
@types/proj4
Remaining require() imports are all for static assets or web workers which can be fixed when upgrading to webpack 5.
use strict
.tsx?
Test http://ci.terria.io/cjs-to-esm
doc/
What this PR does
Convert CJS modules to ESM.
Required for #6998 Depends on: https://github.com/terriajs/terriamap/tree/cjs-to-esm
TODO:
What this PR does:
module.exports
to ESM styleexport default ...
(https://github.com/TerriaJS/terriajs/pull/7311/commits/7129b240e71f3acaa8fbed7bfcfdcd69b0f4026c)Convert CJS require() to ESM import statements. (https://github.com/TerriaJS/terriajs/pull/7311/commits/30654f1a33b1af79afe5843b99855d67cc3c3667) This requires, in some places:
file-saver
react-responsive
or adding @types/x as dependency
@types/proj4
Remaining require() imports are all for static assets or web workers which can be fixed when upgrading to webpack 5.
use strict
declaration for.tsx?
files.Test me
Test http://ci.terria.io/cjs-to-esm
Checklist
doc/
.