Skip to content

Commit 8d241a6

Browse files
authored
Examples: Remove import maps polyfill (mrdoob#26836)
1 parent 1a67ba7 commit 8d241a6

File tree

826 files changed

+1442
-5828
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

826 files changed

+1442
-5828
lines changed

docs/manual/ar/introduction/Installation.html

-4
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ <h2>التثبيت من CDN أو استضافة ثابتة</h2>
8585
</p>
8686

8787
<code>
88-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
89-
9088
&lt;script type="importmap">
9189
{
9290
"imports": {
@@ -126,8 +124,6 @@ <h2>أمثلة</h2>
126124
</p>
127125

128126
<code>
129-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
130-
131127
&lt;script type="importmap">
132128
{
133129
"imports": {

docs/manual/en/introduction/Installation.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ <h3>Development</h3>
149149
We imported code from 'three' (an npm package) in <i>main.js</i>, and web browsers don't know what that means. In <i>index.html</i> we'll need to add an [link:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap import map] defining where to get the package. Put the code below inside the <i>&lt;head>&lt/head></i> tag, after the styles.
150150
</p>
151151
<code>
152-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
153-
154152
&lt;script type="importmap">
155153
{
156154
"imports": {
@@ -161,7 +159,7 @@ <h3>Development</h3>
161159
&lt;/script>
162160
</code>
163161
<p>
164-
Don't forget to replace <i>&lt;version&gt;</i> with an actual version of three.js, like <i>"v0.149.0"</i>. The most recent version can be found on the [link:https://www.npmjs.com/package/three?activeTab=versions npm version list]. Because import maps are [link:https://caniuse.com/import-maps not yet supported] by some major browsers, we include the polyfill <i>es-module-shims.js</i>.
162+
Don't forget to replace <i>&lt;version&gt;</i> with an actual version of three.js, like <i>"v0.149.0"</i>. The most recent version can be found on the [link:https://www.npmjs.com/package/three?activeTab=versions npm version list].
165163
</p>
166164
</li>
167165
<li>

docs/manual/fr/introduction/Installation.html

-8
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ <h2>Installer depuis un CDN ou un hébergement statique</h2>
6868
</p>
6969

7070
<code>
71-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
72-
7371
&lt;script type="importmap">
7472
{
7573
"imports": {
@@ -87,10 +85,6 @@ <h2>Installer depuis un CDN ou un hébergement statique</h2>
8785
&lt;/script>
8886
</code>
8987

90-
<p>
91-
Étant donné que les Import maps ne sont pas encore supportées par tous les navigateurs, il est nécessaire d'ajouter le polyfill *es-module-shims.js*.
92-
</p>
93-
9488
<h2>Addons</h2>
9589

9690
<p>
@@ -113,8 +107,6 @@ <h2>Addons</h2>
113107
</p>
114108

115109
<code>
116-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
117-
118110
&lt;script type="importmap">
119111
{
120112
"imports": {

docs/manual/it/introduction/Installation.html

-8
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ <h2>Installazione da CDN o hosting statico</h2>
6969
</p>
7070

7171
<code>
72-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
73-
7472
&lt;script type="importmap">
7573
{
7674
"imports": {
@@ -88,10 +86,6 @@ <h2>Installazione da CDN o hosting statico</h2>
8886
&lt;/script>
8987
</code>
9088

91-
<p>
92-
Poiché le mappe di importazione non sono ancora supportate da tutti i browser, è necessario aggiungere il polyfill *es-module-shims.js*.
93-
</p>
94-
9589
<h2>Addons</h2>
9690

9791
<p>
@@ -113,8 +107,6 @@ <h2>Addons</h2>
113107
</p>
114108

115109
<code>
116-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
117-
118110
&lt;script type="importmap">
119111
{
120112
"imports": {

docs/manual/ja/introduction/Installation.html

-4
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ <h2>CDNや静的ホスティングからインストールをする</h2>
6969
</p>
7070

7171
<code>
72-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
73-
7472
&lt;script type="importmap">
7573
{
7674
"imports": {
@@ -110,8 +108,6 @@ <h2>Addons</h2>
110108
</p>
111109

112110
<code>
113-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
114-
115111
&lt;script type="importmap">
116112
{
117113
"imports": {

docs/manual/ko/introduction/Installation.html

-4
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ <h2>static hosting 및 CDN을 통한 설치</h2>
7777
</p>
7878

7979
<code>
80-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
81-
8280
&lt;script type="importmap">
8381
{
8482
"imports": {
@@ -122,8 +120,6 @@ <h2>Addons</h2>
122120
</p>
123121

124122
<code>
125-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
126-
127123
&lt;script type="importmap">
128124
{
129125
"imports": {

docs/manual/pt-br/introduction/Installation.html

-8
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ <h2>Instalar através de CDN ou hospedagem estática</h2>
5353
<p>A biblioteca three.js pode ser utilizada sem nenhum sistema de build, seja fazendo o upload dos arquivos para seu próprio servidor web ou usando um CDN existente. Como a biblioteca depende dos ES modules, qualquer script que faça referência a eles deve usar <em>type="module"</em> como mostrado abaixo. Também é necessário definir um mapa de importação que resolva a importação direta do `three`.</p>
5454

5555
<code>
56-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
57-
5856
&lt;script type="importmap">
5957
{
6058
"imports": {
@@ -76,10 +74,6 @@ <h2>Instalar através de CDN ou hospedagem estática</h2>
7674
Nem todos os recursos disponíveis são acessados diretamente através do módulo <em>three</em>. Outras partes populares da biblioteca - tais como controls, loaders e post-processing effects - devem ser importados da subpasta [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm examples/jsm]. Para aprender mais, veja o <em>Exemplo</em> abaixo.
7775
</p>
7876

79-
<p>
80-
Como os mapas de importação ainda não são suportados por todos os navegadores, é necessário adicionar o polyfill *es-module-shims.js*.
81-
</p>
82-
8377
<h2>Addons</h2>
8478

8579
<p>
@@ -99,8 +93,6 @@ <h2>Addons</h2>
9993
<p>Se o three.js foi instalado de um CDN, use o mesmo CDN para instalar outros componentes:</p>
10094

10195
<code>
102-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
103-
10496
&lt;script type="importmap">
10597
{
10698
"imports": {

docs/manual/ru/introduction/Installation.html

-8
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ <h2>Установка с CDN или статического хостинга</
9292
</p>
9393

9494
<code>
95-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
96-
9795
&lt;script type="importmap">
9896
{
9997
"imports": {
@@ -111,10 +109,6 @@ <h2>Установка с CDN или статического хостинга</
111109
&lt;/script>
112110
</code>
113111

114-
<p>
115-
Поскольку импорт карт еще не поддерживается всеми браузерами, необходимо добавить полифил *es-module-shims.js*.
116-
</p>
117-
118112
<h2>Дополнения</h2>
119113

120114
<p>
@@ -143,8 +137,6 @@ <h2>Дополнения</h2>
143137
</p>
144138

145139
<code>
146-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
147-
148140
&lt;script type="importmap">
149141
{
150142
"imports": {

docs/manual/zh/introduction/Installation.html

-4
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ <h2>从CDN或静态主机安装</h2>
6767
</p>
6868

6969
<code>
70-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
71-
7270
&lt;script type="importmap">
7371
{
7472
"imports": {
@@ -108,8 +106,6 @@ <h2>Addons</h2>
108106
</p>
109107

110108
<code>
111-
&lt;script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js">&lt;/script>
112-
113109
&lt;script type="importmap">
114110
{
115111
"imports": {

docs/scenes/bones-browser.html

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
</style>
2323
</head>
2424
<body>
25-
26-
<!-- Import maps polyfill -->
27-
<!-- Remove this when import maps will be widely supported -->
28-
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
29-
3025
<script type="importmap">
3126
{
3227
"imports": {

docs/scenes/ccdiksolver-browser.html

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
</style>
2323
</head>
2424
<body>
25-
26-
<!-- Import maps polyfill -->
27-
<!-- Remove this when import maps will be widely supported -->
28-
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
29-
3025
<script type="importmap">
3126
{
3227
"imports": {

docs/scenes/geometry-browser.html

+1-6
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
</style>
2323
</head>
2424
<body>
25-
26-
<!-- Import maps polyfill -->
27-
<!-- Remove this when import maps will be widely supported -->
28-
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
29-
3025
<script type="importmap">
3126
{
3227
"imports": {
@@ -758,7 +753,7 @@
758753
lights[ 0 ] = new DirectionalLight( 0xffffff, 3 );
759754
lights[ 1 ] = new DirectionalLight( 0xffffff, 3 );
760755
lights[ 2 ] = new DirectionalLight( 0xffffff, 3 );
761-
756+
762757
lights[ 0 ].position.set( 0, 200, 0 );
763758
lights[ 1 ].position.set( 100, 200, 100 );
764759
lights[ 2 ].position.set( - 100, - 200, - 100 );

docs/scenes/material-browser.html

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
</style>
2323
</head>
2424
<body>
25-
26-
<!-- Import maps polyfill -->
27-
<!-- Remove this when import maps will be widely supported -->
28-
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
29-
3025
<script type="importmap">
3126
{
3227
"imports": {

editor/index.html

-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
<script src="js/libs/tern-threejs/threejs.js"></script>
4646
<script src="js/libs/signals.min.js"></script>
4747

48-
<!-- Import maps polyfill -->
49-
<!-- Remove this when import maps will be widely supported -->
50-
<script async src="js/libs/es-module-shims.js"></script>
51-
5248
<script type="importmap">
5349
{
5450
"imports": {

0 commit comments

Comments
 (0)