Skip to content

Commit bf000b6

Browse files
authored
Merge pull request #2467 from Kitware/improve-examples-build
chore: improve examples build time
2 parents cf86a86 + 11dc754 commit bf000b6

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

Documentation/config.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ module.exports = {
3232
plugins: [],
3333
rules: [
3434
`
35-
{ test: /\\.glsl$/i, loader: 'shader-loader' },
3635
{
3736
test: /\\.js$/,
37+
exclude: /dist\\/esm/,
3838
use: [
3939
{
40-
loader: 'babel-loader',
40+
loader: 'babel-loader?cacheDirectory',
4141
},
4242
],
4343
},
@@ -69,22 +69,16 @@ module.exports = {
6969
test: /\\.svg$/,
7070
type: 'asset/source',
7171
},
72-
{
73-
test: /\\.worker\\.js$/,
74-
use: [
75-
{
76-
loader: 'worker-loader',
77-
options: { inline: 'no-fallback' },
78-
},
79-
],
80-
},
8172
{ test: /\\.(png|jpg)$/, type: 'asset' },
8273
{ test: /\\.html$/, loader: 'html-loader' },
8374
{ test: /\\.cjson$/, loader: 'hson-loader' },
8475
{ test: /\\.hson$/, loader: 'hson-loader' },
8576
`,
8677
],
87-
alias: ["'vtk.js': `${rootPath}`,"],
78+
alias: [
79+
"'vtk.js/Sources': `${rootPath}/dist/esm`,",
80+
"'vtk.js': `${rootPath}`,",
81+
],
8882
},
8983
copy: [{ src: '../Data/*', dest: './build-tmp/public/data' }],
9084
};

0 commit comments

Comments
 (0)