Because of course a new webpack version means new config rules

This commit is contained in:
Richard Davey 2020-08-25 13:27:14 +01:00
parent ca99c4564f
commit 1d7a576fd6
6 changed files with 60 additions and 12 deletions

View file

@ -30,11 +30,19 @@ module.exports = {
rules: [
{
test: require.resolve('./src/runtimes/spine-both.js'),
use: 'imports-loader?this=>window'
loader: 'imports-loader',
options: {
type: 'commonjs',
wrapper: 'window'
}
},
{
test: require.resolve('./src/runtimes/spine-both.js'),
use: 'exports-loader?spine'
loader: 'exports-loader',
options: {
type: 'commonjs',
exports: 'single spine'
}
}
]
},

View file

@ -28,11 +28,19 @@ module.exports = {
rules: [
{
test: require.resolve('./src/runtimes/spine-both.js'),
use: 'imports-loader?this=>window'
loader: 'imports-loader',
options: {
type: 'commonjs',
wrapper: 'window'
}
},
{
test: require.resolve('./src/runtimes/spine-both.js'),
use: 'exports-loader?spine'
loader: 'exports-loader',
options: {
type: 'commonjs',
exports: 'single spine'
}
}
]
},

View file

@ -30,11 +30,19 @@ module.exports = {
rules: [
{
test: require.resolve('./src/runtimes/spine-canvas.js'),
use: 'imports-loader?this=>window'
loader: 'imports-loader',
options: {
type: 'commonjs',
wrapper: 'window'
}
},
{
test: require.resolve('./src/runtimes/spine-canvas.js'),
use: 'exports-loader?spine'
loader: 'exports-loader',
options: {
type: 'commonjs',
exports: 'single spine'
}
}
]
},

View file

@ -28,11 +28,19 @@ module.exports = {
rules: [
{
test: require.resolve('./src/runtimes/spine-canvas.js'),
use: 'imports-loader?this=>window'
loader: 'imports-loader',
options: {
type: 'commonjs',
wrapper: 'window'
}
},
{
test: require.resolve('./src/runtimes/spine-canvas.js'),
use: 'exports-loader?spine'
loader: 'exports-loader',
options: {
type: 'commonjs',
exports: 'single spine'
}
}
]
},

View file

@ -30,11 +30,19 @@ module.exports = {
rules: [
{
test: require.resolve('./src/runtimes/spine-webgl.js'),
use: 'imports-loader?this=>window'
loader: 'imports-loader',
options: {
type: 'commonjs',
wrapper: 'window'
}
},
{
test: require.resolve('./src/runtimes/spine-webgl.js'),
use: 'exports-loader?spine'
loader: 'exports-loader',
options: {
type: 'commonjs',
exports: 'single spine'
}
}
]
},

View file

@ -28,11 +28,19 @@ module.exports = {
rules: [
{
test: require.resolve('./src/runtimes/spine-webgl.js'),
use: 'imports-loader?this=>window'
loader: 'imports-loader',
options: {
type: 'commonjs',
wrapper: 'window'
}
},
{
test: require.resolve('./src/runtimes/spine-webgl.js'),
use: 'exports-loader?spine'
loader: 'exports-loader',
options: {
type: 'commonjs',
exports: 'single spine'
}
}
]
},