mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 12:13:19 +00:00
Because of course a new webpack version means new config rules
This commit is contained in:
parent
ca99c4564f
commit
1d7a576fd6
6 changed files with 60 additions and 12 deletions
|
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue