How to import the Cesium.js using require or import(ES6) after npm install

The official way to import the Cesium.js is to use <script>.But due to the large files, we must use AMD etc.
How to use require or import (ES6) after npm intall?

Simplely use:
import Cesium from 'cesium'
or

var Cesium=require('....')

do not work.

Hello,

Cesium has AMD support. For an example, look at the CesiumViewer app we include in the download.

Best,

Hannah

I see, but I still do not know how to do with my own project.

define(["…/utils/Cesium/Cesium.js"],function(Cesium){

console.dir(Cesium);

});

//errors here:(in Cesium.js)

app-b80b692….js:476 Uncaught TypeError: Cannot assign to read only property ‘apply’ of function ‘function c®{var o=n(r,{}),s=n(o.cull,{}),c=n(o.polygonOffset,{}),u=n(o.scissorTest,{}),d=n(u.rectangle,{}),h=……]}’(…)

can you give an example?

Thanks a lot.